pl.edu.agh.cast
Class CastApplication

java.lang.Object
  extended by pl.edu.agh.cast.CastApplication
All Implemented Interfaces:
org.eclipse.equinox.app.IApplication, IPropertyChangeProvider

public class CastApplication
extends java.lang.Object
implements org.eclipse.equinox.app.IApplication, IPropertyChangeProvider

This class controls all aspects of the application's execution


Field Summary
static java.lang.String ID
           
static java.lang.String KEY_SCHEME_ID
           
static java.lang.String PROPERTY_ACTIVE_PROJECT
           
 
Fields inherited from interface org.eclipse.equinox.app.IApplication
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
CastApplication()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Add a property change listener to the object
static boolean confirmationDialog(java.lang.String title, java.lang.String message)
           
static void errorDialog(java.lang.String title, java.lang.String message)
           
static org.eclipse.core.resources.IProject getActiveProject()
           
static java.lang.String getActiveProjectLocation()
           
static org.eclipse.swt.widgets.Shell getActiveShell()
           
static org.eclipse.swt.dnd.Clipboard getClipboard()
           
static org.eclipse.swt.widgets.Display getDisplay()
           
static IPropertyChangeProvider getPropertyChangeProvider()
           
static void informationDialog(java.lang.String title, java.lang.String message)
           
static boolean questionDialog(java.lang.String title, java.lang.String message)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Remove a property change listener to the object
static void setActiveProject(org.eclipse.core.resources.IProject activeProjectArg)
          Note: should be used only by ApplicationWorkbenchAdvisor
 java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context)
           
 void stop()
           
static void warningDialog(java.lang.String title, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_ACTIVE_PROJECT

public static final java.lang.String PROPERTY_ACTIVE_PROJECT
See Also:
Constant Field Values

ID

public static final java.lang.String ID
See Also:
Constant Field Values

KEY_SCHEME_ID

public static final java.lang.String KEY_SCHEME_ID
See Also:
Constant Field Values
Constructor Detail

CastApplication

public CastApplication()
Method Detail

getDisplay

public static org.eclipse.swt.widgets.Display getDisplay()

getClipboard

public static org.eclipse.swt.dnd.Clipboard getClipboard()

getActiveProjectLocation

public static java.lang.String getActiveProjectLocation()

getActiveProject

public static org.eclipse.core.resources.IProject getActiveProject()

setActiveProject

public static void setActiveProject(org.eclipse.core.resources.IProject activeProjectArg)
Note: should be used only by ApplicationWorkbenchAdvisor


getActiveShell

public static org.eclipse.swt.widgets.Shell getActiveShell()

confirmationDialog

public static boolean confirmationDialog(java.lang.String title,
                                         java.lang.String message)

errorDialog

public static void errorDialog(java.lang.String title,
                               java.lang.String message)

warningDialog

public static void warningDialog(java.lang.String title,
                                 java.lang.String message)

informationDialog

public static void informationDialog(java.lang.String title,
                                     java.lang.String message)

questionDialog

public static boolean questionDialog(java.lang.String title,
                                     java.lang.String message)

start

public java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context)
                       throws java.lang.Exception
Specified by:
start in interface org.eclipse.equinox.app.IApplication
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface org.eclipse.equinox.app.IApplication

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface: IPropertyChangeProvider
Add a property change listener to the object

Specified by:
addPropertyChangeListener in interface IPropertyChangeProvider

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface: IPropertyChangeProvider
Remove a property change listener to the object

Specified by:
removePropertyChangeListener in interface IPropertyChangeProvider

getPropertyChangeProvider

public static IPropertyChangeProvider getPropertyChangeProvider()


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.