|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteWorkbenchPage
Remote API Wrapper for the org.eclipse.ui.IWorkbenchPage
(Online documentation)
Original documentation:
A workbench page consists of an arrangement of views and editors intended to be presented together to the user in a single workbench window.
A page can contain 0 or more views and 0 or more editors. These views and editors are contained wholly within the page and are not shared with other pages. The layout and visible action set for the page is defined by a perspective.
The number of views and editors within a page is restricted to simplify part management for the user. In particular:
Field Summary | |
---|---|
static java.lang.String |
CHANGE_ACTION_SET_HIDE
Change event id when an action set is hidden in a perspective. |
static java.lang.String |
CHANGE_ACTION_SET_SHOW
Change event id when an action set is shown in a perspective. |
static java.lang.String |
CHANGE_EDITOR_AREA_HIDE
Change event id when the editor area is shown in a perspective. |
static java.lang.String |
CHANGE_EDITOR_AREA_SHOW
Change event id when the editor area is shown in a perspective. |
static java.lang.String |
CHANGE_EDITOR_CLOSE
Change event id when one or more editors are closed in a perspective. |
static java.lang.String |
CHANGE_EDITOR_OPEN
Change event id when one or more editors are opened in a perspective. |
static java.lang.String |
CHANGE_FAST_VIEW_ADD
Change event id when an action set is hidden in a perspective. |
static java.lang.String |
CHANGE_FAST_VIEW_REMOVE
Change event id when a fast view is added in a perspective. |
static java.lang.String |
CHANGE_RESET
Change event id when the perspective is reset to its original state. |
static java.lang.String |
CHANGE_RESET_COMPLETE
Change event id when the perspective has completed a reset to its original state. |
static java.lang.String |
CHANGE_VIEW_HIDE
Change event id when one or more views are hidden in a perspective. |
static java.lang.String |
CHANGE_VIEW_SHOW
Change event id when one or more views are shown in a perspective. |
static java.lang.String |
CHANGE_WORKING_SET_REPLACE
Change event id when the page working set was replaced |
static java.lang.String |
CHANGE_WORKING_SETS_REPLACE
Change event id when the page working set was replaced |
static java.lang.String |
EDITOR_ID_ATTR
|
static int |
STATE_MAXIMIZED
State of a view in a given page when the page is zoomed in on the view stack. |
static int |
STATE_MINIMIZED
State of a view in a given page when the view stack is minimized. |
static int |
STATE_RESTORED
State of a view in a given page when the view stack is in it's normal state. |
static int |
VIEW_ACTIVATE
Show view mode that indicates the view should be made visible and activated. |
static int |
VIEW_CREATE
Show view mode that indicates the view should be made created but not necessarily be made visible. |
static int |
VIEW_VISIBLE
Show view mode that indicates the view should be made visible. |
Method Summary | |
---|---|
void |
activate(IRemoteWorkbenchPart part)
Activates the given part. |
void |
bringToTop(IRemoteWorkbenchPart part)
Moves the given part forward in the Z order of this page so as to make it visible, without changing which part has focus. |
void |
closeAllPerspectives(boolean saveEditors,
boolean closePage)
Closes all perspectives in this page. |
void |
closePerspective(IRemotePerspectiveDescriptor desc,
boolean saveEditors,
boolean closePage)
Closes the specified perspective in this page. |
IRemoteViewPart |
findView(java.lang.String viewId)
Returns the view in this page with the specified id. |
IRemoteViewReference |
findViewReference(java.lang.String viewId)
Returns the view reference with the specified id. |
IRemoteViewReference |
findViewReference(java.lang.String viewId,
java.lang.String secondaryId)
Returns the view reference with the specified id and secondary id. |
java.lang.String |
getLabel()
Returns the page label. |
IRemotePerspectiveDescriptor[] |
getOpenPerspectives()
Returns the descriptors for the perspectives that are open in this page, in the order in which they were opened. |
int |
getPartState(IRemoteWorkbenchPartReference ref)
Returns the maximized/minimized/restored state of the given part reference. |
IRemotePerspectiveDescriptor |
getPerspective()
Returns the current perspective descriptor for this page, or null if there is no current perspective. |
IRemoteWorkbenchPartReference |
getReference(IRemoteWorkbenchPart part)
Find the part reference for the given part. |
IRemoteViewReference[] |
getViewReferences()
Returns a list of the reference to views visible on this page. |
IRemoteViewPart[] |
getViewStack(IRemoteViewPart part)
Returns an array of IViewParts that are stacked with the given part. |
IRemoteWorkbenchWindow |
getWorkbenchWindow()
Returns the workbench window of this page. |
void |
hideActionSet(java.lang.String actionSetID)
Hides an action set in this page. |
void |
hideView(IRemoteViewPart view)
Hides the given view. |
void |
hideView(IRemoteViewReference view)
Hides the given view that belongs to the reference, if any. |
boolean |
isPartVisible(IRemoteWorkbenchPart part)
Returns whether the specified part is visible. |
void |
resetPerspective()
Changes the visible views, their layout, and the visible action sets within the page to match the current perspective descriptor. |
void |
setPartState(IRemoteWorkbenchPartReference ref,
int state)
Set the state of the given part reference. |
void |
setPerspective(IRemotePerspectiveDescriptor perspective)
Changes the visible views, their layout, and the visible action sets within the page to match the given perspective descriptor. |
void |
showActionSet(java.lang.String actionSetID)
Shows an action set in this page. |
IRemoteViewPart |
showView(java.lang.String viewId)
Shows the view identified by the given view id in this page and gives it focus. |
IRemoteViewPart |
showView(java.lang.String viewId,
java.lang.String secondaryId,
int mode)
Shows a view in this page with the given id and secondary id. |
void |
toggleZoom(IRemoteWorkbenchPartReference ref)
Zoom the page in on a part. |
Methods inherited from interface com.mindoo.remote.api.org.eclipse.ui.IRemoteSelectionService |
---|
getSelectionAsURIs, getSelectionAsURIs, getSelectionAsURIs |
Methods inherited from interface com.mindoo.remote.api.IRemoteEclipseWrapper |
---|
_internalGetId, equalWrappedObjects |
Field Detail |
---|
static final int VIEW_ACTIVATE
showView(String)
.
static final int VIEW_VISIBLE
static final int VIEW_CREATE
static final int STATE_MINIMIZED
static final int STATE_MAXIMIZED
static final int STATE_RESTORED
static final java.lang.String EDITOR_ID_ATTR
static final java.lang.String CHANGE_RESET
static final java.lang.String CHANGE_RESET_COMPLETE
static final java.lang.String CHANGE_VIEW_SHOW
static final java.lang.String CHANGE_VIEW_HIDE
static final java.lang.String CHANGE_EDITOR_OPEN
static final java.lang.String CHANGE_EDITOR_CLOSE
static final java.lang.String CHANGE_EDITOR_AREA_SHOW
static final java.lang.String CHANGE_EDITOR_AREA_HIDE
static final java.lang.String CHANGE_ACTION_SET_SHOW
static final java.lang.String CHANGE_ACTION_SET_HIDE
static final java.lang.String CHANGE_FAST_VIEW_ADD
static final java.lang.String CHANGE_FAST_VIEW_REMOVE
static final java.lang.String CHANGE_WORKING_SET_REPLACE
static final java.lang.String CHANGE_WORKING_SETS_REPLACE
Method Detail |
---|
void closePerspective(IRemotePerspectiveDescriptor desc, boolean saveEditors, boolean closePage) throws RemoteEclipseAPIException
desc
- the descriptor of the perspective to be closedsaveEditors
- whether the page's parts should be saved if closedclosePage
- whether the page itself should be closed if last perspective
RemoteEclipseAPIException
void closeAllPerspectives(boolean saveEditors, boolean closePage) throws RemoteEclipseAPIException
saveEditors
- whether the page's editors should be savedclosePage
- whether the page itself should be closed
RemoteEclipseAPIException
void activate(IRemoteWorkbenchPart part) throws RemoteEclipseAPIException
part
- the part to activate
RemoteEclipseAPIException
IRemoteViewPart findView(java.lang.String viewId) throws RemoteEclipseAPIException
viewId
- the id of the view extension to use
RemoteEclipseAPIException
IRemotePerspectiveDescriptor getPerspective() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void hideView(IRemoteViewReference view) throws RemoteEclipseAPIException
view
- the references whos view is to be hidden
RemoteEclipseAPIException
void hideView(IRemoteViewPart view) throws RemoteEclipseAPIException
view
- the view to hide
RemoteEclipseAPIException
boolean isPartVisible(IRemoteWorkbenchPart part) throws RemoteEclipseAPIException
part
- the part to test
RemoteEclipseAPIException
IRemoteViewReference findViewReference(java.lang.String viewId) throws RemoteEclipseAPIException
viewId
- the id of the view extension to use
RemoteEclipseAPIException
IRemoteViewReference findViewReference(java.lang.String viewId, java.lang.String secondaryId) throws RemoteEclipseAPIException
viewId
- the id of the view extension to usesecondaryId
- the secondary id to use, or null for no secondary id
RemoteEclipseAPIException
IRemoteViewPart showView(java.lang.String viewId, java.lang.String secondaryId, int mode) throws RemoteEclipseAPIException
viewId
- the id of the view extension to usesecondaryId
- the secondary id to use, or null for no secondary idmode
- the activation mode. Must be VIEW_ACTIVATE, VIEW_VISIBLE or VIEW_CREATE
RemoteEclipseAPIException
IRemoteViewPart showView(java.lang.String viewId) throws RemoteEclipseAPIException
viewId
- the id of the view extension to use
RemoteEclipseAPIException
IRemoteViewPart[] getViewStack(IRemoteViewPart part) throws RemoteEclipseAPIException
part
- the part to test
RemoteEclipseAPIException
IRemoteViewReference[] getViewReferences() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void setPerspective(IRemotePerspectiveDescriptor perspective) throws RemoteEclipseAPIException
perspective
- the perspective descriptor
RemoteEclipseAPIException
void resetPerspective() throws RemoteEclipseAPIException
setPerspective(IRemotePerspectiveDescriptor)
RemoteEclipseAPIException
void bringToTop(IRemoteWorkbenchPart part) throws RemoteEclipseAPIException
part
- the part to bring forward
RemoteEclipseAPIException
java.lang.String getLabel() throws RemoteEclipseAPIException
RemoteEclipseAPIException
IRemoteWorkbenchWindow getWorkbenchWindow() throws RemoteEclipseAPIException
RemoteEclipseAPIException
IRemotePerspectiveDescriptor[] getOpenPerspectives() throws RemoteEclipseAPIException
RemoteEclipseAPIException
IRemoteWorkbenchPartReference getReference(IRemoteWorkbenchPart part) throws RemoteEclipseAPIException
part
- The part to search for. It can be null.
RemoteEclipseAPIException
int getPartState(IRemoteWorkbenchPartReference ref) throws RemoteEclipseAPIException
ref
- the workbench part to query. Must not be null.
RemoteEclipseAPIException
void setPartState(IRemoteWorkbenchPartReference ref, int state) throws RemoteEclipseAPIException
ref
- the workbench part reference. Must not be null.state
- one of the STATE_* constants.
RemoteEclipseAPIException
void toggleZoom(IRemoteWorkbenchPartReference ref) throws RemoteEclipseAPIException
ref
- the workbench part to zoom in on. Must not be null.
RemoteEclipseAPIException
void showActionSet(java.lang.String actionSetID) throws RemoteEclipseAPIException
actionSetID
- the action set to show
RemoteEclipseAPIException
void hideActionSet(java.lang.String actionSetID) throws RemoteEclipseAPIException
actionSetID
- the action set to hide
RemoteEclipseAPIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |