|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pvx.ooadide.eventmanager.EventManager
public class EventManager
Controls communication between Eclipse and ProvideX.
Field Summary | |
---|---|
static java.lang.String |
ADDING_RESOURCES_TO_SRC
|
static java.lang.String |
APPLY_IT_FORMAT
|
static java.lang.String |
BUILDER_EXE
|
static java.lang.String |
BUILDTYPE_STRIPLINES_PREP
|
static java.lang.String |
ECLIPSE_SHUTDOWN
|
static java.lang.String |
EVENT_FIRED
|
static java.lang.String |
EVENT_LISTNR
|
static java.lang.String |
EXPORT
|
static java.lang.String |
EXT_EVENT
|
static java.lang.String |
FULL_BUILD
|
static java.lang.String |
FULL_BUILD_ALT_EXE
|
static java.lang.String |
FULL_BUILD_END
|
static java.lang.String |
FULL_BUILD_START
|
static java.lang.String |
HOST_IS_READY
|
static java.lang.String |
IMPORT
|
static java.lang.String |
IMPORT_EXPORT_FILE
|
static java.lang.String |
IMPORT_EXPORT_PROPERTIES
|
static java.lang.String |
IMPORTING_END
|
static java.lang.String |
IMPORTING_START
|
static java.lang.String |
INCREMENTAL_BUILD
|
static java.lang.String |
INCREMENTAL_BUILD_ALT_EXE
|
static java.lang.String |
INVALID
|
static java.lang.String |
IOLIST_SCAN
|
static java.lang.String |
LIB_SCAN
|
static java.lang.String |
LOAD
|
static java.lang.String |
NAME
|
static java.lang.String |
NOMADS_BLOCKING
|
static java.lang.String |
NOMADS_NON_BLOCKING
|
static java.lang.String |
OPERATION_CANCEL
|
static java.lang.String |
OPERATION_ERROR
|
static java.lang.String |
OPERATION_REDO
|
static java.lang.String |
OPERATION_SUCCESS
|
static java.lang.String |
PASSWORD
|
static java.lang.String |
PATH
|
static java.util.Vector<java.lang.Integer> |
pervasiveHandles
|
static java.lang.String |
PREFERENCE_CHANGE
|
static java.lang.String |
PREFERENCE_NEW_VALUE
|
static java.lang.String |
PREFERENCE_OLD_VALUE
|
static java.lang.String |
PREFERENCE_PAGE_BUTTON
|
static java.lang.String |
PREFERENCE_PAGE_ID
|
static java.lang.String |
PREFERENCE_PROPERTY
|
static java.lang.String |
PROJECT_INI_FILE
|
static java.lang.String |
PROJECT_LIST
|
static java.lang.String |
PROJECT_LOCATION
|
static java.lang.String |
PROJECT_MEMBER_COUNT
|
static java.lang.String |
PROJECT_NAME
|
static java.lang.String |
REMOVE
|
static java.lang.String |
REMOVED_RESOURCE_FROM_SRC
|
static java.lang.Object |
REQUEST_SOCKET
|
static java.lang.String |
RESOURCE_LIST
|
static java.lang.String |
RESOURCE_PROPERTIES_CHANGED
|
static java.lang.String |
RUN_CONSOLE
|
static java.lang.String |
RUN_DESIGNER
|
static java.lang.String |
RUN_DICT_DATA_CLASS
|
static java.lang.String |
RUN_DICTMAINT
|
static java.lang.String |
RUN_HOST
|
static java.lang.String |
RUN_IT
|
static java.lang.String |
RUN_NOMADS
|
static java.lang.String |
RUN_TEST_PANEL
|
static java.lang.String |
STRIP_LINE_NO
|
static java.lang.String |
VALID
|
static java.lang.String |
VALIDATE
|
Method Summary | |
---|---|
static void |
addExtJavaEventListener(java.lang.Object listener,
java.lang.String commandStr,
boolean notifyEvtMngr)
Adds an AbstractActionListener. |
static void |
addExtPvxEventListener(int listener,
java.lang.String commandStr)
Adds an AbstractActionListener |
void |
addListener(java.lang.String eventName)
Adds a listener to the EventManager. |
void |
addListener(java.lang.String eventName,
int ctlValue)
Adds a listener to the EventManager. |
static void |
addPervasiveObject(int ocxId)
Most Java objects instantiated by ProvideX are dropped after every event. |
void |
addToPrefPages(java.lang.String key,
java.lang.String value)
Adds the specified key to an Eclipse Preference page |
static void |
bye()
|
static void |
clearAllBlocks()
Frees all blocking PvxEvents |
static void |
collectGarbage()
Cleans up all objects that are not persistent |
static void |
confirmJavXIsRunning()
Establishes a connection to the ProvideX host, I.E. |
static boolean |
connectionWasDropped()
True if the connection with ProvideX has been dropped |
static void |
freeEvent(PvxEvent event)
Notify Eclipse that ProvideX has finish processing the event and if the EventManager is the guiManager then frees the event |
java.lang.String |
getAllocatedObjectList()
|
static java.awt.Component |
getClientGUIComponent()
|
static PluginConnectionControl |
getConCon()
|
static java.util.Hashtable |
getExtClassPrefs()
|
static java.util.ArrayList |
getExtCommands()
|
static EventManager |
getInstance()
|
static org.eclipse.core.runtime.IProgressMonitor |
getMonitor()
|
static java.lang.String |
getPvxHelperPath()
Returns the path to the directory containing the ProvideX helper programs |
static java.lang.String |
getRunningPvxExecutable()
|
static boolean |
handleEvent(boolean block,
java.lang.String eventName,
java.lang.String detail,
java.util.Properties buildProps)
Sends a PvxEvent to the ProvideX EventManager. |
void |
initConnection(PluginConnectionControl initCon)
|
static boolean |
isBlocking()
True if Eclipse is waiting for ProvideX to complete processing and event |
static boolean |
isEclipseShutingDown()
|
static boolean |
isEventManagerWaiting()
|
static boolean |
isPvxReady()
|
static boolean |
javXWasStarted()
Returns true if a connection to the ProvideX EventManager was previously established |
static void |
notifyEclipse(java.lang.String eventName,
java.lang.String status,
java.lang.String responseArguments)
|
void |
removeListener(java.lang.String eventName)
Removes a listener from the EventManager. |
static void |
removePervasiveObject(int ocxId)
Most Java objects instantiated by ProvideX will be dropped after every event. |
static void |
runProgramInView(java.lang.String javXArgs)
|
static void |
setConCon(PluginConnectionControl conCon)
|
static void |
setContinueWaiting(boolean sw)
|
static void |
setEclipseBye(boolean eclipseBye)
|
static void |
setMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
|
static void |
setPvxReady(boolean isPvxReady)
Notify Eclipse that ProvideX is ready to receive events |
static void |
setRunningPvxExecutable(java.lang.String runningPvxExecutable)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.Vector<java.lang.Integer> pervasiveHandles
public static final java.lang.String ECLIPSE_SHUTDOWN
public static final java.lang.String HOST_IS_READY
public static final java.lang.String EXT_EVENT
public static final java.lang.String ADDING_RESOURCES_TO_SRC
public static final java.lang.String REMOVED_RESOURCE_FROM_SRC
public static final java.lang.String FULL_BUILD
public static final java.lang.String INCREMENTAL_BUILD
public static final java.lang.String INCREMENTAL_BUILD_ALT_EXE
public static final java.lang.String FULL_BUILD_ALT_EXE
public static final java.lang.String LIB_SCAN
public static final java.lang.String IOLIST_SCAN
public static final java.lang.String STRIP_LINE_NO
public static final java.lang.String BUILDTYPE_STRIPLINES_PREP
public static final java.lang.String APPLY_IT_FORMAT
public static final java.lang.String IMPORT_EXPORT_PROPERTIES
public static final java.lang.String IMPORT_EXPORT_FILE
public static final java.lang.String EXPORT
public static final java.lang.String IMPORT
public static final java.lang.String PROJECT_LIST
public static final java.lang.String RESOURCE_PROPERTIES_CHANGED
public static final java.lang.String RESOURCE_LIST
public static final java.lang.String PREFERENCE_PAGE_BUTTON
public static final java.lang.String PREFERENCE_PAGE_ID
public static final java.lang.String PREFERENCE_CHANGE
public static final java.lang.String PREFERENCE_NEW_VALUE
public static final java.lang.String PREFERENCE_OLD_VALUE
public static final java.lang.String PREFERENCE_PROPERTY
public static final java.lang.String PASSWORD
public static final java.lang.String RUN_IT
public static final java.lang.String RUN_DICTMAINT
public static final java.lang.String RUN_DICT_DATA_CLASS
public static final java.lang.String RUN_DESIGNER
public static final java.lang.String RUN_NOMADS
public static final java.lang.String RUN_TEST_PANEL
public static final java.lang.String RUN_CONSOLE
public static final java.lang.String RUN_HOST
public static final java.lang.String EVENT_FIRED
public static final java.lang.String FULL_BUILD_START
public static final java.lang.String FULL_BUILD_END
public static final java.lang.String IMPORTING_START
public static final java.lang.String IMPORTING_END
public static final java.lang.String OPERATION_CANCEL
public static final java.lang.String OPERATION_ERROR
public static final java.lang.String OPERATION_SUCCESS
public static final java.lang.String OPERATION_REDO
public static final java.lang.String LOAD
public static final java.lang.String REMOVE
public static final java.lang.String NAME
public static final java.lang.String PATH
public static final java.lang.String PROJECT_INI_FILE
public static final java.lang.String EVENT_LISTNR
public static final java.lang.String PROJECT_NAME
public static final java.lang.String PROJECT_LOCATION
public static final java.lang.String PROJECT_MEMBER_COUNT
public static final java.lang.String BUILDER_EXE
public static final java.lang.String VALIDATE
public static final java.lang.String VALID
public static final java.lang.String INVALID
public static final java.lang.String NOMADS_BLOCKING
public static final java.lang.String NOMADS_NON_BLOCKING
public static final java.lang.Object REQUEST_SOCKET
Method Detail |
---|
public static EventManager getInstance()
public void addListener(java.lang.String eventName)
PvxEvent
to the host every time the
specified event occurs
eventName
- 1. The eventName to be addedpublic void addListener(java.lang.String eventName, int ctlValue)
addListener(String eventName)
is the
preferred mehtod to register a listener because
listeners registering via this method cannot block or pass
values then when the specified event occurs
eventName
- 1. String the EventName to be addedctlValue
- 2. int ctlValue to send when the specified event occurspublic void removeListener(java.lang.String eventName)
PvxEvent
to the host every time the
specified event occurs
public static boolean javXWasStarted()
public static void confirmJavXIsRunning()
public static boolean handleEvent(boolean block, java.lang.String eventName, java.lang.String detail, java.util.Properties buildProps)
block
- 1 boolean. Indicates Eclipse must wait for a response from ProvideX prior to continuingeventName
- 2 String. The name of the event that has occurred. there are no listeners registered for this event this method simply returnsdetail
- 3 String. The minor code for this eventbuildProps
- 4 Properties
. The minor code for this eventpublic static boolean connectionWasDropped()
public static void freeEvent(PvxEvent event)
public static void addPervasiveObject(int ocxId)
ocxId
- int. The object handle to make persistentremovePervasiveObject(int)
public static void removePervasiveObject(int ocxId)
ocxId
- int. The object handle to remove from the list of persistent objectsaddPervasiveObject(int)
public static void collectGarbage()
addPervasiveObject(int)
,
removePervasiveObject(int)
public static boolean isBlocking()
public static void clearAllBlocks()
public void initConnection(PluginConnectionControl initCon)
public static java.awt.Component getClientGUIComponent()
public static void setConCon(PluginConnectionControl conCon)
public static PluginConnectionControl getConCon()
public static java.lang.String getPvxHelperPath()
public static final void bye()
public static void notifyEclipse(java.lang.String eventName, java.lang.String status, java.lang.String responseArguments)
public static void setEclipseBye(boolean eclipseBye)
public static boolean isEclipseShutingDown()
public static void setPvxReady(boolean isPvxReady)
isPvxReady
- true if ProvideX is readypublic static boolean isPvxReady()
public static void setContinueWaiting(boolean sw)
public static boolean isEventManagerWaiting()
public static void setMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
public static org.eclipse.core.runtime.IProgressMonitor getMonitor()
public java.lang.String getAllocatedObjectList()
public static void setRunningPvxExecutable(java.lang.String runningPvxExecutable)
public static java.lang.String getRunningPvxExecutable()
public void addToPrefPages(java.lang.String key, java.lang.String value)
key
- value
- public static java.util.Hashtable getExtClassPrefs()
public static void addExtPvxEventListener(int listener, java.lang.String commandStr)
listener
- -The actionPerformed function of the listener will be calledcommandStr
- -String will appear in the Contributed Tools listpublic static void addExtJavaEventListener(java.lang.Object listener, java.lang.String commandStr, boolean notifyEvtMngr)
listener
- -The actionPerformed function of the listener will be calledcommandStr
- -String will appear in the Contributed Tools listnotifyEvtMngr
- -True if ProvideX should be informed the action occurred.public static java.util.ArrayList getExtCommands()
public static void runProgramInView(java.lang.String javXArgs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |