EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.editor
Class PatternEditorHelper

java.lang.Object
  extended by org.eclipse.egf.pattern.ui.editor.PatternEditorHelper

public class PatternEditorHelper
extends Object

Provides services dealing with pattern editors.


Constructor Summary
PatternEditorHelper()
           
 
Method Summary
static IEditorInput getEditorInput(PatternModel pattern_p, boolean editable_p)
          Get the editor input for given PatternModel element.
static IEditorPart isPatternEditorOpen(PatternModel patternModel_p)
          Return whether or not a pattern editor is already open for given pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternEditorHelper

public PatternEditorHelper()
Method Detail

isPatternEditorOpen

public static IEditorPart isPatternEditorOpen(PatternModel patternModel_p)
Return whether or not a pattern editor is already open for given pattern.

Parameters:
patternModel_p -
Returns:
null means no editor opened for given pattern; otherwise the related IEditorPart.

getEditorInput

public static IEditorInput getEditorInput(PatternModel pattern_p,
                                          boolean editable_p)
Get the editor input for given PatternModel element.

Parameters:
pattern_p -
editable_p - whether or not the pattern is editable.
Returns:
a not null editor input.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.