org.eclipse.ui.progress.IDeferredWorkbenchAdapter Java Examples
The following examples show how to use
org.eclipse.ui.progress.IDeferredWorkbenchAdapter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SVNAdapterFactory.java From APICloud-Studio with GNU General Public License v3.0 | 6 votes |
/** * Method declared on IAdapterFactory. * Get the given adapter for the given object */ public Object getAdapter(Object adaptableObject, Class adapterType) { if (IWorkbenchAdapter.class == adapterType) { return getWorkbenchAdapter(adaptableObject); } if(IDeferredWorkbenchAdapter.class == adapterType) { Object o = getWorkbenchAdapter(adaptableObject); if(o != null && o instanceof IDeferredWorkbenchAdapter) { return o; } return null; } if (IPropertySource.class == adapterType) { return getPropertySource(adaptableObject); } if(IHistoryPageSource.class == adapterType) { return pageHistoryParticipant; } return null; }
Example #2
Source File: SVNModelElement.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
public Object getAdapter(Class adapter) { if (adapter == IWorkbenchAdapter.class) return this; if ((adapter == IDeferredWorkbenchAdapter.class) && this instanceof IDeferredWorkbenchAdapter) return this; return null; }
Example #3
Source File: WrappedResource.java From Pydev with Eclipse Public License 1.0 | 5 votes |
public static <T> T getAdapterFromActualObject(IResource actualObject2, Class<T> adapter) { if (IDeferredWorkbenchAdapter.class.equals(adapter) || IWorkbenchAdapter2.class.equals(adapter) || IWorkbenchAdapter.class.equals(adapter)) { return null; } return actualObject2.getAdapter(adapter); }
Example #4
Source File: SVNAdapterFactory.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
/** (Non-javadoc) * Method declared on IAdapterFactory. */ public Class[] getAdapterList() { return new Class[] {IWorkbenchAdapter.class, IPropertySource.class, IDeferredWorkbenchAdapter.class, IHistoryPageSource.class}; }