de.cau.cs.kieler.core.ui
Class ModelingPerspective

java.lang.Object
  extended by de.cau.cs.kieler.core.ui.ModelingPerspective
All Implemented Interfaces:
IPerspectiveFactory

public class ModelingPerspective
extends Object
implements IPerspectiveFactory

A Perspective for the KIELER modeling application. It loads all available KIELER views and sets some New-Wizards as shortcuts into the New-Menu.

Rating red

Field Summary
static float BIG
          A big view.
static float MEDIUM
          A medium view, will take 50% space.
static float SMALL
          A small view.
 
Constructor Summary
ModelingPerspective()
           
 
Method Summary
protected  void addViewIfExists(IFolderLayout folder, String id)
          Add a view to a folder only if the view exists.
 void createInitialLayout(IPageLayout layout)
          
protected  void createNewWizardShortcuts(IPageLayout layout)
          Add shortcuts to the New-Dialog to the KIELER wizards.
protected  void createViewLayout(IPageLayout layout)
          Add the KIELER views to the layout.
protected  void createViewShortcuts(IPageLayout layout)
          Add KIELER Views (and some important Eclipse views) as shortcuts into the View menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SMALL

public static final float SMALL
A small view.

See Also:
Constant Field Values

MEDIUM

public static final float MEDIUM
A medium view, will take 50% space.

See Also:
Constant Field Values

BIG

public static final float BIG
A big view.

See Also:
Constant Field Values
Constructor Detail

ModelingPerspective

public ModelingPerspective()
Method Detail

createInitialLayout

public void createInitialLayout(IPageLayout layout)

Specified by:
createInitialLayout in interface IPerspectiveFactory

createViewShortcuts

protected void createViewShortcuts(IPageLayout layout)
Add KIELER Views (and some important Eclipse views) as shortcuts into the View menu.

Parameters:
layout - the page layout

createViewLayout

protected void createViewLayout(IPageLayout layout)
Add the KIELER views to the layout.

Parameters:
layout - the page layout

createNewWizardShortcuts

protected void createNewWizardShortcuts(IPageLayout layout)
Add shortcuts to the New-Dialog to the KIELER wizards.

Parameters:
layout - the page layout

addViewIfExists

protected void addViewIfExists(IFolderLayout folder,
                               String id)
Add a view to a folder only if the view exists. This method can be used to add views from other plugins to get no exceptions if the plugin is not loaded.

Parameters:
folder - a folder layout
id - a view identifier