}
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$