public class ModelServiceUtils extends Object
IModelService
)Constructor and Description |
---|
ModelServiceUtils() |
Modifier and Type | Method and Description |
---|---|
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 IEditorPart |
launch(String targetUrl)
Find and launch an Editor associated with the target URL
|
static IEditorPart |
launch(String targetUrl,
String id)
Launch an Editor
|
static IEditorPart |
launchNew(String targetUrl)
Find and launch a new Editor associated with the target URL
|
static IEditorPart |
launchNew(String targetUrl,
String id)
Launch a new Editor
|
static void |
openInExistingEditor(String targetUrl)
Try to open the target URL in existing
IEditorPart . |
static IEditorPart |
reopenInACTFBrowser()
Try to open the same URL of the current active WebBrowserEditor by the
ACTF Browser.
|
public static IEditorPart launch(String targetUrl)
targetUrl
- target URLIEditorPart
implements IModelServiceHolder
, or
null if not availablepublic static IEditorPart launchNew(String targetUrl)
targetUrl
- target URLIEditorPart
implements IModelServiceHolder
, or
null if not availablepublic static IEditorPart launch(String targetUrl, String id)
targetUrl
- target URLid
- ID of target EditorIEditorPart
, or null if not availablepublic static IEditorPart launchNew(String targetUrl, String id)
targetUrl
- target URLid
- ID of target EditorIEditorPart
, 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 IEditorPart reopenInACTFBrowser()
IEditorPart
implements IModelServiceHolder
, or
null if not available