|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteWorkbenchWindowWithShelfPages
Remote API Wrapper for the com.ibm.rcp.ui.shelf.IWorkbenchWindowWithShelfPages
(Online documentation)
Original documentation:
A workbench window with 0 or more peripheral shelf pages.
This class may be used to access ShelfPage API, including methods to show or hide a view, as well
as change the size of the sidebar. This can be done as follows:
To access a ShelfPage object and, for example, hide a view:
// Substitute appropriate ShelfPage ID
IRemoteShelfPage shelfPage = windowWithShelfPages.getShelfPage(IRemoteWorkbenchWindowWithShelfPages.RIGHT);
if(shelfPage != null) {
IRemoteViewReference viewRef = shelfPage.findView(id);
if(viewRef!=null && (viewRef instanceof IRemoteShelfViewReference)) {
return shelfPage.hideView(viewRef);
}
}
Useful ShelfPage public methods:
public IRemoteViewPart showView(String viewId, String secondaryId, int mode)
public void hideView(IRemoteViewReference ref)
Set the width of the shelf area appropriately for the given mode (ShelfPage.COLLAPSED, ShelfPage.THIN, ShelfPage.EXPANDED):
public void setMode(int mode)
Field Summary | |
---|---|
static java.lang.String |
LEFT
Constant identifier for left shelf page |
static java.lang.String |
RIGHT
Constant identifier for right shelf page |
Method Summary | |
---|---|
IRemoteShelfPage |
getShelfPage(java.lang.String id)
Returns the shelf page with the specified id. |
IRemoteShelfPage[] |
getShelfPages()
Returns a list of shelf pages. |
Methods inherited from interface com.mindoo.remote.api.IRemoteEclipseWrapper |
---|
_internalGetId, equalWrappedObjects |
Field Detail |
---|
static final java.lang.String LEFT
static final java.lang.String RIGHT
Method Detail |
---|
IRemoteShelfPage[] getShelfPages() throws RemoteEclipseAPIException
RemoteEclipseAPIException
IRemoteShelfPage getShelfPage(java.lang.String id) throws RemoteEclipseAPIException
id
- the id of the shelf page
RemoteEclipseAPIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |