public final class CommonViewerSiteFactory extends Object
ICommonViewerSite
for a variety of contexts.
The ICommonViewerSite
may be used by the
NavigatorActionService
to allow customization for any
CommonActionProvider
used by a particular instance of the Common
Navigator.Constructor and Description |
---|
CommonViewerSiteFactory() |
Modifier and Type | Method and Description |
---|---|
static ICommonViewerWorkbenchSite |
createCommonViewerSite(IEditorSite aEditorSite) |
static ICommonViewerWorkbenchSite |
createCommonViewerSite(IViewSite aViewSite) |
static ICommonViewerSite |
createCommonViewerSite(String anId,
IPageSite aPageSite) |
static ICommonViewerSite |
createCommonViewerSite(String anId,
ISelectionProvider aSelectionProvider,
Shell aShell) |
public static ICommonViewerWorkbenchSite createCommonViewerSite(IViewSite aViewSite)
aViewSite
- The viewer site that should be delegated to to satisfy the
contract of ICommonViewerSite.public static ICommonViewerWorkbenchSite createCommonViewerSite(IEditorSite aEditorSite)
aEditorSite
- The editor site that should be delegated to to satisfy the
contract of ICommonViewerSite.public static ICommonViewerSite createCommonViewerSite(String anId, ISelectionProvider aSelectionProvider, Shell aShell)
anId
- The unique identifier corresponding to the abstract viewer for
the returned ICommonViewerSite.aSelectionProvider
- The selection provider that will initially be returned by
ICommonViewerSite.getSelectionProvider()
aShell
- The shell that will be returned by
ICommonViewerSite.getShell()
public static ICommonViewerSite createCommonViewerSite(String anId, IPageSite aPageSite)
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.
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.