@Override public void setTheme(final String name) { ThemeMap themes = control.getThemes(); themes.select(name); }
/** * Creates a new piece. * @param control the control whose theme might be changed using one of themes * of {@link CControl#getThemes()} */ public CThemeMenuPiece( CControl control ) { super( control.intern().getController(), control.getThemes() ); } }
/** * Creates a new piece. * @param control the control whose theme might be changed using one of themes * of {@link CControl#getThemes()} */ public CThemeMenuPiece( CControl control ) { super( control.intern().getController(), control.getThemes() ); } }
control.setRootWindow(new DirectWindowProvider(frame)); destroyOnClose(control); ThemeMap themes = control.getThemes(); themes.select(ThemeMap.KEY_ECLIPSE_THEME); control.getController().getProperties().set(EclipseTheme.PAINT_ICONS_WHEN_DESELECTED, true);
/** * Creates a new model. * @param control the control whose settings this model represents */ public CLayoutPreferenceModel( CControl control ){ super( control.getController() ); add( tabPlacement = new TabPlacementPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabplacement" ))); add( tabContentFilter = new TabContentFilterPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabcontentfilter" ))); add( theme = new ThemePreference( control.intern().getDockProperties(), control.getThemes() )); }
/** * Creates a new model. * @param control the control whose settings this model represents */ public CLayoutPreferenceModel( CControl control ){ super( control.getController() ); add( tabPlacement = new TabPlacementPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabplacement" ))); add( tabContentFilter = new TabContentFilterPreference( control.intern().getDockProperties(), new Path( "dock.layout.tabcontentfilter" ))); add( theme = new ThemePreference( control.intern().getDockProperties(), control.getThemes() )); }