org.eclipse.modisco.infra.discovery.ui.internal.util
Class ModelUtils

java.lang.Object
  extended by org.eclipse.modisco.infra.discovery.ui.internal.util.ModelUtils

public final class ModelUtils
extends java.lang.Object


Method Summary
static void openEditor(IFile source)
          A utility service for opening a model in the MoDisco model editor, if present, or otherwise in another appropriate editor.
static void openEditor(Resource model)
          A utility service for opening a model in the MoDisco model editor.
static void scheduleEditorOpening(IFile source, Job job)
          A utility service to schedule the opening of a model in the MoDisco model editor, if present, or otherwise in another appropriate editor.
static void scheduleEditorOpening(Resource model, Job job)
          A utility service to schedule the opening of a model in the MoDisco model editor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

openEditor

public static void openEditor(IFile source)
A utility service for opening a model in the MoDisco model editor, if present, or otherwise in another appropriate editor.

Parameters:
source - a Resource instance

openEditor

public static void openEditor(Resource model)
A utility service for opening a model in the MoDisco model editor.

Parameters:
model - a Resource instance

scheduleEditorOpening

public static void scheduleEditorOpening(IFile source,
                                         Job job)
A utility service to schedule the opening of a model in the MoDisco model editor, if present, or otherwise in another appropriate editor. This service reuses openEditor(IFile).

Parameters:
source - a Resource instance
job - the model will be opened in the model editor when this job terminates

scheduleEditorOpening

public static void scheduleEditorOpening(Resource model,
                                         Job job)
A utility service to schedule the opening of a model in the MoDisco model editor. This service reuses openEditor(Resource).

Parameters:
source - a Resource instance
job - the model will be opened in the model editor when this job terminates