Package com.projity.preference

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


  }

  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

  }

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

  }

  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

TOP

Related Classes of com.projity.preference.GlobalPreferences

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.