| |
|
| java.lang.Object org.eclipse.ui.internal.PerspectiveSwitcher
PerspectiveSwitcher | public class PerspectiveSwitcher implements IWindowTrim(Code) | | A utility class to manage the perspective switcher. At some point, it might be nice to
move all this into PerspectiveViewBar.
since: 3.0 |
PerspectiveSwitcher | public PerspectiveSwitcher(IWorkbenchWindow window, CBanner topBar, int style)(Code) | | Creates an instance of the perspective switcher.
Parameters: window - it's window Parameters: topBar - the CBanner to place this widget in Parameters: style - the widget style to use |
addReorderListener | public void addReorderListener(IReorderListener listener)(Code) | | Add a listener for reordering of perspectives (usually done through drag
and drop).
Parameters: listener - |
createControl | public void createControl(Composite parent)(Code) | | Create the contents of the receiver
Parameters: parent - |
dispose | public void dispose()(Code) | | Dispose resources being held by the receiver
|
dock | public void dock(int dropSide)(Code) | | |
findPerspectiveShortcut | public IContributionItem findPerspectiveShortcut(IPerspectiveDescriptor perspective, IWorkbenchPage page)(Code) | | Find a contribution item that matches the perspective provided.
Parameters: perspective - Parameters: page - the IContributionItem or null if no matches were found |
getControl | public Control getControl()(Code) | | |
getHeightHint | public int getHeightHint()(Code) | | |
getValidSides | public int getValidSides()(Code) | | |
getWidthHint | public int getWidthHint()(Code) | | |
handleClose | public void handleClose()(Code) | | |
isCloseable | public boolean isCloseable()(Code) | | |
isResizeable | public boolean isResizeable()(Code) | | |
restoreState | public void restoreState(IMemento memento)(Code) | | Method to restore the width of the perspective bar
Parameters: memento - |
saveState | public void saveState(IMemento persBarMem)(Code) | | Method to save the width of the perspective bar in the
Parameters: persBarMem - |
setPerspectiveBarLocation | public void setPerspectiveBarLocation(String preference)(Code) | | Locate the perspective bar according to the provided location
Parameters: preference - the location to put the perspective bar at |
update | public void update(boolean force)(Code) | | Update the receiver
Parameters: force - |
updateBarParent | public void updateBarParent()(Code) | | Updates the height of the CBanner if the perspective bar
is docked on the top right
|
updatePerspectiveBar | void updatePerspectiveBar()(Code) | | Method to rebuild and update the toolbar when necessary
|
|
|
|