Package net.sourceforge.cruisecontrol.gui

Examples of net.sourceforge.cruisecontrol.gui.UserProperties


       
        initializeFields();
    }

    public void okPressed() {
        UserProperties properties = UserProperties.getInstance();

        if ( editorStartup.isSelected() ) {
            properties.setStartupWindowPreference( "editor" );
        }
        else if ( monitoringStartup.isSelected() ) {
            properties.setStartupWindowPreference( "servers" );
        }
       
        properties.setShowTrayIcons( showTrayIcons.isSelected() );
        properties.setHideWindowOnMinimize( hideWindowOnMinimize.isSelected() );
        properties.setMinimizeOnStartup( minimizeWindowOnStartup.isSelected() );
       
        closeWindow();
    }
View Full Code Here


   
    /**
     *
     */
    private void initializeFields() {
        UserProperties properties = UserProperties.getInstance();
    String windowPreference = properties.getStartupWindowPreference();
       
        if ( "editor".equalsIgnoreCase( windowPreference ) ) {
          editorStartup.setSelected( true );
        }
        else {
          monitoringStartup.setSelected( true );
        }
       
        showTrayIcons.setSelected( properties.showTrayIcons() );
        hideWindowOnMinimize.setSelected( properties.hideWindowOnMinimize() );
        minimizeWindowOnStartup.setSelected( properties.minimizeOnStartup() );
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.gui.UserProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.