use of com.centurylink.mdw.plugin.designer.properties.editor.ArtifactEditor in project mdw-designer by CenturyLinkCloud.
the class ProcessCanvasWrapper method openScript.
private void openScript(final Activity scriptOrRuleActivity) {
PanelBusyIndicator pbi = new PanelBusyIndicator(getDisplay(), getCanvas());
try {
pbi.busyWhile(new Runnable() {
public void run() {
ArtifactEditorValueProvider artifactValueProvider = null;
if (TransformEditorValueProvider.isTransformActivity(scriptOrRuleActivity))
artifactValueProvider = new TransformEditorValueProvider(scriptOrRuleActivity);
else
artifactValueProvider = new ScriptEditorValueProvider(scriptOrRuleActivity);
ArtifactEditor artifactEditor = new ArtifactEditor(scriptOrRuleActivity, artifactValueProvider, null);
artifactEditor.openTempFile(new NullProgressMonitor());
}
});
} catch (InvocationTargetException ex) {
PluginMessages.uiError(ex, "Open Script", getProject());
}
}
Aggregations