if (ws != null) {
if (ws == null || (ws.isAggregateWorkingSet() && ws.isEmpty())) { fScope= SearchEngine.createWorkspaceScope(); fTitleLabel.setText(null); } else {
	private void fillViewMenu(IMenuManager viewMenu) {		if (!fMultipleSelection) {			ToggleStatusLineAction showStatusLineAction= new ToggleStatusLineAction();			showStatusLineAction.setChecked(fSettings.getBoolean(SHOW_STATUS_LINE));			viewMenu.add(showStatusLineAction);		}		FullyQualifyDuplicatesAction fullyQualifyDuplicatesAction= new FullyQualifyDuplicatesAction();		fullyQualifyDuplicatesAction.setChecked(fSettings.getBoolean(FULLY_QUALIFY_DUPLICATES));		viewMenu.add(fullyQualifyDuplicatesAction);		if (fScope == null) {			fFilterActionGroup= new WorkingSetFilterActionGroup(getShell(),				JavaPlugin.getActivePage(),				new IPropertyChangeListener() {					public void propertyChange(PropertyChangeEvent event) {						IWorkingSet ws= (IWorkingSet)event.getNewValue();						if (ws == null) {							fScope= SearchEngine.createWorkspaceScope();							fTitleLabel.setText(null);						} else {							fScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(ws, true);							fTitleLabel.setText(ws.getLabel());						}						fViewer.setSearchScope(fScope, true);					}				});			String setting= fSettings.get(WORKINGS_SET_SETTINGS);			if (setting != null) {				try {					IMemento memento= XMLMemento.createReadRoot(new StringReader(setting));					fFilterActionGroup.restoreState(memento);				} catch (WorkbenchException e) {				}			}			IWorkingSet ws= fFilterActionGroup.getWorkingSet();			if (ws != null) {				fScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(ws, true);				fTitleLabel.setText(ws.getLabel());			} else {				fScope= SearchEngine.createWorkspaceScope();				fTitleLabel.setText(null);			}			fFilterActionGroup.fillViewMenu(viewMenu);		}	}