|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.cdo.ui.CDOEditorUtil

Some utility methods to cope with CDOEditor and CDOEditorInput
| Field Summary | |
|---|---|
static String |
EDITOR_ID
|
| Method Summary | |
|---|---|
static CDOEditorInput |
createCDOEditorInput(CDOView view,
String resourcePath,
boolean viewOwned)
Returns an implementation of CDOEditorInput interface |
static IEditorReference[] |
findEditor(IWorkbenchPage page,
CDOView view,
String resourcePath)
Returns references to possibly opened instances of CDOEditor with certain CDOView and resource |
static String |
getEditorID()
|
static void |
openEditor(IWorkbenchPage page,
CDOView view,
String resourcePath)
Opens the specified resource in CDOEditor |
static void |
refreshEditors(IWorkbenchPage page,
CDOView view)
Refreshes all editor's viewers that are using certain CDOView. |
static void |
setEditorID(String editorID)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EDITOR_ID
| Method Detail |
|---|
public static String getEditorID()
public static void setEditorID(String editorID)
public static CDOEditorInput createCDOEditorInput(CDOView view,
String resourcePath,
boolean viewOwned)
public static void openEditor(IWorkbenchPage page,
CDOView view,
String resourcePath)
page - The page in which the editor will be openview - the CDOView that will be used to access the resourceresourcePath - absolute path to the resource in the repository
public static IEditorReference[] findEditor(IWorkbenchPage page,
CDOView view,
String resourcePath)
page - The page where to search for opened editorsview - The editors to find are using the specified CDOViewresourcePath - The editors are editing the CDOResource specified with this path
public static void refreshEditors(IWorkbenchPage page,
CDOView view)
page - the IWorkbenchPage where CDOEditor is openedview - instance of CDOView our editors are using
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||