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


org.eclipse.ui.views.tasklist.TaskList

TaskList
public class TaskList extends ViewPart (Code)
Main class for the Task List view for displaying tasks and problem annotations on resources, and for opening an editor on the resource when the user commands.

This standard view has id "org.eclipse.ui.views.TaskList".

The workbench will automatically instantiate this class when a Task List view is needed for a workbench window. This class is not intended to be instantiated or subclassed by clients.


Inner Class :static class TaskListLabelProvider extends LabelProvider implements ITableLabelProvider
Inner Class :class SortByAction extends Action
Inner Class :class SortDirectionAction extends Action


Constructor Summary
public  TaskList()
     Creates a new task list view.

Method Summary
 voidaddDragSupport(Control control)
    
 voidcancelEditing()
    
 booleancheckResource(IResource resource)
     Returns whether we are interested in markers on the given resource.
 voidcreateColumns()
    
static  StringcreateMarkerReport(IMarker[] markers)
     Returns a string that summarizes the contents of the given markers.
public  voidcreatePartControl(Composite parent)
    
 voidcreateTable(Composite parent)
     Creates the table control.
public  voiddispose()
    
public  voidedit(IMarker marker)
     Activates the editor on the given marker.
 voidfillActionBars()
     Fills the local tool bar and menu manager with actions.
 voidfillContextMenu(IMenuManager menu)
     Contributes actions to the pop-up menu.
 voidfilterChanged()
     The filter settings have changed.
 voidfocusSelectionChanged(SelectionChangedEvent event)
    
public  ObjectgetAdapter(Class adapter)
    
 ClipboardgetClipboard()
     Returns a clipboard for cut/copy/paste actions.
 TasksFiltergetFilter()
     Returns the filter for the viewer.
static  AbstractUIPlugingetPlugin()
     Returns the UI plugin for the task list.
public  IResourcegetResource()
     Returns the resource for which the task list is showing tasks.
 intgetResourceDepth()
     Returns the resource depth which the task list is using to show tasks.
public  IResource[]getResources()
     Get the resources.
public  ISelectiongetSelection()
     API method which returns the current selection.
 StringgetStatusMessage(IStructuredSelection selection)
     Returns the message to display in the status line.
 TableViewergetTableViewer()
     When created, new task instance is cached in order to keep it at the top of the list until first edited.
 IWorkspacegetWorkspace()
     Returns the workspace.
 voidhandleKeyPressed(KeyEvent event)
     Handles key events in viewer.
public  voidinit(IViewSite site, IMemento memento)
    
 booleanisMarkerLimitExceeded()
    
 voidmakeActions()
     Makes actions used in the local tool bar and popup menu.
 voidmarkersChanged()
     The markers have changed.
 voidpartActivated(IWorkbenchPart part)
    
 voidpartClosed(IWorkbenchPart part)
    
 voidperformDragSetData(DragSourceEvent event)
     The user is attempting to drag marker data.
 voidrestoreState(IMemento memento)
    
public  voidsaveState(IMemento memento)
    
 voidselectionChanged(SelectionChangedEvent event)
     Handles marker selection change in the task list by updating availability of the actions in the local tool bar.
public  voidsetFocus()
    
 voidsetMarkerLimitExceeded(boolean markerLimitExceeded)
    
 voidsetProperty(IMarker marker, String property, Object value)
     Sets the property on a marker to the given value.
public  voidsetSelection(ISelection selection, boolean reveal)
     API method which sets the current selection of this viewer.
 booleanshouldShow(IMarker marker)
     Returns whether the given marker should be shown, given the current filter settings.
 booleanshowChildrenHierarchy()
    
 booleanshowOwnerProject()
    
 booleanshowSelections()
    
 voidtoggleInputSelection(boolean value)
     Processes state change of the 'showSelections' switch.
 voidtoggleLockInput(boolean value)
     If true, current input will be remembered and further selections will be ignored.
 voidupdateFocusResource(ISelection selection)
     Updates the focus resource, and refreshes if we're showing only tasks for the focus resource.
 voidupdatePasteEnablement()
    
 voidupdateSortingState()
     Method updateSortingState.
 voidupdateStatusMessage()
     Updates that message displayed in the status line.
 voidupdateStatusMessage(IStructuredSelection selection)
     Updates that message displayed in the status line.
 voidupdateTitle()
     Updates the title of the view.
static  voidwriteMarker(StringBuffer buf, IMarker marker)
     Writes a string representation of the given marker to the buffer.


Constructor Detail
TaskList
public TaskList()(Code)
Creates a new task list view.




Method Detail
addDragSupport
void addDragSupport(Control control)(Code)

Parameters:
  control -



cancelEditing
void cancelEditing()(Code)



checkResource
boolean checkResource(IResource resource)(Code)
Returns whether we are interested in markers on the given resource.



createColumns
void createColumns()(Code)



createMarkerReport
static String createMarkerReport(IMarker[] markers)(Code)
Returns a string that summarizes the contents of the given markers.



createPartControl
public void createPartControl(Composite parent)(Code)



createTable
void createTable(Composite parent)(Code)
Creates the table control.



dispose
public void dispose()(Code)



edit
public void edit(IMarker marker)(Code)
Activates the editor on the given marker.
Parameters:
  marker - the marker to edit



fillActionBars
void fillActionBars()(Code)
Fills the local tool bar and menu manager with actions.



fillContextMenu
void fillContextMenu(IMenuManager menu)(Code)
Contributes actions to the pop-up menu.



filterChanged
void filterChanged()(Code)
The filter settings have changed. Refreshes the viewer and title bar.



focusSelectionChanged
void focusSelectionChanged(SelectionChangedEvent event)(Code)



getAdapter
public Object getAdapter(Class adapter)(Code)



getClipboard
Clipboard getClipboard()(Code)
Returns a clipboard for cut/copy/paste actions.

May only be called after this part's viewer has been created. The clipboard is disposed when this part is disposed.

a clipboard
since:
   2.0



getFilter
TasksFilter getFilter()(Code)
Returns the filter for the viewer.



getPlugin
static AbstractUIPlugin getPlugin()(Code)
Returns the UI plugin for the task list.



getResource
public IResource getResource()(Code)
Returns the resource for which the task list is showing tasks. the resource, possibly the workspace root



getResourceDepth
int getResourceDepth()(Code)
Returns the resource depth which the task list is using to show tasks. an IResource.DEPTH_* constant



getResources
public IResource[] getResources()(Code)
Get the resources. the resources



getSelection
public ISelection getSelection()(Code)
API method which returns the current selection. the current selection (element type: IMarker)



getStatusMessage
String getStatusMessage(IStructuredSelection selection)(Code)
Returns the message to display in the status line.



getTableViewer
TableViewer getTableViewer()(Code)
When created, new task instance is cached in order to keep it at the top of the list until first edited. This method returns it, or null if there is no task instance pending for first editing.



getWorkspace
IWorkspace getWorkspace()(Code)
Returns the workspace.



handleKeyPressed
void handleKeyPressed(KeyEvent event)(Code)
Handles key events in viewer.



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



isMarkerLimitExceeded
boolean isMarkerLimitExceeded()(Code)



makeActions
void makeActions()(Code)
Makes actions used in the local tool bar and popup menu.



markersChanged
void markersChanged()(Code)
The markers have changed. Update the status line and title bar.



partActivated
void partActivated(IWorkbenchPart part)(Code)



partClosed
void partClosed(IWorkbenchPart part)(Code)



performDragSetData
void performDragSetData(DragSourceEvent event)(Code)
The user is attempting to drag marker data. Add the appropriate data to the event depending on the transfer type.



restoreState
void restoreState(IMemento memento)(Code)



saveState
public void saveState(IMemento memento)(Code)



selectionChanged
void selectionChanged(SelectionChangedEvent event)(Code)
Handles marker selection change in the task list by updating availability of the actions in the local tool bar.



setFocus
public void setFocus()(Code)



setMarkerLimitExceeded
void setMarkerLimitExceeded(boolean markerLimitExceeded)(Code)



setProperty
void setProperty(IMarker marker, String property, Object value)(Code)
Sets the property on a marker to the given value.



setSelection
public void setSelection(ISelection selection, boolean reveal)(Code)
API method which sets the current selection of this viewer.
Parameters:
  selection - a structured selection of IMarker objects
Parameters:
  reveal - true to reveal the selection, otherwise



shouldShow
boolean shouldShow(IMarker marker)(Code)
Returns whether the given marker should be shown, given the current filter settings.



showChildrenHierarchy
boolean showChildrenHierarchy()(Code)



showOwnerProject
boolean showOwnerProject()(Code)



showSelections
boolean showSelections()(Code)



toggleInputSelection
void toggleInputSelection(boolean value)(Code)
Processes state change of the 'showSelections' switch. If true, it will resync with the saved input element. Otherwise, it will reconfigure to show all the problems/tasks in the workbench.
Parameters:
  value - the value



toggleLockInput
void toggleLockInput(boolean value)(Code)
If true, current input will be remembered and further selections will be ignored.
Parameters:
  value - the value



updateFocusResource
void updateFocusResource(ISelection selection)(Code)
Updates the focus resource, and refreshes if we're showing only tasks for the focus resource.



updatePasteEnablement
void updatePasteEnablement()(Code)
Updates the enablement of the paste action



updateSortingState
void updateSortingState()(Code)
Method updateSortingState.



updateStatusMessage
void updateStatusMessage()(Code)
Updates that message displayed in the status line.



updateStatusMessage
void updateStatusMessage(IStructuredSelection selection)(Code)
Updates that message displayed in the status line.



updateTitle
void updateTitle()(Code)
Updates the title of the view. Should be called when filters change.



writeMarker
static void writeMarker(StringBuffer buf, IMarker marker)(Code)
Writes a string representation of the given marker to the buffer.



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