|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.CastApplication
public class CastApplication
This class controls all aspects of the application's execution.
Field Summary | |
---|---|
static String |
ID
Bundle Id. |
static String |
KEY_SCHEME_ID
|
static String |
PROPERTY_ACTIVE_PROJECT
Id of the Active project changed property. |
Fields inherited from interface org.eclipse.equinox.app.IApplication |
---|
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART |
Constructor Summary | |
---|---|
CastApplication()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener to the object. |
static boolean |
confirmationDialog(String title,
String message)
Displays a confirmation dialog. |
static void |
errorDialog(String title,
String message)
Displays an error dialog. |
static org.eclipse.core.resources.IProject |
getActiveProject()
|
static String |
getActiveProjectLocation()
|
static org.eclipse.swt.widgets.Shell |
getActiveShell()
Returns the active Shell . |
static org.eclipse.swt.dnd.Clipboard |
getClipboard()
|
static org.eclipse.swt.widgets.Display |
getDisplay()
|
static IPropertyChangeProvider |
getPropertyChangeProvider()
|
static void |
informationDialog(String title,
String message)
Displays an information dialog. |
static boolean |
questionDialog(String title,
String message)
Displays a Y/N question dialog. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener to the object. |
static void |
setActiveProject(org.eclipse.core.resources.IProject activeProjectArg)
Sets new active project. |
Object |
start(org.eclipse.equinox.app.IApplicationContext context)
|
void |
stop()
|
static void |
warningDialog(String title,
String message)
Displays a warning dialog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_ACTIVE_PROJECT
public static final String ID
public static final String KEY_SCHEME_ID
Constructor Detail |
---|
public CastApplication()
Method Detail |
---|
public static org.eclipse.swt.widgets.Display getDisplay()
public static org.eclipse.swt.dnd.Clipboard getClipboard()
public static String getActiveProjectLocation()
public static org.eclipse.core.resources.IProject getActiveProject()
public static void setActiveProject(org.eclipse.core.resources.IProject activeProjectArg)
ApplicationWorkbenchAdvisor
.
activeProjectArg
- new active projectpublic static org.eclipse.swt.widgets.Shell getActiveShell()
Shell
.
Shell
public static boolean confirmationDialog(String title, String message)
title
- dialog titlemessage
- message to confirm
public static void errorDialog(String title, String message)
title
- dialog titlemessage
- error messagepublic static void warningDialog(String title, String message)
title
- dialog titlemessage
- warning messagepublic static void informationDialog(String title, String message)
title
- dialog titlemessage
- information messagepublic static boolean questionDialog(String title, String message)
title
- dialog titlemessage
- question to confirm
public Object start(org.eclipse.equinox.app.IApplicationContext context) throws Exception
start
in interface org.eclipse.equinox.app.IApplication
Exception
IApplication.start(org.eclipse.equinox.app.IApplicationContext)
public void stop()
stop
in interface org.eclipse.equinox.app.IApplication
IApplication.stop()
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in interface IPropertyChangeProvider
l
- property change listenerIPropertyChangeProvider.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in interface IPropertyChangeProvider
l
- property change listener#removePropertyChangeListener(java.beans.PropertyChangeListener)
public static IPropertyChangeProvider getPropertyChangeProvider()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |