Examples of GlobalPreferences


Examples of com.projity.preference.GlobalPreferences

  }

  public GlobalPreferences getPreferences(){
    if (preferences==null) {
      preferences=new GlobalPreferences();
      if (Environment.isExternal())
        preferences.setShowProjectResourcesOnly(true);
    }
    return preferences;
  }
View Full Code Here

Examples of com.projity.preference.GlobalPreferences

  }

  public class TeamFilterAction extends MenuActionsMap.DocumentMenuAction {
    private static final long serialVersionUID = 1L;
    public void actionPerformed(ActionEvent arg0) {
      GlobalPreferences preferences=getPreferences();;
      //Field field = Configuration.getFieldFromId("Field.showProjectResourcesOnly");
      boolean teamOnly=!preferences.isShowProjectResourcesOnly();
      //field.setValue(preferences,this,teamOnly);
      preferences.setShowProjectResourcesOnly(teamOnly);
      ArrayList buttons=getMenuManager().getToolBarFactory().getButtonsFromId("TeamFilter"); //$NON-NLS-1$
      if (buttons!=null&&buttons.size()==1){
        JButton b=(JButton)buttons.get(0);
        if (Environment.isNewLook())
          b.setIcon(IconManager.getIcon(teamOnly?"menu24.showTeamResources":"menu24.showAllResources")); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of com.projity.preference.GlobalPreferences

  }

  public GlobalPreferences getPreferences(){
    if (preferences==null) {
      preferences=new GlobalPreferences();
      if (Environment.isExternal())
        preferences.setShowProjectResourcesOnly(true);
    }
    return preferences;
  }
View Full Code Here

Examples of com.projity.preference.GlobalPreferences

  }

  public class TeamFilterAction extends MenuActionsMap.DocumentMenuAction {
    private static final long serialVersionUID = 1L;
    public void actionPerformed(ActionEvent arg0) {
      GlobalPreferences preferences=getPreferences();;
      //Field field = Configuration.getFieldFromId("Field.showProjectResourcesOnly");
      boolean teamOnly=!preferences.isShowProjectResourcesOnly();
      //field.setValue(preferences,this,teamOnly);
      preferences.setShowProjectResourcesOnly(teamOnly);
      ArrayList buttons=getMenuManager().getToolBarFactory().getButtonsFromId("TeamFilter"); //$NON-NLS-1$
      if (buttons!=null&&buttons.size()==1){
        JButton b=(JButton)buttons.get(0);
        if (Environment.isNewLook())
          b.setIcon(IconManager.getIcon(teamOnly?"menu24.showTeamResources":"menu24.showAllResources")); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of fr.valhalla.mailcheck.GlobalPreferences

    GlobalPreferences prefs;

    /** Creates new form GlobalPreferencesFrame */
    public GlobalPreferencesFrame() {
        // Initialisation
        prefs = new GlobalPreferences();
        initComponents();

        // Remplissage des préférences
        if(prefs.openMainWindowOnStart)
            openMainWindowOnStartCheckBox.setSelected(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.