org.eclipse.gmf.graphdef.editor.part
Class GMFGraphDiagramEditorUtil

java.lang.Object
  extended by org.eclipse.gmf.graphdef.editor.part.GMFGraphDiagramEditorUtil

public class GMFGraphDiagramEditorUtil
extends Object


Nested Class Summary
static class GMFGraphDiagramEditorUtil.LazyElement2ViewMap
           
 
Constructor Summary
GMFGraphDiagramEditorUtil()
           
 
Method Summary
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, GMFGraphDiagramEditorUtil.LazyElement2ViewMap lazyElement2ViewMap)
           
static Map getSaveOptions()
           
static String getUniqueFileName(org.eclipse.core.runtime.IPath containerFullPath, String fileName, 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, String settingsKey)
          Runs the wizard in a dialog.
static void selectElementsInDiagram(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart, List editParts)
           
static void setCharset(org.eclipse.core.resources.IFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMFGraphDiagramEditorUtil

public GMFGraphDiagramEditorUtil()
Method Detail

getSaveOptions

public static Map getSaveOptions()

openDiagram

public static boolean openDiagram(org.eclipse.emf.ecore.resource.Resource diagram)
                           throws org.eclipse.ui.PartInitException
Throws:
org.eclipse.ui.PartInitException

setCharset

public static void setCharset(org.eclipse.core.resources.IFile file)

getUniqueFileName

public static String getUniqueFileName(org.eclipse.core.runtime.IPath containerFullPath,
                                       String fileName,
                                       String extension)

runWizard

public static void runWizard(org.eclipse.swt.widgets.Shell shell,
                             org.eclipse.jface.wizard.Wizard wizard,
                             String settingsKey)
Runs the wizard in a dialog.


createDiagram

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)
This method should be called within a workspace modify operation since it creates resources.


selectElementsInDiagram

public static void selectElementsInDiagram(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart,
                                           List editParts)

findView

public static org.eclipse.gmf.runtime.notation.View findView(org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart diagramEditPart,
                                                             org.eclipse.emf.ecore.EObject targetElement,
                                                             GMFGraphDiagramEditorUtil.LazyElement2ViewMap lazyElement2ViewMap)


Copyright © 2011. All Rights Reserved.