1 11 package org.eclipse.team.ui.synchronize; 12 13 import org.eclipse.jface.operation.IRunnableContext; 14 import org.eclipse.jface.util.IPropertyChangeListener; 15 import org.eclipse.jface.viewers.ILabelDecorator; 16 import org.eclipse.team.core.synchronize.SyncInfoSet; 17 import org.eclipse.team.internal.ui.TeamUIPlugin; 18 import org.eclipse.ui.IWorkbenchActionConstants; 19 20 33 public interface ISynchronizePageConfiguration { 34 35 41 public static final String P_SYNC_INFO_SET = TeamUIPlugin.ID + ".P_SYNC_INFO_SET"; 43 48 public static final String P_LABEL_DECORATORS = TeamUIPlugin.ID + ".P_LABEL_DECORATORS"; 50 59 public static final String P_TOOLBAR_MENU = TeamUIPlugin.ID + ".P_TOOLBAR_MENU"; 61 66 public static final String P_CONTEXT_MENU = TeamUIPlugin.ID + ".P_CONTEXT_MENU"; 68 77 public static final String P_VIEW_MENU = TeamUIPlugin.ID + ".P_VIEW_MENU"; 79 86 public static final String P_OBJECT_CONTRIBUTION_ID = TeamUIPlugin.ID + ".P_OBJECT_CONTRIBUTION_ID"; 88 94 public static final String P_COMPARISON_TYPE = TeamUIPlugin.ID + ".P_COMPARISON_TYPE"; 96 101 public static final String P_MODE = TeamUIPlugin.ID + ".P_SYNCVIEWPAGE_MODE"; 103 110 public static final String P_SUPPORTED_MODES = TeamUIPlugin.ID + ".P_SUPPORTED_MODES"; 112 119 public static final String P_VIEWER_ID = TeamUIPlugin.ID + ".P_VIEWER_ID"; 121 127 public static final String P_PAGE_DESCRIPTION = TeamUIPlugin.ID + ".P_PAGE_DESCRIPTION"; 129 133 public static final String SYNCHRONIZE_GROUP = "synchronize"; 135 139 public static final String NAVIGATE_GROUP = "navigate"; 141 146 public final static String SORT_GROUP = "sort"; 148 152 public static final String MODE_GROUP = "modes"; 154 158 public static final String FILE_GROUP = "file"; 160 164 public static final String EDIT_GROUP = "edit"; 166 170 public static final String PREFERENCES_GROUP = "preferences"; 172 178 public static final String OBJECT_CONTRIBUTIONS_GROUP = IWorkbenchActionConstants.MB_ADDITIONS; 179 180 184 public static final String LAYOUT_GROUP = "layout"; 186 191 public static final String [] DEFAULT_CONTEXT_MENU = new String [] { FILE_GROUP, EDIT_GROUP, SYNCHRONIZE_GROUP, NAVIGATE_GROUP, SORT_GROUP, OBJECT_CONTRIBUTIONS_GROUP}; 192 193 202 public static final String [] DEFAULT_TOOLBAR_MENU = new String [] { SYNCHRONIZE_GROUP, NAVIGATE_GROUP, MODE_GROUP, LAYOUT_GROUP }; 203 204 213 public static final String [] DEFAULT_VIEW_MENU = new String [] { LAYOUT_GROUP, MODE_GROUP, SYNCHRONIZE_GROUP, PREFERENCES_GROUP }; 214 215 218 public final static String TWO_WAY = "two-way"; public final static String THREE_WAY = "three-way"; 221 224 public final static int INCOMING_MODE = 0x1; 225 public final static int OUTGOING_MODE = 0x2; 226 public final static int BOTH_MODE = 0x4; 227 public final static int CONFLICTING_MODE = 0x8; 228 public final static int ALL_MODES = INCOMING_MODE | OUTGOING_MODE | CONFLICTING_MODE | BOTH_MODE; 229 230 234 public abstract ISynchronizeParticipant getParticipant(); 235 236 241 public abstract ISynchronizePageSite getSite(); 242 243 248 public ISynchronizePage getPage(); 249 250 256 public void setPage(ISynchronizePage page); 257 258 264 public abstract void addPropertyChangeListener(IPropertyChangeListener listener); 265 266 271 public abstract void removePropertyChangeListener(IPropertyChangeListener listener); 272 273 281 public abstract void setProperty(String key, Object newValue); 282 283 290 public abstract Object getProperty(String key); 291 292 299 public abstract void addActionContribution(SynchronizePageActionGroup group); 300 301 306 public abstract void removeActionContribution(SynchronizePageActionGroup group); 307 308 312 public void addLabelDecorator(ILabelDecorator decorator); 313 314 321 public void setMenuGroups(String menuPropertyId, String [] groups); 322 323 331 public void addMenuGroup(String menuPropertyId, String groupId); 332 333 341 public abstract boolean hasMenuGroup(String menuPropertyId, String groupId); 342 343 347 int getMode(); 348 349 356 void setMode(int mode); 357 358 362 int getSupportedModes(); 363 364 371 void setSupportedModes(int modes); 372 373 379 public abstract SyncInfoSet getSyncInfoSet(); 380 381 387 String getComparisonType(); 388 389 395 void setComparisonType(String type); 396 397 402 void setRunnableContext(IRunnableContext context); 403 404 410 IRunnableContext getRunnableContext(); 411 412 419 String getViewerId(); 420 } 421 | Popular Tags |