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


java.lang.Object
   org.eclipse.ui.ide.undo.WorkspaceUndoUtil

WorkspaceUndoUtil
public class WorkspaceUndoUtil (Code)
WorkspaceUndoUtil defines common utility methods and constants used by clients who create undoable workspace operations.
since:
   3.3




Method Summary
static  ResourceDescription[]copy(IResource[] resources, IPath destination, List resourcesAtDestination, IProgressMonitor monitor, IAdaptable uiInfo, boolean pathIncludesName)
     Copies the resources to the given destination.
static  ResourceDescription[]delete(IResource[] resourcesToDelete, IProgressMonitor monitor, IAdaptable uiInfo, boolean deleteContent)
     Delete all of the specified resources, returning resource descriptions that can be used to restore them.
Parameters:
  resourcesToDelete - an array of resources to be deleted
Parameters:
  monitor - the progress monitor to use to show the operation's progress
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary.
static  ResourceDescriptiondelete(IResource resourceToDelete, IProgressMonitor monitor, IAdaptable uiInfo, boolean forceOutOfSyncDelete, boolean deleteContent)
     Delete the specified resources, returning a resource description that can be used to restore it.
Parameters:
  resourceToDelete - the resource to be deleted
Parameters:
  monitor - the progress monitor to use to show the operation's progress
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary.
public static  IUndoContextgetBookmarksUndoContext()
     Return the undo context that should be used for operations involving bookmarks.
public static  ShellgetShell(IAdaptable uiInfo)
     Return the shell described by the specified adaptable, or the active shell if no shell has been specified in the adaptable.
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary.
public static  IUndoContextgetTasksUndoContext()
     Return the undo context that should be used for operations involving tasks.
public static  IAdaptablegetUIInfoAdapter(Shell shell)
     Make an IAdaptable that adapts to the specified shell, suitable for passing for passing to any org.eclipse.core.commands.operations.IUndoableOperation or org.eclipse.core.commands.operations.IOperationHistory method that requires an org.eclipse.core.runtime.IAdaptable uiInfo parameter.
Parameters:
  shell - the shell that should be returned by the IAdaptable when askedto adapt a shell.
public static  IUndoContextgetWorkspaceUndoContext()
    
static  ResourceDescription[]move(IResource[] resources, IPath destination, List resourcesAtDestination, List reverseDestinations, IProgressMonitor monitor, IAdaptable uiInfo, boolean pathIncludesName)
     Moves the resources to the given destination.
static  IResource[]recreate(ResourceDescription[] resourcesToRecreate, IProgressMonitor monitor, IAdaptable uiInfo)
     Recreate the resources from the specified resource descriptions.
Parameters:
  resourcesToRecreate - the ResourceDescriptions describing resources to be recreated
Parameters:
  monitor - the progress monitor used to show progress
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary.



Method Detail
copy
static ResourceDescription[] copy(IResource[] resources, IPath destination, List resourcesAtDestination, IProgressMonitor monitor, IAdaptable uiInfo, boolean pathIncludesName) throws CoreException(Code)
Copies the resources to the given destination. This method can be called recursively to merge folders during folder copy.
Parameters:
  resources - the resources to be copied
Parameters:
  destination - the destination path for the resources, relative to theworkspace
Parameters:
  resourcesAtDestination - A list used to record the new copies.
Parameters:
  monitor - the progress monitor used to show progress
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary. When this parameter is notnull, it contains an adapter for theorg.eclipse.swt.widgets.Shell.class
Parameters:
  pathIncludesName - a boolean that indicates whether the specified path includesthe resource's name at the destination. If this value istrue, the destination will contain the desiredname of the resource (usually only desired when only oneresource is being copied). If this value is false,each resource's name will be appended to the destination. an array of ResourceDescriptions describing any resources thatwere overwritten by the copy operation
throws:
  CoreException - propagates any CoreExceptions thrown from the resources API



delete
static ResourceDescription[] delete(IResource[] resourcesToDelete, IProgressMonitor monitor, IAdaptable uiInfo, boolean deleteContent) throws CoreException(Code)
Delete all of the specified resources, returning resource descriptions that can be used to restore them.
Parameters:
  resourcesToDelete - an array of resources to be deleted
Parameters:
  monitor - the progress monitor to use to show the operation's progress
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary. When this parameter is notnull, it contains an adapter for theorg.eclipse.swt.widgets.Shell.class
Parameters:
  deleteContent - a boolean indicating whether project content should be deletedwhen a project resource is to be deleted an array of ResourceDescriptions that can be used to restore thedeleted resources.
throws:
  CoreException - propagates any CoreExceptions thrown from the resources API



delete
static ResourceDescription delete(IResource resourceToDelete, IProgressMonitor monitor, IAdaptable uiInfo, boolean forceOutOfSyncDelete, boolean deleteContent) throws CoreException(Code)
Delete the specified resources, returning a resource description that can be used to restore it.
Parameters:
  resourceToDelete - the resource to be deleted
Parameters:
  monitor - the progress monitor to use to show the operation's progress
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary. When this parameter is notnull, it contains an adapter for theorg.eclipse.swt.widgets.Shell.class
Parameters:
  forceOutOfSyncDelete - a boolean indicating whether a resource should be deleted evenif it is out of sync with the file system
Parameters:
  deleteContent - a boolean indicating whether project content should be deletedwhen a project resource is to be deleted a ResourceDescription that can be used to restore the deletedresource.
throws:
  CoreException - propagates any CoreExceptions thrown from the resources API



getBookmarksUndoContext
public static IUndoContext getBookmarksUndoContext()(Code)
Return the undo context that should be used for operations involving bookmarks. the bookmarks undo context



getShell
public static Shell getShell(IAdaptable uiInfo)(Code)
Return the shell described by the specified adaptable, or the active shell if no shell has been specified in the adaptable.
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary. When this parameter is notnull, it contains an adapter for theorg.eclipse.swt.widgets.Shell.class the Shell that can be used to show information



getTasksUndoContext
public static IUndoContext getTasksUndoContext()(Code)
Return the undo context that should be used for operations involving tasks. the tasks undo context



getUIInfoAdapter
public static IAdaptable getUIInfoAdapter(Shell shell)(Code)
Make an IAdaptable that adapts to the specified shell, suitable for passing for passing to any org.eclipse.core.commands.operations.IUndoableOperation or org.eclipse.core.commands.operations.IOperationHistory method that requires an org.eclipse.core.runtime.IAdaptable uiInfo parameter.
Parameters:
  shell - the shell that should be returned by the IAdaptable when askedto adapt a shell. If this parameter is null,the returned shell will also be null. an IAdaptable that will return the specified shell.



getWorkspaceUndoContext
public static IUndoContext getWorkspaceUndoContext()(Code)
Return the undo context that should be used for workspace-wide operations the undo context suitable for workspace-level operations.



move
static ResourceDescription[] move(IResource[] resources, IPath destination, List resourcesAtDestination, List reverseDestinations, IProgressMonitor monitor, IAdaptable uiInfo, boolean pathIncludesName) throws CoreException(Code)
Moves the resources to the given destination. This method can be called recursively to merge folders during folder move.
Parameters:
  resources - the resources to be moved
Parameters:
  destination - the destination path for the resources, relative to theworkspace
Parameters:
  resourcesAtDestination - A list used to record each moved resource.
Parameters:
  reverseDestinations - A list used to record each moved resource's original location
Parameters:
  monitor - the progress monitor used to show progress
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary. When this parameter is notnull, it contains an adapter for theorg.eclipse.swt.widgets.Shell.class
Parameters:
  pathIncludesName - a boolean that indicates whether the specified path includesthe resource's name at the destination. If this value istrue, the destination will contain the desiredname of the resource (usually only desired when only oneresource is being moved). If this value is false,each resource's name will be appended to the destination. an array of ResourceDescriptions describing any resources thatwere overwritten by the move operation
throws:
  CoreException - propagates any CoreExceptions thrown from the resources API



recreate
static IResource[] recreate(ResourceDescription[] resourcesToRecreate, IProgressMonitor monitor, IAdaptable uiInfo) throws CoreException(Code)
Recreate the resources from the specified resource descriptions.
Parameters:
  resourcesToRecreate - the ResourceDescriptions describing resources to be recreated
Parameters:
  monitor - the progress monitor used to show progress
Parameters:
  uiInfo - the IAdaptable (or null) provided by thecaller in order to supply UI information for prompting theuser if necessary. When this parameter is notnull, it contains an adapter for theorg.eclipse.swt.widgets.Shell.class an array of resources that were created
throws:
  CoreException - propagates any CoreExceptions thrown from the resources API



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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