|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topcased.modeler.tools.DiagramFileInitializer
public class DiagramFileInitializer
This class creates a Diagram from an existing model
| Constructor Summary | |
|---|---|
DiagramFileInitializer()
Constructor |
|
DiagramFileInitializer(ResourceSet resourceSet)
Constructor |
|
| Method Summary | |
|---|---|
void |
createDiagram(EObject root,
java.lang.String diagramId,
boolean initializeContent,
org.eclipse.core.runtime.IProgressMonitor monitor)
Convert an Package or a Java project into a UML2 model |
void |
createDiagram(EObject root,
java.lang.String diagramId,
java.lang.String diagramName,
boolean initializeContent,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates the diagram file for the given existing model |
protected void |
syncImportObjects(Resource diagramResource,
EObject model,
org.eclipse.core.runtime.IProgressMonitor monitor)
Execute the import. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiagramFileInitializer()
public DiagramFileInitializer(ResourceSet resourceSet)
resourceSet - The ResourceSet to use to create the Diagrams resource. Should be used only when a custom
ResourceSet should be used instead of the default EMF one| Method Detail |
|---|
public void createDiagram(EObject root,
java.lang.String diagramId,
java.lang.String diagramName,
boolean initializeContent,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException
root - the root EObject associated with the diagramdiagramId - the ID of the diagram to creatediagramName - The diagram nameinitializeContent - if true, try to initialize the graphical objects with the existing model
objectsmonitor - the progress monitor
java.io.IOException - Throws if the diagram file cannot be written
public void createDiagram(EObject root,
java.lang.String diagramId,
boolean initializeContent,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.io.IOException
root - the root EObject associated with the diagramdiagramId - the ID of the diagram to createinitializeContent - if true, try to initialize the graphical objects with the existing model
objectsmonitor - the progress monitor
java.io.IOException - Throws if the diagram file cannot be written
protected void syncImportObjects(Resource diagramResource,
EObject model,
org.eclipse.core.runtime.IProgressMonitor monitor)
diagramResource - the diagrammodel - the modelmonitor -
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.