public class MMIUIUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MMIUIUtil.ContentCreator
The
ContentCreator is used as a call back to the user to populate
a resource with initial contents. |
| Constructor and Description |
|---|
MMIUIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.core.resources.IFile |
createAndOpenDiagram(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.core.runtime.IPath containerPath,
java.lang.String fileName,
java.lang.String extensionWithDot,
java.io.InputStream initialContents,
java.lang.String diagramType,
org.eclipse.ui.IWorkbenchWindow dWindow,
org.eclipse.core.runtime.IProgressMonitor progressMonitor,
boolean openEditor,
boolean saveDiagram)
Creates a new diagram file and optionally saves the resource and opens
the diagram editor.
|
static org.eclipse.core.resources.IFile |
createAndOpenDiagramWithContents(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.core.runtime.IPath containerPath,
java.lang.String fileName,
java.lang.String extensionWithDot,
MMIUIUtil.ContentCreator creator,
org.eclipse.ui.IWorkbenchWindow dWindow,
org.eclipse.core.runtime.IProgressMonitor progressMonitor,
boolean openEditor,
boolean saveDiagram)
Creates a new diagram file and optionally saves the resource and opens
the diagram editor.
|
public static org.eclipse.core.resources.IFile createAndOpenDiagramWithContents(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.core.runtime.IPath containerPath,
java.lang.String fileName,
java.lang.String extensionWithDot,
MMIUIUtil.ContentCreator creator,
org.eclipse.ui.IWorkbenchWindow dWindow,
org.eclipse.core.runtime.IProgressMonitor progressMonitor,
boolean openEditor,
boolean saveDiagram)
ContentCreator.domain - the TransactionalEditingDomain to create the new diagram resource incontainerPath - the container of the diagram filefileName - the default file nameextensionWithDot - the file extension including the dotcreator - the ContentCreator to create the initial contentsdWindow - the IWorkbenchWindow to retrieve the shell fromprogressMonitor - the progress monitoropenEditor - true if the diagram editor should be opened, false otherwisesaveDiagram - true if the diagram resource should be saved, false otherwisepublic static final org.eclipse.core.resources.IFile createAndOpenDiagram(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.core.runtime.IPath containerPath,
java.lang.String fileName,
java.lang.String extensionWithDot,
java.io.InputStream initialContents,
java.lang.String diagramType,
org.eclipse.ui.IWorkbenchWindow dWindow,
org.eclipse.core.runtime.IProgressMonitor progressMonitor,
boolean openEditor,
boolean saveDiagram)
InputStream.domain - the TransactionalEditingDomain to create the new diagram resource incontainerPath - the container of the diagram filefileName - the default file nameextensionWithDot - the file extension including the dotinitialContents - the initial contents as an InputStreamdiagramType - the diagram notation typedWindow - the IWorkbenchWindow to retrieve the shell fromprogressMonitor - the progress monitoropenEditor - true if the diagram editor should be opened, false otherwisesaveDiagram - true if the diagram resource should be saved, false otherwise