1 11 package org.eclipse.ui; 12 13 import org.eclipse.core.runtime.IAdaptable; 14 import org.eclipse.jface.util.IPropertyChangeListener; 15 import org.eclipse.swt.widgets.Shell; 16 import org.eclipse.ui.dialogs.IWorkingSetEditWizard; 17 import org.eclipse.ui.dialogs.IWorkingSetNewWizard; 18 import org.eclipse.ui.dialogs.IWorkingSetSelectionDialog; 19 20 35 public interface IWorkingSetManager { 36 37 44 public static final String CHANGE_WORKING_SET_ADD = "workingSetAdd"; 46 53 public static final String CHANGE_WORKING_SET_REMOVE = "workingSetRemove"; 55 62 public static final String CHANGE_WORKING_SET_CONTENT_CHANGE = "workingSetContentChange"; 64 71 public static final String CHANGE_WORKING_SET_NAME_CHANGE = "workingSetNameChange"; 73 81 public static final String CHANGE_WORKING_SET_LABEL_CHANGE = "workingSetLabelChange"; 83 89 public static final String CHANGE_WORKING_SET_UPDATER_INSTALLED = "workingSetUpdaterInstalled"; 91 97 public static final String CHANGE_WORKING_SET_UPDATER_UNINSTALLED = "workingSetUpdaterUninstalled"; 99 104 public void addPropertyChangeListener(IPropertyChangeListener listener); 105 106 115 public void addRecentWorkingSet(IWorkingSet workingSet); 116 117 123 public void addWorkingSet(IWorkingSet workingSet); 124 125 134 public IWorkingSet createWorkingSet(String name, IAdaptable[] elements); 135 136 154 public IWorkingSet createAggregateWorkingSet(String name, String label, 155 IWorkingSet[] components); 156 157 166 public IWorkingSet createWorkingSet(IMemento memento); 167 168 196 public IWorkingSetEditWizard createWorkingSetEditWizard( 197 IWorkingSet workingSet); 198 199 200 227 public IWorkingSetNewWizard createWorkingSetNewWizard(String [] workingSetIds); 228 229 234 public IWorkingSetSelectionDialog createWorkingSetSelectionDialog( 235 Shell parent); 236 237 252 public IWorkingSetSelectionDialog createWorkingSetSelectionDialog( 253 Shell parentShell, boolean multi); 254 255 275 public IWorkingSetSelectionDialog createWorkingSetSelectionDialog( 276 Shell parentShell, boolean multi, String [] workingsSetIds); 277 278 284 public IWorkingSet[] getRecentWorkingSets(); 285 286 293 public IWorkingSet getWorkingSet(String name); 294 295 303 public IWorkingSet[] getWorkingSets(); 304 305 313 public IWorkingSet[] getAllWorkingSets(); 314 315 320 public void removePropertyChangeListener(IPropertyChangeListener listener); 321 322 327 public void removeWorkingSet(IWorkingSet workingSet); 328 329 334 public void dispose(); 335 } 336 | Popular Tags |