|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.keg.importer.ImportUtil
public final class ImportUtil
A utility class for KEG import.
Method Summary | ||
---|---|---|
static
|
applyContainedLayout(IPath diagramPath,
boolean openDiagram)
Given the path to a KEG diagram (kegdi) layout data contained in the KEG model is applied to the KEG diagram. |
|
static Node |
transformModel2KEGGraph(String xtendFile,
String extension,
List<Object> parameters,
InputStream inputStream,
Resource.Factory resourceFactory,
IKielerProgressMonitor monitor,
String... involvedMetamodels)
Transforms a model to a KEG graph using a given Xtend transformation file. |
|
static Node |
transformModel2KEGGraph(String xtendFile,
String extension,
List<Object> parameters,
Resource resource,
IKielerProgressMonitor monitor,
String... involvedMetamodels)
Transforms a model to a KEG graph using a given Xtend transformation file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Node transformModel2KEGGraph(String xtendFile, String extension, List<Object> parameters, InputStream inputStream, Resource.Factory resourceFactory, IKielerProgressMonitor monitor, String... involvedMetamodels) throws IOException, TransformException
xtendFile
- the xtend file containing the transformationextension
- the name of the extension that starts the transformation inside the xtend fileparameters
- a list of additional parameters for the transformation or null if no additional
parameters are requiredinputStream
- the input stream the source model instance is read fromresourceFactory
- the resource factory used to read the model or null for the standard factorymonitor
- the progress monitorinvolvedMetamodels
- the metamodels involved in the transformation
IOException
- thrown when the the xtend file could not be found or opened
TransformException
- thrown when the execution of the xtend transformation failedpublic static Node transformModel2KEGGraph(String xtendFile, String extension, List<Object> parameters, Resource resource, IKielerProgressMonitor monitor, String... involvedMetamodels) throws IOException, TransformException
xtendFile
- the xtend file containing the transformationextension
- the name of the extension that starts the transformation inside the xtend fileparameters
- a list of additional parameters for the transformation or null if no additional
parameters are requiredresource
- the resource from which to read the modelmonitor
- the progress monitorinvolvedMetamodels
- the metamodels involved in the transformation
IOException
- thrown when the the xtend file could not be found or opened
TransformException
- thrown when the execution of the xtend transformation failedpublic static <T> void applyContainedLayout(IPath diagramPath, boolean openDiagram)
diagramPath
- the diagram pathopenDiagram
- whether to keep the diagram opened in an editor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |