|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRemoteShelfPage
Remote API Wrapper for the com.ibm.rcp.ui.shelf.ShelfPage
(Online documentation)
Original documentation:
A "sidebar" or peripheral view on the right or left side of the client, containing panels that display Eclipse view parts.
Field Summary | |
---|---|
static int |
COLLAPSED
Specifies sidebar is in closed (or collapsed) mode. |
static int |
EXPANDED
Specifies sidebar is in open (or expanded) mode. |
static int |
LEFT
Specifies LEFT orientation for the sidebar. |
static int |
RIGHT
Specifies RIGHT orientation for the sidebar. |
static int |
THIN
Specifies sidebar is in thin mode. |
Method Summary | |
---|---|
void |
addViewtoSideShelf(java.lang.String secondaryIdBase,
java.lang.String viewTitle,
java.lang.String className,
java.lang.String iconPath)
Helper method to add a view to the sideshelf |
IRemoteViewReference |
findView(java.lang.String viewId)
Returns the view reference of the given ID |
IRemoteViewReference |
findViewReference(java.lang.String viewId,
java.lang.String secondaryId)
Returns the view reference with the specified id and secondary id. |
int |
getDefaultMode()
Returns the mode that the shelf is set to by default when not restoring state. |
java.lang.String |
getId()
Returns the String identifier for the shelf page. |
int |
getMode()
Returns the mode that the shelf is currently in. |
IRemoteShelfViewReference[] |
getShelfViewReferences()
Returns an array of view references that comprise the shelf view stack. |
void |
hideView(IRemoteViewReference ref)
Hides the view that belongs to the given reference, if any. |
void |
removeViewFromSideShelf(java.lang.String secondaryIdBase)
Helper method to unregister a view from the sideshelf |
void |
setDefaultMode(int mode)
Sets the default mode the shelf should start out in if state is not restored. |
void |
setMode(int mode)
Sets the width of the shelf area appropriately for the given mode. |
IRemoteViewPart |
showView(java.lang.String viewId)
Shows a view in the shelf page if it is not open in a new window. |
IRemoteViewPart |
showView(java.lang.String viewId,
java.lang.String secondaryId,
int mode)
Shows a shelf panel in this page with the given view id and optional secondary id. |
Methods inherited from interface com.mindoo.remote.api.IRemoteEclipseWrapper |
---|
_internalGetId, equalWrappedObjects |
Field Detail |
---|
static final int LEFT
static final int RIGHT
static final int COLLAPSED
static final int THIN
static final int EXPANDED
Method Detail |
---|
IRemoteViewReference findView(java.lang.String viewId) throws RemoteEclipseAPIException
viewId
- view ID to find
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
java.lang.String getId() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void hideView(IRemoteViewReference ref) throws RemoteEclipseAPIException
ref
- the reference whose view is to be hidden
RemoteEclipseAPIException
void setMode(int mode) throws RemoteEclipseAPIException
mode
- int representing one of three modes: COLLAPSED if in collapsed state (only collapse arrow showing) THIN if in thin mode (only icons showing) EXPANDED if in expanded mode (fully expanded)
RemoteEclipseAPIException
void setDefaultMode(int mode) throws RemoteEclipseAPIException
mode
- int representing one of three modes: collapsed, thin, or expanded.
RemoteEclipseAPIException
int getMode() throws RemoteEclipseAPIException
RemoteEclipseAPIException
int getDefaultMode() throws RemoteEclipseAPIException
RemoteEclipseAPIException
IRemoteViewPart showView(java.lang.String viewId) throws RemoteEclipseAPIException
viewId
- the id of the view part to show
RemoteEclipseAPIException
IRemoteViewPart showView(java.lang.String viewId, java.lang.String secondaryId, int mode) throws RemoteEclipseAPIException
viewId
- the id of the view specified in the view extensionsecondaryId
- the secondary id specified, or null for if there is no secondary idmode
- the activation mode. Must be VIEW_ACTIVATE, VIEW_VISIBLE or VIEW_CREATE
RemoteEclipseAPIException
IRemoteShelfViewReference[] getShelfViewReferences() throws RemoteEclipseAPIException
RemoteEclipseAPIException
void addViewtoSideShelf(java.lang.String secondaryIdBase, java.lang.String viewTitle, java.lang.String className, java.lang.String iconPath) throws RemoteEclipseAPIException
secondaryIdBase
- base name for secondary id; the method registers a new with secondaryIdBase+".view" and a new shelf view with secondaryIdBase+".sideshelf" in the extension registryviewTitle
- titleclassName
- java class nameiconPath
- path to icon or empty string
RemoteEclipseAPIException
void removeViewFromSideShelf(java.lang.String secondaryIdBase) throws RemoteEclipseAPIException
secondaryIdBase
- base name for secondary id; the method zbregisters a dynamic view contribution with secondaryIdBase+".view" and a dynamic shelf view contribution with secondaryIdBase+".sideshelf" in the extension registry
RemoteEclipseAPIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |