Java Doc for ResourceNavigator.java in  » IDE-Eclipse » ui-ide » org » eclipse » ui » views » 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 ide » org.eclipse.ui.views.navigator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.views.navigator.ResourceNavigator

ResourceNavigator
public class ResourceNavigator extends ViewPart implements ISetSelectionTarget,IResourceNavigator(Code)
Implements the Resource Navigator view.


Field Summary
final public static  StringNAVIGATOR_VIEW_HELP_ID
    

Constructor Summary
public  ResourceNavigator()
     Constructs a new resource navigator view.

Method Summary
protected  FrameListcreateFrameList()
     Creates the frame source and frame list, and connects them.
public  voidcreatePartControl(Composite parent)
    
protected  TreeViewercreateViewer(Composite parent)
     Creates the viewer.
public  voiddispose()
    
protected  voideditorActivated(IEditorPart editor)
     An editor has been activated.
protected  voidfillContextMenu(IMenuManager menu)
     Called when the context menu is about to open.
protected  ResourceNavigatorActionGroupgetActionGroup()
     Returns the action group.
public  ObjectgetAdapter(Class adapter)
    
public  ResourceComparatorgetComparator()
     Returns the comparator.
public  FrameListgetFrameList()
    
 StringgetFrameName(Object element)
     Returns the name for the given element. Used as the name for the current frame.
 StringgetFrameToolTipText(Object element)
     Returns the tool tip text for the given element.
protected  StringgetHelpContextId()
     Returns the help context id to use for this view.
protected  IAdaptablegetInitialInput()
     Returns the initial input for the viewer.
public  ResourcePatternFiltergetPatternFilter()
     Returns the pattern filter for this view.
public  AbstractUIPlugingetPlugin()
     Returns the navigator's plugin.
public  ShellgetShell()
     Returns the shell to use for opening dialogs.
protected  IShowInSourcegetShowInSource()
     Returns the IShowInSource for this view.
protected  IShowInTargetgetShowInTarget()
     Returns the IShowInTarget for this view.
public  ResourceSortergetSorter()
     Return the sorter.
protected  StringgetStatusLineMessage(IStructuredSelection selection)
     Returns the message to show in the status line.
public  TreeViewergetTreeViewer()
     Returns the tree viewer which shows the resource hierarchy.
public  TreeViewergetViewer()
     Returns the resource viewer which shows the resource hierarchy.
public  IWorkingSetgetWorkingSet()
     Returns the working set for this view.
protected  voidhandleDoubleClick(DoubleClickEvent event)
     Handles a double-click event from the viewer.
protected  voidhandleKeyPressed(KeyEvent event)
     Handles a key press event from the viewer.
protected  voidhandleKeyReleased(KeyEvent event)
     Handles a key release in the viewer.
protected  voidhandleOpen(OpenEvent event)
     Handles an open event from the viewer.
protected  voidhandleSelectionChanged(SelectionChangedEvent event)
     Handles a selection changed event from the viewer.
public  voidinit(IViewSite site, IMemento memento)
    
protected  voidinitContentProvider(TreeViewer viewer)
     Sets the content provider for the viewer.
protected  voidinitContextMenu()
     Initializes and registers the context menu.
protected  voidinitDragAndDrop()
     Adds drag and drop support to the navigator.
protected  voidinitFilters(TreeViewer viewer)
     Adds the filters to the viewer.
protected  voidinitLabelProvider(TreeViewer viewer)
     Sets the label provider for the viewer.
protected  voidinitListeners(TreeViewer viewer)
     Adds the listeners to the viewer.
protected  voidinitResourceComparator()
     Initializes the comparator.
protected  voidinitResourceSorter()
     Initializes the sorter.
protected  voidinitWorkingSetFilter()
     Restores the working set filter from the persistence store.
public  booleanisLinkingEnabled()
     Returns whether the navigator selection automatically tracks the active editor.
protected  voidlinkToEditor(IStructuredSelection selection)
     Brings the corresponding editor to top if the selected resource is open.
protected  voidmakeActions()
     Creates the action group, which encapsulates all actions for the view.
protected  voidrestoreState(IMemento memento)
     Restores the state of the receiver to the state described in the specified memento.
public  voidsaveState(IMemento memento)
    
public  voidselectReveal(ISelection selection)
     Selects and reveals the specified elements.
protected  voidsetActionGroup(ResourceNavigatorActionGroup actionGroup)
     Sets the action group.
public  voidsetComparator(ResourceComparator comparator)
    
public  voidsetFiltersPreference(String[] patterns)
     Saves the filters defined as strings in patterns in the preference store.
public  voidsetFocus()
    
public  voidsetLabelDecorator(ILabelDecorator decorator)
     Note: For experimental use only.
public  voidsetLinkingEnabled(boolean enabled)
    
public  voidsetSorter(ResourceSorter sorter)
     Sets the resource sorter.
public  voidsetWorkingSet(IWorkingSet workingSet)
    
protected  voidupdateActionBars(IStructuredSelection selection)
     Updates the action bar actions.
protected  voidupdateStatusLine(IStructuredSelection selection)
     Updates the message shown in the status line.
public  voidupdateTitle()
     Updates the title text and title tool tip.

Field Detail
NAVIGATOR_VIEW_HELP_ID
final public static String NAVIGATOR_VIEW_HELP_ID(Code)




Constructor Detail
ResourceNavigator
public ResourceNavigator()(Code)
Constructs a new resource navigator view.




Method Detail
createFrameList
protected FrameList createFrameList()(Code)
Creates the frame source and frame list, and connects them.
since:
   2.0



createPartControl
public void createPartControl(Composite parent)(Code)



createViewer
protected TreeViewer createViewer(Composite parent)(Code)
Creates the viewer.
Parameters:
  parent - the parent composite
since:
   2.0



dispose
public void dispose()(Code)



editorActivated
protected void editorActivated(IEditorPart editor)(Code)
An editor has been activated. Sets the selection in this navigator to be the editor's input, if linking is enabled.
Parameters:
  editor - the active editor
since:
   2.0



fillContextMenu
protected void fillContextMenu(IMenuManager menu)(Code)
Called when the context menu is about to open. Delegates to the action group using the viewer's selection as the action context.
since:
   2.0



getActionGroup
protected ResourceNavigatorActionGroup getActionGroup()(Code)
Returns the action group. the action group



getAdapter
public Object getAdapter(Class adapter)(Code)



getComparator
public ResourceComparator getComparator()(Code)
Returns the comparator. the ResourceComparator
since:
   3.3



getFrameList
public FrameList getFrameList()(Code)



getFrameName
String getFrameName(Object element)(Code)
Returns the name for the given element. Used as the name for the current frame.



getFrameToolTipText
String getFrameToolTipText(Object element)(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.



getHelpContextId
protected String getHelpContextId()(Code)
Returns the help context id to use for this view.
since:
   2.0



getInitialInput
protected IAdaptable getInitialInput()(Code)
Returns the initial input for the viewer. Tries to convert the page input to a resource, either directly or via IAdaptable. If the resource is a container, it uses that. If the resource is a file, it uses its parent folder. If a resource could not be obtained, it uses the workspace root.
since:
   2.0



getPatternFilter
public ResourcePatternFilter getPatternFilter()(Code)
Returns the pattern filter for this view. the pattern filter
since:
   2.0



getPlugin
public AbstractUIPlugin getPlugin()(Code)
Returns the navigator's plugin. the UI plugin for this bundle



getShell
public Shell getShell()(Code)
Returns the shell to use for opening dialogs. Used in this class, and in the actions. the shell



getShowInSource
protected IShowInSource getShowInSource()(Code)
Returns the IShowInSource for this view.



getShowInTarget
protected IShowInTarget getShowInTarget()(Code)
Returns the IShowInTarget for this view.



getSorter
public ResourceSorter getSorter()(Code)
Return the sorter.
since:
   2.0ResourceNavigator.getComparator



getStatusLineMessage
protected String getStatusLineMessage(IStructuredSelection selection)(Code)
Returns the message to show in the status line.
Parameters:
  selection - the current selection the status line message
since:
   2.0



getTreeViewer
public TreeViewer getTreeViewer()(Code)
Returns the tree viewer which shows the resource hierarchy. the tree viewer
since:
   2.0



getViewer
public TreeViewer getViewer()(Code)
Returns the resource viewer which shows the resource hierarchy.
since:
   2.0



getWorkingSet
public IWorkingSet getWorkingSet()(Code)
Returns the working set for this view. the working set
since:
   2.0



handleDoubleClick
protected void handleDoubleClick(DoubleClickEvent event)(Code)
Handles a double-click event from the viewer. Expands or collapses a folder when double-clicked.
Parameters:
  event - the double-click event
since:
   2.0



handleKeyPressed
protected void handleKeyPressed(KeyEvent event)(Code)
Handles a key press event from the viewer. Delegates to the action group.
Parameters:
  event - the key event
since:
   2.0



handleKeyReleased
protected void handleKeyReleased(KeyEvent event)(Code)
Handles a key release in the viewer. Does nothing by default.
Parameters:
  event - the key event
since:
   2.0



handleOpen
protected void handleOpen(OpenEvent event)(Code)
Handles an open event from the viewer. Opens an editor on the selected file.
Parameters:
  event - the open event
since:
   2.0



handleSelectionChanged
protected void handleSelectionChanged(SelectionChangedEvent event)(Code)
Handles a selection changed event from the viewer. Updates the status line and the action bars, and links to editor (if option enabled).
Parameters:
  event - the selection event
since:
   2.0



init
public void init(IViewSite site, IMemento memento) throws PartInitException(Code)



initContentProvider
protected void initContentProvider(TreeViewer viewer)(Code)
Sets the content provider for the viewer.
Parameters:
  viewer - the viewer
since:
   2.0



initContextMenu
protected void initContextMenu()(Code)
Initializes and registers the context menu.
since:
   2.0



initDragAndDrop
protected void initDragAndDrop()(Code)
Adds drag and drop support to the navigator.
since:
   2.0



initFilters
protected void initFilters(TreeViewer viewer)(Code)
Adds the filters to the viewer.
Parameters:
  viewer - the viewer
since:
   2.0



initLabelProvider
protected void initLabelProvider(TreeViewer viewer)(Code)
Sets the label provider for the viewer.
Parameters:
  viewer - the viewer
since:
   2.0



initListeners
protected void initListeners(TreeViewer viewer)(Code)
Adds the listeners to the viewer.
Parameters:
  viewer - the viewer
since:
   2.0



initResourceComparator
protected void initResourceComparator()(Code)
Initializes the comparator.
since:
   3.3



initResourceSorter
protected void initResourceSorter()(Code)
Initializes the sorter. ResourceNavigator.initResourceComparator



initWorkingSetFilter
protected void initWorkingSetFilter()(Code)
Restores the working set filter from the persistence store.



isLinkingEnabled
public boolean isLinkingEnabled()(Code)
Returns whether the navigator selection automatically tracks the active editor. true if linking is enabled, falseif not
since:
   2.0 (this was protected in 2.0, but was made public in 2.1)



linkToEditor
protected void linkToEditor(IStructuredSelection selection)(Code)
Brings the corresponding editor to top if the selected resource is open.
since:
   2.0



makeActions
protected void makeActions()(Code)
Creates the action group, which encapsulates all actions for the view.



restoreState
protected void restoreState(IMemento memento)(Code)
Restores the state of the receiver to the state described in the specified memento.
Parameters:
  memento - the memento
since:
   2.0



saveState
public void saveState(IMemento memento)(Code)

See Also:   ViewPart.saveState



selectReveal
public void selectReveal(ISelection selection)(Code)
Selects and reveals the specified elements.



setActionGroup
protected void setActionGroup(ResourceNavigatorActionGroup actionGroup)(Code)
Sets the action group.
Parameters:
  actionGroup - the action group



setComparator
public void setComparator(ResourceComparator comparator)(Code)
Sets the resource comparator
Parameters:
  comparator - the resource comparator
since:
   3.3



setFiltersPreference
public void setFiltersPreference(String[] patterns)(Code)
Saves the filters defined as strings in patterns in the preference store.



setFocus
public void setFocus()(Code)

See Also:   IWorkbenchPart.setFocus



setLabelDecorator
public void setLabelDecorator(ILabelDecorator decorator)(Code)
Note: For experimental use only. Sets the decorator for the navigator.

As of 2.0, this method no longer has any effect.


Parameters:
  decorator - a label decorator or null for no decorations.



setLinkingEnabled
public void setLinkingEnabled(boolean enabled)(Code)

See Also:   IResourceNavigator.setLinkingEnabled(boolean)
since:
   2.1



setSorter
public void setSorter(ResourceSorter sorter)(Code)
Sets the resource sorter.
Parameters:
  sorter - the resource sorter
since:
   2.0ResourceNavigator.setComparator(ResourceComparator)



setWorkingSet
public void setWorkingSet(IWorkingSet workingSet)(Code)



updateActionBars
protected void updateActionBars(IStructuredSelection selection)(Code)
Updates the action bar actions.
Parameters:
  selection - the current selection
since:
   2.0



updateStatusLine
protected void updateStatusLine(IStructuredSelection selection)(Code)
Updates the message shown in the status line.
Parameters:
  selection - the current selection



updateTitle
public void updateTitle()(Code)
Updates the title text and title tool tip. Called whenever the input of the viewer changes. Called whenever the input of the viewer changes.
since:
   2.0



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