Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.menus
Class AbstractWorkbenchTrimWidget


java.lang.Object
  extended by 

org.eclipse.jface.menus.AbstractTrimWidget
      extended by 
org.eclipse.ui.menus.AbstractWorkbenchTrimWidget
All Implemented Interfaces:
IWidget, IWorkbenchWidget

public abstract class AbstractWorkbenchTrimWidget
extends AbstractTrimWidget
implements IWorkbenchWidget

Extension for trim widgets contributed to the workbench. The extension point handler will call the init method to inform the contributed widgets as to which workbench window they're currently being hosted in.

Since:
3.2

Constructor Summary
AbstractWorkbenchTrimWidget ()
           
 
Method Summary
  Point getPreferredSize ()
           
  IWorkbenchWindow getWorkbenchWindow ()
          Convenience method to get the IWorkbenchWindow that is hosting this widget.
 void init ( IWorkbenchWindow workbenchWindow)
          Define the IWorkbenchWindow that this trim is being hosted in.
 
Methods inherited from class org.eclipse.jface.menus. AbstractTrimWidget
dispose, fill, fill, fill, fill, fill
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.menus. IWidget
dispose, fill, fill, fill, fill
 

Constructor Detail

AbstractWorkbenchTrimWidget

public AbstractWorkbenchTrimWidget()
Method Detail

init

public void init(
IWorkbenchWindow workbenchWindow)
Define the IWorkbenchWindow that this trim is being hosted in. Note that subclasses may extend but should not override. The base implementation caches the value for access through the getWorkbenchWindow method.

Specified by:
init in interface IWorkbenchWidget
Parameters:
workbenchWindow - the current workbench
See Also:
IWorkbenchWidget.init(org.eclipse.ui.IWorkbenchWindow)

getWorkbenchWindow

public 
IWorkbenchWindow getWorkbenchWindow()
Convenience method to get the IWorkbenchWindow that is hosting this widget.

Returns:
The IWorkbenchWindow hosting this widget.

getPreferredSize

public 
Point getPreferredSize()
Returns:
The preferred size of this item
Since:
3.3

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire