public class CCDModelDiagramEditorUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CCDModelDiagramEditorUtil.LazyElement2ViewMap
XXX This is quite suspicious code (especially editPartTmpHolder) and likely to be removed soon
|
Constructor and Description |
---|
CCDModelDiagramEditorUtil() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.ecore.resource.Resource |
createDiagram(org.eclipse.emf.common.util.URI diagramURI,
org.eclipse.emf.common.util.URI modelURI,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
This method should be called within a workspace modify operation since it creates resources.
|
static org.eclipse.gmf.runtime.notation.View |
findView(org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart diagramEditPart,
org.eclipse.emf.ecore.EObject targetElement,
CCDModelDiagramEditorUtil.LazyElement2ViewMap lazyElement2ViewMap) |
static java.util.Map<?,?> |
getSaveOptions() |
static java.lang.String |
getUniqueFileName(org.eclipse.core.runtime.IPath containerFullPath,
java.lang.String fileName,
java.lang.String extension) |
static boolean |
openDiagram(org.eclipse.emf.ecore.resource.Resource diagram) |
static void |
runWizard(org.eclipse.swt.widgets.Shell shell,
org.eclipse.jface.wizard.Wizard wizard,
java.lang.String settingsKey)
Runs the wizard in a dialog.
|
static void |
selectElementsInDiagram(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart,
java.util.List<org.eclipse.gef.EditPart> editParts) |
static void |
setCharset(org.eclipse.core.resources.IFile file) |
public static java.util.Map<?,?> getSaveOptions()
public static boolean openDiagram(org.eclipse.emf.ecore.resource.Resource diagram) throws org.eclipse.ui.PartInitException
org.eclipse.ui.PartInitException
public static void setCharset(org.eclipse.core.resources.IFile file)
public static java.lang.String getUniqueFileName(org.eclipse.core.runtime.IPath containerFullPath, java.lang.String fileName, java.lang.String extension)
public static void runWizard(org.eclipse.swt.widgets.Shell shell, org.eclipse.jface.wizard.Wizard wizard, java.lang.String settingsKey)
public static org.eclipse.emf.ecore.resource.Resource createDiagram(org.eclipse.emf.common.util.URI diagramURI, org.eclipse.emf.common.util.URI modelURI, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
public static void selectElementsInDiagram(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart, java.util.List<org.eclipse.gef.EditPart> editParts)
public static org.eclipse.gmf.runtime.notation.View findView(org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart diagramEditPart, org.eclipse.emf.ecore.EObject targetElement, CCDModelDiagramEditorUtil.LazyElement2ViewMap lazyElement2ViewMap)