/** * Creates a new model. * @param properties the properties to read and write from */ public KeyStrokePreferenceModel( DockProperties properties ){ super( properties.getController() ); add( initSelector = new KeyStrokeInitSelectorPreference( properties )); add( maximize = new KeyStrokeMaximizePreference( properties )); add( hide = new KeyStrokeHidePreference( properties )); add( maskNoCombination = new ModifierMaskNoCombinationPreference( properties )); add( maskScreenOnly = new ModifierMaskScreenOnlyPreference( properties )); }
/** * Creates a new model. * @param controller the controller whose preferences this model should * represent * @param combiner how to create preference paths for nested preferences */ public DockingFramesPreference( DockController controller, PathCombiner combiner ){ super( combiner, controller ); putLinked( new Path( "shortcuts" ), "preference.shortcuts", new KeyStrokePreferenceModel( controller.getProperties() ) ); putLinked( new Path( "buttonContent" ), "preference.buttonContent", new ButtonContentPreferenceModel( controller ) ); putLinked( new Path( "layout" ), "preference.layout", new LayoutPreferenceModel( controller.getProperties() )); putLinked( new Path( "theme.BubbleTheme" ), "theme.bubble", new BubbleThemePreferenceModel( controller.getProperties() )); putLinked( new Path( "theme.EclipseTheme" ), "theme.eclipse", new EclipseThemePreferenceModel( controller.getProperties() )); }