Using docking frames 1.1.1 or 1.1.2 preview 4, I’m getting a NullPointerException when trying to install EclipseTheme with glass extension on the build path. My minimal program begins with the following:
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JFrame frame = new JFrame();
DockFrontend frontEnd = new DockFrontend(frame);
DockController controller = frontEnd.getController();
DockTheme theme = new EclipseTheme();
controller.setTheme(theme);
The setTheme method will not complete. The top of the stack is:
at glass.eclipse.theme.EclipseThemeExtension.install(Unknown Source)
at bibliothek.gui.dock.themes.BasicTheme.install(BasicTheme.java:168)
at bibliothek.gui.dock.themes.ThemeManager.setTheme(ThemeManager.java:278)
at bibliothek.gui.DockController.setTheme(DockController.java:750)
at testdock.Minimal.exec(Minimal.java:41)
Inside the EclipseTheme.install, the local variable 'version; is null, the subsequent call to version.setFactory causes an NPE to be thrown.
public void install (DockController controller, DockTheme theme) {
DockTitleManager manager = controller.getDockTitleManager();
DockTitleVersion version = manager.getVersion(FlapDockStation.BUTTON_TITLE_ID);
version.setFactory(CGlassDockTitleFactory.FACTORY, Priority.CLIENT);
}
I can run your demo programs with glass extension; how do I ensure that FlapDockStation.BUTTON_TITLE_ID is initialized?