Java Doc for CommonNavigator.java in  » IDE-Eclipse » ui » org » eclipse » ui » navigator » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui » org.eclipse.ui.navigator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.navigator.CommonNavigator

CommonNavigator
public class CommonNavigator extends ViewPart implements ISetSelectionTarget,ISaveablePart,ISaveablesSource,IShowInTarget(Code)

This class provides the IViewPart for the Common Navigator framework in the Eclipse workbench. This class also serves as the backbone for navigational viewers. The following types are used by this class to render the Common Navigator:

Clients are not expected to subclass CommonNavigator. Clients that wish to define their own custom extensible navigator view need to specify an instance of the org.eclipse.ui.views extension point:

 <extension
 point="org.eclipse.ui.views">
 <view
 name="My Custom View"
 icon="relative/path/to/icon.gif"
 category="org.acme.mycategory"
 class="org.eclipse.ui.navigator.CommonNavigator"
 id="org.acme.MyCustomNavigatorID">
 </view>
 </extension> 
 

Clients that wish to extend the view menu provided via the org.eclipse.ui.popupMenus extension may specify the the popupMenuId specified by org.eclipse.ui.navigator.viewer (or a nested popupMenu element) of their target viewer as their target menu id.

This class may be instantiated; it is not intended to be subclassed.


since:
   3.2


Field Summary
final public static  intIS_LINKING_ENABLED_PROPERTY
    

Used to track changes to the CommonNavigator.isLinkingEnabled  property.


Constructor Summary
public  CommonNavigator()
    

Method Summary
protected  ActionGroupcreateCommonActionGroup()
    

The ActionGroup is used to populate the ActionBars of Common Navigator View Part, and the returned implementation will have an opportunity to fill the ActionBars of the view as soon as it is created.

protected  CommonNavigatorManagercreateCommonManager()
    

The Common Navigator Manager handles the setup of the Common Navigator Menu, manages updates to the ActionBars from CommonActionProvider   extensions as the user's selection changes, and also updates the status bar based on the current selection.

protected  CommonViewercreateCommonViewer(Composite aParent)
    

Constructs and returns an instance of CommonViewer .

public  voidcreatePartControl(Composite aParent)
    

Create the CommonViewer part control and setup the default providers as necessary.

public  voiddispose()
    

Note: This method is for internal use only.

public  voiddoSave(IProgressMonitor monitor)
    
public  voiddoSaveAs()
    
public  Saveable[]getActiveSaveables()
    
public  ObjectgetAdapter(Class adapter)
     Returns an object which is an instance of the given class associated with this object.
public  CommonViewergetCommonViewer()
    

Provides access to the commonViewer used by the current CommonNavigator.

protected  StringgetFrameToolTipText(Object anElement)
    

Returns the tool tip text for the given element.

protected  IAdaptablegetInitialInput()
     The initial input for the viewer.
public  NavigatorActionServicegetNavigatorActionService()
    
public  INavigatorContentServicegetNavigatorContentService()
    
public  Saveable[]getSaveables()
    
protected  voidhandleDoubleClick(DoubleClickEvent anEvent)
    

Note: This method is for internal use only.

public  voidinit(IViewSite aSite, IMemento aMemento)
    

Note: This method is for internal use only.

protected  voidinitListeners(TreeViewer viewer)
    

Adds the listeners to the Common Viewer.

public  booleanisDirty()
    
final public  booleanisLinkingEnabled()
    
public  booleanisSaveAsAllowed()
    
public  booleanisSaveOnCloseNeeded()
    
public  voidsaveState(IMemento aMemento)
    

Note: This method is for internal use only.

public  voidselectReveal(ISelection selection)
    

Set the selection to the Common Navigator tree, and expand nodes if necessary.

public  voidsetFocus()
    

Force the workbench to focus on the Common Navigator tree.

final public  voidsetLinkingEnabled(boolean toEnableLinking)
    

Linking is handled by an action which listens for changes to the CommonNavigator.IS_LINKING_ENABLED_PROPERTY .

public  booleanshow(ShowInContext context)
    
protected  voidupdateTitle()
    

Updates the title text and title tool tip.


Field Detail
IS_LINKING_ENABLED_PROPERTY
final public static int IS_LINKING_ENABLED_PROPERTY(Code)

Used to track changes to the CommonNavigator.isLinkingEnabled  property.





Constructor Detail
CommonNavigator
public CommonNavigator()(Code)




Method Detail
createCommonActionGroup
protected ActionGroup createCommonActionGroup()(Code)

The ActionGroup is used to populate the ActionBars of Common Navigator View Part, and the returned implementation will have an opportunity to fill the ActionBars of the view as soon as it is created. ( ActionGroup.fillActionBars(org.eclipse.ui.IActionBars) .

The default implementation returns an action group which will add the following actions:

  • Link with editor support. Allows the user to toggling linking the current selection with the active editors.

  • Collapse all. Collapses all expanded nodes.

  • Select Filters. Provides access to the "Select Filters" dialog that allows users to enable/disable filters and also the Content Extension activations.

The Action Group to be associated with the Common Navigator ViewPart.



createCommonManager
protected CommonNavigatorManager createCommonManager()(Code)

The Common Navigator Manager handles the setup of the Common Navigator Menu, manages updates to the ActionBars from CommonActionProvider   extensions as the user's selection changes, and also updates the status bar based on the current selection. The Common Navigator Manager class which handles menu populationand ActionBars




createCommonViewer
protected CommonViewer createCommonViewer(Composite aParent)(Code)

Constructs and returns an instance of CommonViewer . The ID of the Eclipse view part will be used to create the viewer. The ID is important as some extensions indicate they should only be used with a particular viewer ID.


Parameters:
  aParent - A composite parent to contain the Common Viewer An initialized instance of CommonViewer




createPartControl
public void createPartControl(Composite aParent)(Code)

Create the CommonViewer part control and setup the default providers as necessary.


See Also:   org.eclipse.ui.part.WorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)



dispose
public void dispose()(Code)

Note: This method is for internal use only. Clients should not call this method.

This method will be invoked when the DisposeListener is notified of the disposal of the Eclipse view part.


See Also:   org.eclipse.ui.part.WorkbenchPart.dispose



doSave
public void doSave(IProgressMonitor monitor)(Code)



doSaveAs
public void doSaveAs()(Code)



getActiveSaveables
public Saveable[] getActiveSaveables()(Code)



getAdapter
public Object getAdapter(Class adapter)(Code)
Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.
Parameters:
  adapter - the adapter class to look up a object castable to the given class, or null if this object does nothave an adapter for the given class



getCommonViewer
public CommonViewer getCommonViewer()(Code)

Provides access to the commonViewer used by the current CommonNavigator. The field will not be valid until after CommonNavigator.init(IViewSite,IMemento)  has been called by the Workbench.

The (already created) instance of Common Viewer.



getFrameToolTipText
protected String getFrameToolTipText(Object anElement)(Code)

Returns the tool tip text for the given element. Used as the tool tip text for the current frame, and for the view title tooltip.




getInitialInput
protected IAdaptable getInitialInput()(Code)
The initial input for the viewer. Defaults togetSite().getPage().getInput()



getNavigatorActionService
public NavigatorActionService getNavigatorActionService()(Code)
The Navigator Content Service which populates this instance ofCommon Navigator



getNavigatorContentService
public INavigatorContentService getNavigatorContentService()(Code)
The Navigator Content Service which populates this instance ofCommon Navigator



getSaveables
public Saveable[] getSaveables()(Code)



handleDoubleClick
protected void handleDoubleClick(DoubleClickEvent anEvent)(Code)

Note: This method is for internal use only. Clients should not call this method.


Parameters:
  anEvent - Supplied by the DoubleClick listener.



init
public void init(IViewSite aSite, IMemento aMemento) throws PartInitException(Code)

Note: This method is for internal use only. Clients should not call this method.


See Also:   org.eclipse.ui.part.ViewPart.init(org.eclipse.ui.IViewSiteorg.eclipse.ui.IMemento)



initListeners
protected void initListeners(TreeViewer viewer)(Code)

Adds the listeners to the Common Viewer.


Parameters:
  viewer - The viewer
since:
   2.0



isDirty
public boolean isDirty()(Code)



isLinkingEnabled
final public boolean isLinkingEnabled()(Code)
Whether linking the current selection with open editors isenabled.



isSaveAsAllowed
public boolean isSaveAsAllowed()(Code)



isSaveOnCloseNeeded
public boolean isSaveOnCloseNeeded()(Code)



saveState
public void saveState(IMemento aMemento)(Code)

Note: This method is for internal use only. Clients should not call this method.


See Also:   org.eclipse.ui.part.ViewPart.saveState(org.eclipse.ui.IMemento)



selectReveal
public void selectReveal(ISelection selection)(Code)

Set the selection to the Common Navigator tree, and expand nodes if necessary. Use caution when invoking this method as it can cause Navigator Content Extensions to load, thus causing plugin activation.


See Also:   org.eclipse.ui.part.ISetSelectionTarget.selectReveal(org.eclipse.jface.viewers.ISelection)



setFocus
public void setFocus()(Code)

Force the workbench to focus on the Common Navigator tree.


See Also:   org.eclipse.ui.part.WorkbenchPart.setFocus



setLinkingEnabled
final public void setLinkingEnabled(boolean toEnableLinking)(Code)

Linking is handled by an action which listens for changes to the CommonNavigator.IS_LINKING_ENABLED_PROPERTY . Custom implementations that wish to override this functionality, need to override the action used by the default ActionGroup and listen for changes to the above property.
Parameters:
  toEnableLinking - True enables linking the current selection with open editors




show
public boolean show(ShowInContext context)(Code)



updateTitle
protected void updateTitle()(Code)

Updates the title text and title tool tip. Called whenever the input of the viewer changes.




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.