|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.model.ui.util.ModelServiceUtils
public class ModelServiceUtils
Utility class to manage ACTF model services (implementation of
IModelService
)
Constructor Summary | |
---|---|
ModelServiceUtils()
|
Method Summary | |
---|---|
static boolean |
activateEditorPart(String id)
Activate IEditorPart |
static IModelService |
getActiveModelService()
Get IModelService from the current active IEditorPart |
static IModelServiceHolder |
getActiveModelServiceHolder()
Get IModelServiceHolder from the current active
IEditorPart |
static org.eclipse.ui.IEditorPart |
launch(String targetUrl)
Find and launch an Editor associated with the target URL |
static org.eclipse.ui.IEditorPart |
launch(String targetUrl,
String id)
Launch an Editor |
static void |
openInExistingEditor(String targetUrl)
Try to open the target URL in existing IEditorPart . |
static org.eclipse.ui.IEditorPart |
reopenInACTFBrowser()
Try to open the same URL of the current active WebBrowserEditor by the ACTF Browser. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelServiceUtils()
Method Detail |
---|
public static org.eclipse.ui.IEditorPart launch(String targetUrl)
targetUrl
- target URL
IEditorPart
implements IModelServiceHolder
, or
null if not availablepublic static org.eclipse.ui.IEditorPart launch(String targetUrl, String id)
targetUrl
- target URLid
- ID of target Editor
IEditorPart
, or null if not availablepublic static void openInExistingEditor(String targetUrl)
IEditorPart
. If
appropriate Editor is not available, launch new IEditorPart
.
targetUrl
- target URLpublic static boolean activateEditorPart(String id)
IEditorPart
id
- ID of target IEditorPart
public static IModelServiceHolder getActiveModelServiceHolder()
IModelServiceHolder
from the current active
IEditorPart
IModelServiceHolder
public static IModelService getActiveModelService()
IModelService
from the current active IEditorPart
IModelService
public static org.eclipse.ui.IEditorPart reopenInACTFBrowser()
IEditorPart
implements IModelServiceHolder
, or
null if not available
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |