|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IRemotePartService

Remote API Wrapper for the org.eclipse.ui.IPartService (Online documentation)
Original documentation:
A part service tracks the creation and activation of parts within a workbench page.
| Field Summary | |
|---|---|
static int |
ALLEVENTS
Bit flag that combines all single bit flags |
static int |
PARTACTIVATED
Bit flag to get notified when a part was activated |
static int |
PARTBROUGHTTOTOP
Bit flag to get notified after a part has been brought to top |
static int |
PARTCLOSED
Bit flag to get notified after a part is closed |
static int |
PARTDEACTIVATED
Bit flag to get notified when a part was deactivated |
static int |
PARTOPENED
Bit flag to get notified when a part was opened |
| Method Summary | |
|---|---|
void |
addPartListenerSSJSLib(int eventMask,
java.lang.String uniqueId,
java.lang.String server,
java.lang.String dbPath,
java.lang.String ssjsLibName,
java.lang.String methodName,
java.lang.Object data)
Use this method to get notified of part events in the system, e.g. that a viewpart has been activated, opened or closed. |
IRemoteWorkbenchPart |
getActivePart()
Returns the active part. |
IRemoteWorkbenchPartReference |
getActivePartReference()
Returns the active part reference. |
java.util.List<IRemoteWorkbenchPartReference> |
getLastActiveParts()
Helper method that returns a history of the last 20 active parts. |
void |
removePartListenerSSJSLib(java.lang.String uniqueId)
Use this method to unregister a preregistered listener |
| Methods inherited from interface com.mindoo.remote.api.IRemoteEclipseWrapper |
|---|
_internalGetId, equalWrappedObjects |
| Field Detail |
|---|
static final int PARTACTIVATED
static final int PARTDEACTIVATED
static final int PARTBROUGHTTOTOP
static final int PARTCLOSED
static final int PARTOPENED
static final int ALLEVENTS
| Method Detail |
|---|
IRemoteWorkbenchPart getActivePart()
throws RemoteEclipseAPIException
RemoteEclipseAPIException
java.util.List<IRemoteWorkbenchPartReference> getLastActiveParts()
throws RemoteEclipseAPIException
RemoteEclipseAPIException
IRemoteWorkbenchPartReference getActivePartReference()
throws RemoteEclipseAPIException
RemoteEclipseAPIException
void addPartListenerSSJSLib(int eventMask,
java.lang.String uniqueId,
java.lang.String server,
java.lang.String dbPath,
java.lang.String ssjsLibName,
java.lang.String methodName,
java.lang.Object data)
throws RemoteEclipseAPIException
methodName(uniqueId:String, eventBit:int, part:IRemoteWorkbenchPart, data:String);
uniqueId.session - the current sessiondatabase - the database of the SSJS library design elementeclipseconnection - a handle for a remote API connection
eventMask - bitmask of events that are relevant for this listener, -1 means all eventsuniqueId - unique id to be used when calling #removePartListener(String), existing listeners with this ID will be overwrittenserver - server of SSJS databasedbPath - filepath of SSJS databasessjsLibName - SSJS library namemethodName - method name in JavaScriptdata - any value that will be passed to the JS function as last method argument
RemoteEclipseAPIExceptionPARTACTIVATED,
PARTDEACTIVATED,
PARTBROUGHTTOTOP,
PARTCLOSED,
PARTOPENED,
ALLEVENTSvoid removePartListenerSSJSLib(java.lang.String uniqueId)
uniqueId - unique id that was used when calling #addPartListenerSSJSLib(int, String, String, String, String, String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||