@Override
	public void dispose() {
		if (!isClosed()) {
			WINDOW_LIST.remove(this);
			if (WINDOW_LIST.isEmpty()) {
				for (PaletteWindow window : getWindows(PaletteWindow.class)) {
					window.setAppWindow(null);
				}
			}
		}
		super.dispose();
		WindowMenuProvider.update();
	}