bpel.diagram.part
Class MybpelDiagramEditorUtil

java.lang.Object
  extended by bpel.diagram.part.MybpelDiagramEditorUtil

public class MybpelDiagramEditorUtil
extends java.lang.Object


Nested Class Summary
static class MybpelDiagramEditorUtil.LazyElement2ViewMap
           
 
Constructor Summary
MybpelDiagramEditorUtil()
           
 
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)
           
static org.eclipse.gmf.runtime.notation.View findView(org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart diagramEditPart, org.eclipse.emf.ecore.EObject targetElement, MybpelDiagramEditorUtil.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 org.eclipse.emf.ecore.resource.Resource openModel(org.eclipse.swt.widgets.Shell shell, java.lang.String description, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
          Allows user to select file and loads it as a model.
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 editParts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MybpelDiagramEditorUtil

public MybpelDiagramEditorUtil()
Method Detail

getSaveOptions

public static java.util.Map getSaveOptions()

openDiagram

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

getUniqueFileName

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

openModel

public static org.eclipse.emf.ecore.resource.Resource openModel(org.eclipse.swt.widgets.Shell shell,
                                                                java.lang.String description,
                                                                org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Allows user to select file and loads it as a model.


runWizard

public 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.


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)

selectElementsInDiagram

public static void selectElementsInDiagram(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart,
                                           java.util.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,
                                                             MybpelDiagramEditorUtil.LazyElement2ViewMap lazyElement2ViewMap)