Package org.eclipse.ui.navigator
Class CommonViewerSiteFactory
- java.lang.Object
-
- org.eclipse.ui.navigator.CommonViewerSiteFactory
-
public final class CommonViewerSiteFactory extends Object
Allows clients to createICommonViewerSite
for a variety of contexts. TheICommonViewerSite
may be used by theNavigatorActionService
to allow customization for anyCommonActionProvider
used by a particular instance of the Common Navigator.- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description CommonViewerSiteFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICommonViewerSite
createCommonViewerSite(String anId, ISelectionProvider aSelectionProvider, Shell aShell)
static ICommonViewerSite
createCommonViewerSite(String anId, IPageSite aPageSite)
static ICommonViewerWorkbenchSite
createCommonViewerSite(IEditorSite aEditorSite)
static ICommonViewerWorkbenchSite
createCommonViewerSite(IViewSite aViewSite)
-
-
-
Method Detail
-
createCommonViewerSite
public static ICommonViewerWorkbenchSite createCommonViewerSite(IViewSite aViewSite)
- Parameters:
aViewSite
- The viewer site that should be delegated to to satisfy the contract of ICommonViewerSite.- Returns:
- An ICommonViewerSite that delegates to the given parameter.
-
createCommonViewerSite
public static ICommonViewerWorkbenchSite createCommonViewerSite(IEditorSite aEditorSite)
- Parameters:
aEditorSite
- The editor site that should be delegated to to satisfy the contract of ICommonViewerSite.- Returns:
- An ICommonViewerSite that delegates to the given parameter.
-
createCommonViewerSite
public static ICommonViewerSite createCommonViewerSite(String anId, ISelectionProvider aSelectionProvider, Shell aShell)
- Parameters:
anId
- The unique identifier corresponding to the abstract viewer for the returned ICommonViewerSite.aSelectionProvider
- The selection provider that will initially be returned byICommonViewerSite.getSelectionProvider()
aShell
- The shell that will be returned byICommonViewerSite.getShell()
- Returns:
- An ICommonViewerSite that delegates to the given parameter.
-
createCommonViewerSite
public static ICommonViewerSite createCommonViewerSite(String anId, IPageSite aPageSite)
- Parameters:
anId
- The unique identifier corresponding to the abstract viewer for the returned ICommonViewerSite.aPageSite
- The page site that should be delegated to to satisfy the contract of ICommonViewerSite.- Returns:
- An ICommonViewerSite that delegates to the given parameter.
-
-