pl.edu.agh.cast.editor
Class EditorUtil

java.lang.Object
  extended by pl.edu.agh.cast.editor.EditorUtil

public final class EditorUtil
extends Object

Editor's utilities.

Author:
AGH CAST Team

Field Summary
static String EDITOR_ID_ATTR_ID
          ID of the id attribute of pl.edu.agh.cast.editor extension point element.
static String EDITOR_NAME_ATTR_ID
          ID of the name attribute of pl.edu.agh.cast.editor extension point element.
static String EDITOR_TYPEID_ATTR_ID
          ID of the typeId attribute of pl.edu.agh.cast.editor extension point element.
 
Constructor Summary
EditorUtil()
           
 
Method Summary
static org.eclipse.core.runtime.IConfigurationElement[] getEditorConfiguration()
          Returns all configuration elements from all extensions defined for pl.edu.agh.cast.editor extension point.
static org.eclipse.ui.IEditorPart openNewEditor(DataSetDescriptor descriptor)
          Opens new editor for DataSetDescriptor.
static void switchToDiagramPerspective()
          Method is switching to default workbench perspective.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDITOR_NAME_ATTR_ID

public static final String EDITOR_NAME_ATTR_ID
ID of the name attribute of pl.edu.agh.cast.editor extension point element.

See Also:
Constant Field Values

EDITOR_ID_ATTR_ID

public static final String EDITOR_ID_ATTR_ID
ID of the id attribute of pl.edu.agh.cast.editor extension point element.

See Also:
Constant Field Values

EDITOR_TYPEID_ATTR_ID

public static final String EDITOR_TYPEID_ATTR_ID
ID of the typeId attribute of pl.edu.agh.cast.editor extension point element.

See Also:
Constant Field Values
Constructor Detail

EditorUtil

public EditorUtil()
Method Detail

getEditorConfiguration

public static org.eclipse.core.runtime.IConfigurationElement[] getEditorConfiguration()
Returns all configuration elements from all extensions defined for pl.edu.agh.cast.editor extension point.

Returns:
array of configuration elements

openNewEditor

public static org.eclipse.ui.IEditorPart openNewEditor(DataSetDescriptor descriptor)
                                                throws org.eclipse.ui.PartInitException
Opens new editor for DataSetDescriptor.

Parameters:
descriptor - data set descriptor
Returns:
editor part
Throws:
org.eclipse.ui.PartInitException

switchToDiagramPerspective

public static void switchToDiagramPerspective()
Method is switching to default workbench perspective.



Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.