telcert.schemaprof.gui
Class MainFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by telcert.schemaprof.gui.MainFrame
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, org.eclipse.emf.common.notify.Adapter

public class MainFrame
extends JFrame
implements org.eclipse.emf.common.notify.Adapter

This class is the most important class of SchemaProf's user interface. It manages all other GUI components and it holds a reference to the currently loaded profile or additional constraints file. For more details on the layout of the MainFrame and its sub components see the description of telcert.schemaprof.gui.

The following components are contained by the MainFrame and constitute the viewable part of SchemaProf:

Version:
$Id: MainFrame.java,v 1.162 2007/02/07 11:08:09 zimsa Exp $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
static Object ACTION_CONSTRAINTS_DEFINITION_NEW
           
static Object ACTION_CONSTRAINTS_DELETE
           
static Object ACTION_CONSTRAINTS_NEW
           
static Object ACTION_CONSTRAINTS_RENAME
           
static Object ACTION_ELEMENT_ACTIVATION
          Reference Key of the Action : 'Toggle Activation of Element' (for Use with getAction(Object))
static Object ACTION_FILE_CLOSE_PROFILE
          Reference Key of the Action : 'Close Profile' (for Use with getAction(Object))
static Object ACTION_FILE_NEW
           
static Object ACTION_FILE_OPEN_PROFILE
          Reference Key of the Action : 'Open Profile' (for Use with getAction(Object))
static Object ACTION_FILE_QUIT
          Reference Key of the Action : 'Quit' (for Use with getAction(Object))
static Object ACTION_FILE_SAVE_PROFILE
          Reference Key of the Action : 'Save Profile' (for Use with getAction(Object))
static Object ACTION_FILE_SAVE_PROFILE_AS
          Reference Key of the Action : 'Save Profile As' (for Use with getAction(Object))
static Object ACTION_GLOBALELEMENT_FOCUS
          Reference Key of the Action: 'Focus Global Element' (for use with getAction(Object)).
static Object ACTION_HELP_ABOUT
          Reference Key of the Action : 'About Dialog' (for Use with getAction(Object))
static Object ACTION_MANAGER_CONDITION
          Reference Key of the Action : 'Condition Manager' (for Use with getAction(Object))
static Object ACTION_MANAGER_CONSTRAINTS
          Reference Key of the Action : 'Constraints Manager' (for Use with getAction(Object))
static Object ACTION_MANAGER_NAMESPACE
          Reference Key of the Action : 'Namespace Manager' (for Use with getAction(Object))
static Object ACTION_MANAGER_PROFILE
          Reference Key of the Action : 'Profile Manager' (for Use with getAction(Object))
static Object ACTION_MANAGER_TYPE
          Reference Key of the Action : 'Type Manager' (for Use with getAction(Object))
static Object ACTION_PREFERENCES
          Reference Key of the Action : 'Preferences' (for Use with getAction(Object))
static Object ACTION_REPOSITORY_MANAGER
          Reference Key of the Action : 'Repository Manager' (for Use with getAction(Object))
static String BUILD_DATE
          The Date of the last Application Build.
static Locale[] BUILTIN_LOCALES
          The Locales which are included in this version of SchemaProf.
static int FONT_SIZE
           
static Integer HISTORY_ALL
          Constant for retrieving a list of all recently opened files with any type.
static Integer HISTORY_CONSTRAINT
          Constant for retrieving a list of recently opened constraints.
static Integer HISTORY_PROFILE
          Constant for retrieving a list of recently opened profiles.
static Integer HISTORY_SCHEMA
          Constant for retrieving a list of recently opened schemas.
static Integer HISTORY_UNKNOWN
          Constant for retrieving a list of recently opened files whith an unknown type.
static UIManager.LookAndFeelInfo[] SUPPORTED_LOOKANDFEEL
          The LookAndFeelInfo's which are supported by the currently operating System.
static String VERSION
          The current Version of the Application.
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MainFrame()
          Creates a new MainFrame Object and all necessary SubComponents and displays them.
 
Method Summary
 URIHistoryObject addHistoryObject(Object object)
          Adds an object to one of the histories of recently opened files.
 boolean areExtensionPointsEnabled()
          Returns the status of the extension points.
 boolean closeProfile(BaseModel profile)
          Closes an open application profile and sets the file history.
 void enableLoading(boolean enabled)
           
 void enableLoading(boolean enabled, Window frame)
           
 Action getAction(Object key)
          Returns the Action specified with 'key' if it exists.
 File getBundleDirectory()
          Returns the direcory which contains additional resource files which should be loaded by SchemaProf.
 ModelCategory getCategory(URI fileUri)
           
 CompatibilityLevelCategory getCurrentCompatibility()
           
 Locale getCurrentLocale()
          Returns the currently active Localeof the Application
 UIManager.LookAndFeelInfo getCurrentLookAndFeelInfo()
          Returns the currently active LookAndFeelInfo of the Application
 Locale getDefaultLocale()
          Returns the default locale of the resource bundle of the GUI.
 Font getGlobalFont()
           
 List getHistory(Integer historyType)
          Returns a list of recently opened files of a certain type.
 String getLastOpenConstraintFile()
           
 String getLastOpenProfile()
           
 MainComponent getMainComponent()
          Returns the MainComponentof the Application
 File getPlugInDirectory()
           
 PlugIn[] getPlugIns()
          Returns the currently active PlugIn`s of this Application.
 Preferences getPreferences()
           
 BaseModel getProfile()
          Returns the currently active BaseModelof the Application
 ModelCategory getProfileMode()
           
 File getProfileSaveFile()
           
 ResourceBundle getResourceBundle()
          Returns the currently active ResourceBundleof the Application depending on the currently active Locale.
 String getString(String key)
          Returns a localized string from the resource bundle.
 String getString(String key, Object[] arguments)
          Returns a localized string from the resource bundle which has inserted arguments.
 Set getSupportedLocales()
          Returns a list of Locale-instances which are supported by the SchemaProf GUI.
 org.eclipse.emf.common.notify.Notifier getTarget()
           
 boolean isAdapterForType(Object type)
           
 void notifyChanged(org.eclipse.emf.common.notify.Notification arg0)
           
 boolean openProfile(File file)
          Opens the given file and tries to read the contained application profile.
 void quit(int status)
          Shuts down the Application
 void setBundleDirectory(File bundleDirectory)
          Set the directory which contains additional resource files which should be loaded.
 void setExtensionPointsEnabled(boolean value)
          Sets the extension points enabled or disabled.
 void setGlobalFont(Font globalFont)
           
 void setPlugInDirectory(File plugInDirectory)
           
 void setProfile(BaseModel profile)
          Sets the currently active SchemaProfileof the Application
 void setProfileSaveFile(File profileSaveFile)
           
 void setProxy(boolean enabled, String host, String port)
           
 void setTarget(org.eclipse.emf.common.notify.Notifier arg0)
           
 void showErrorMessage(Throwable e)
           
 void updateActionStates()
          Updates the States of all Actions depending on the current Selection's.
 void updateCurrentCompatibility(CompatibilityLevelCategory currentCompatibility)
           
 void updateLocale(Locale locale)
           
 void updateLookAndFeel(UIManager.LookAndFeelInfo info)
          Updates the current Look&Feel of all Components
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

VERSION

public static final String VERSION
The current Version of the Application.


BUILD_DATE

public static final String BUILD_DATE
The Date of the last Application Build.


SUPPORTED_LOOKANDFEEL

public static final UIManager.LookAndFeelInfo[] SUPPORTED_LOOKANDFEEL
The LookAndFeelInfo's which are supported by the currently operating System.


BUILTIN_LOCALES

public static final Locale[] BUILTIN_LOCALES
The Locales which are included in this version of SchemaProf.


ACTION_FILE_QUIT

public static final Object ACTION_FILE_QUIT
Reference Key of the Action : 'Quit' (for Use with getAction(Object))


ACTION_HELP_ABOUT

public static final Object ACTION_HELP_ABOUT
Reference Key of the Action : 'About Dialog' (for Use with getAction(Object))


ACTION_FILE_OPEN_PROFILE

public static final Object ACTION_FILE_OPEN_PROFILE
Reference Key of the Action : 'Open Profile' (for Use with getAction(Object))


ACTION_FILE_SAVE_PROFILE

public static final Object ACTION_FILE_SAVE_PROFILE
Reference Key of the Action : 'Save Profile' (for Use with getAction(Object))


ACTION_FILE_SAVE_PROFILE_AS

public static final Object ACTION_FILE_SAVE_PROFILE_AS
Reference Key of the Action : 'Save Profile As' (for Use with getAction(Object))


ACTION_FILE_CLOSE_PROFILE

public static final Object ACTION_FILE_CLOSE_PROFILE
Reference Key of the Action : 'Close Profile' (for Use with getAction(Object))


ACTION_MANAGER_TYPE

public static final Object ACTION_MANAGER_TYPE
Reference Key of the Action : 'Type Manager' (for Use with getAction(Object))


ACTION_MANAGER_CONDITION

public static final Object ACTION_MANAGER_CONDITION
Reference Key of the Action : 'Condition Manager' (for Use with getAction(Object))


ACTION_MANAGER_NAMESPACE

public static final Object ACTION_MANAGER_NAMESPACE
Reference Key of the Action : 'Namespace Manager' (for Use with getAction(Object))


ACTION_MANAGER_PROFILE

public static final Object ACTION_MANAGER_PROFILE
Reference Key of the Action : 'Profile Manager' (for Use with getAction(Object))


ACTION_MANAGER_CONSTRAINTS

public static final Object ACTION_MANAGER_CONSTRAINTS
Reference Key of the Action : 'Constraints Manager' (for Use with getAction(Object))


ACTION_REPOSITORY_MANAGER

public static final Object ACTION_REPOSITORY_MANAGER
Reference Key of the Action : 'Repository Manager' (for Use with getAction(Object))


ACTION_PREFERENCES

public static final Object ACTION_PREFERENCES
Reference Key of the Action : 'Preferences' (for Use with getAction(Object))


ACTION_ELEMENT_ACTIVATION

public static final Object ACTION_ELEMENT_ACTIVATION
Reference Key of the Action : 'Toggle Activation of Element' (for Use with getAction(Object))


ACTION_GLOBALELEMENT_FOCUS

public static final Object ACTION_GLOBALELEMENT_FOCUS
Reference Key of the Action: 'Focus Global Element' (for use with getAction(Object)).


ACTION_CONSTRAINTS_NEW

public static final Object ACTION_CONSTRAINTS_NEW

ACTION_CONSTRAINTS_DELETE

public static final Object ACTION_CONSTRAINTS_DELETE

ACTION_CONSTRAINTS_RENAME

public static final Object ACTION_CONSTRAINTS_RENAME

ACTION_CONSTRAINTS_DEFINITION_NEW

public static final Object ACTION_CONSTRAINTS_DEFINITION_NEW

ACTION_FILE_NEW

public static final Object ACTION_FILE_NEW

FONT_SIZE

public static int FONT_SIZE

HISTORY_PROFILE

public static final Integer HISTORY_PROFILE
Constant for retrieving a list of recently opened profiles.


HISTORY_CONSTRAINT

public static final Integer HISTORY_CONSTRAINT
Constant for retrieving a list of recently opened constraints.


HISTORY_SCHEMA

public static final Integer HISTORY_SCHEMA
Constant for retrieving a list of recently opened schemas.


HISTORY_UNKNOWN

public static final Integer HISTORY_UNKNOWN
Constant for retrieving a list of recently opened files whith an unknown type.


HISTORY_ALL

public static final Integer HISTORY_ALL
Constant for retrieving a list of all recently opened files with any type.

Constructor Detail

MainFrame

public MainFrame()
Creates a new MainFrame Object and all necessary SubComponents and displays them.

Method Detail

getAction

public Action getAction(Object key)
Returns the Action specified with 'key' if it exists. (Please use the static Reference Keys of the Actions)

Parameters:
key - The Class Object of the Action you want to retrieve
Returns:
A AbstractMainFrameAction

quit

public void quit(int status)
Shuts down the Application

Parameters:
status - The Exit Status for Debugging Purposes

getProfile

public BaseModel getProfile()
Returns the currently active BaseModelof the Application

Returns:
The currently active BaseModel (Either SchemaProfile or Constraints)

setProfile

public void setProfile(BaseModel profile)
Sets the currently active SchemaProfileof the Application

Parameters:
profile - The SchemaProfileto set.

getCurrentLocale

public Locale getCurrentLocale()
Returns the currently active Localeof the Application

Returns:
The currently active Locale.
See Also:
getDefaultLocale()

getDefaultLocale

public Locale getDefaultLocale()
Returns the default locale of the resource bundle of the GUI. This locale should be used if a previously used locale isn't available anymore.

Returns:
The default locale for displaying strings in the GUI.
See Also:
getCurrentLocale()

getCurrentLookAndFeelInfo

public UIManager.LookAndFeelInfo getCurrentLookAndFeelInfo()
Returns the currently active LookAndFeelInfo of the Application

Returns:
The currently active LookAndFeelInfo.

getMainComponent

public MainComponent getMainComponent()
Returns the MainComponentof the Application

Returns:
The MainComponent.

getResourceBundle

public ResourceBundle getResourceBundle()
Returns the currently active ResourceBundleof the Application depending on the currently active Locale.

Returns:
The currently active ResourceBundle.

updateActionStates

public void updateActionStates()
Updates the States of all Actions depending on the current Selection's.


updateLookAndFeel

public void updateLookAndFeel(UIManager.LookAndFeelInfo info)
Updates the current Look&Feel of all Components

Parameters:
info - The LookAndFeelInfo to set

updateLocale

public void updateLocale(Locale locale)

showErrorMessage

public void showErrorMessage(Throwable e)

getProfileSaveFile

public File getProfileSaveFile()
Returns:
Returns the profileSaveFile.

setProfileSaveFile

public void setProfileSaveFile(File profileSaveFile)
Parameters:
profileSaveFile - The SaveFile of the current active Profile.

getCurrentCompatibility

public CompatibilityLevelCategory getCurrentCompatibility()
Returns:
Returns the currentCompatibility.

updateCurrentCompatibility

public void updateCurrentCompatibility(CompatibilityLevelCategory currentCompatibility)
Parameters:
currentCompatibility - The currentCompatibility to set.

getString

public String getString(String key,
                        Object[] arguments)
Returns a localized string from the resource bundle which has inserted arguments.

Parameters:
key - The key of the string in the resource bundle
arguments - The arguments which should be inserted into the string
Returns:
The localized string

getSupportedLocales

public Set getSupportedLocales()
Returns a list of Locale-instances which are supported by the SchemaProf GUI.

Returns:
Set of Locale-instances.

getString

public String getString(String key)
Returns a localized string from the resource bundle.

Parameters:
key - The key of the string in the resource bundle
Returns:
The localized string

getPlugIns

public PlugIn[] getPlugIns()
Returns the currently active PlugIn`s of this Application.

Returns:
The PlugIns as an Array.

getPlugInDirectory

public File getPlugInDirectory()
Returns:
Returns the plugInDirectory.

setPlugInDirectory

public void setPlugInDirectory(File plugInDirectory)
Parameters:
plugInDirectory - The plugInDirectory to set.

setProxy

public void setProxy(boolean enabled,
                     String host,
                     String port)

getHistory

public List getHistory(Integer historyType)
Returns a list of recently opened files of a certain type.

Parameters:
historyType - The type of files which should be contained in the history.
Returns:
A list of URIHistoryObject-instances.
See Also:
addHistoryObject(Object), HISTORY_PROFILE, HISTORY_CONSTRAINT, HISTORY_SCHEMA, HISTORY_ALL

addHistoryObject

public URIHistoryObject addHistoryObject(Object object)
Adds an object to one of the histories of recently opened files.

Parameters:
object - Either a File or a URI.
Returns:
The created history object or null if it wasn't successful.
See Also:
getHistory(Integer)

openProfile

public boolean openProfile(File file)
Opens the given file and tries to read the contained application profile. If the file is encoded in Base64Binary, then, it is decoded to a ZIP file first, and then opened. It also checks whether there occured errors while reading the profile and informs the user about it.

Parameters:
file - The profile which should be opened.
Returns:
true if loading the application profile was successful, false otherwise

enableLoading

public void enableLoading(boolean enabled)

enableLoading

public void enableLoading(boolean enabled,
                          Window frame)

getLastOpenProfile

public String getLastOpenProfile()

getLastOpenConstraintFile

public String getLastOpenConstraintFile()

closeProfile

public boolean closeProfile(BaseModel profile)
Closes an open application profile and sets the file history.

Parameters:
profile - The application profile which should be closed.
Returns:
true if closing the application profile was successful, false otherwise

setGlobalFont

public void setGlobalFont(Font globalFont)

getGlobalFont

public Font getGlobalFont()

getCategory

public ModelCategory getCategory(URI fileUri)

getProfileMode

public ModelCategory getProfileMode()

getBundleDirectory

public File getBundleDirectory()
Returns the direcory which contains additional resource files which should be loaded by SchemaProf.

Returns:
Returns the bundleDirectory.
See Also:
setBundleDirectory(File)

setBundleDirectory

public void setBundleDirectory(File bundleDirectory)
Set the directory which contains additional resource files which should be loaded. A change of this parameter takes effect after a restart of SchemaProf.

Parameters:
bundleDirectory - The bundleDirectory to set.
See Also:
getBundleDirectory()

setExtensionPointsEnabled

public void setExtensionPointsEnabled(boolean value)
Sets the extension points enabled or disabled.

Parameters:
value - true to enable false to disable

areExtensionPointsEnabled

public boolean areExtensionPointsEnabled()
Returns the status of the extension points.

Returns:
Returns true when the extension points are enabled false otherwise.

getTarget

public org.eclipse.emf.common.notify.Notifier getTarget()
Specified by:
getTarget in interface org.eclipse.emf.common.notify.Adapter

isAdapterForType

public boolean isAdapterForType(Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification arg0)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter

setTarget

public void setTarget(org.eclipse.emf.common.notify.Notifier arg0)
Specified by:
setTarget in interface org.eclipse.emf.common.notify.Adapter

getPreferences

public Preferences getPreferences()


Copyright © 2004-2007 IWM - Institut fuer Wissensmedien. All Rights Reserved.