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


org.eclipse.ui.actions.SelectionListenerAction
   org.eclipse.ui.actions.CopyProjectAction

All known Subclasses:   org.eclipse.ui.actions.MoveProjectAction,
CopyProjectAction
public class CopyProjectAction extends SelectionListenerAction (Code)
The CopyProjectAction is the action designed to copy projects specifically as they have different semantics from other resources. Note that this action assumes that a single project is selected and being manipulated. This should be disabled for multi select or no selection.


Field Summary
final public static  StringID
     The id of this action.
protected  IStatuserrorStatus
     Status containing the errors detected when running the operation or null if no errors detected.
protected  Shellshell
     The shell in which to show any dialogs.

Constructor Summary
public  CopyProjectAction(Shell shell)
     Creates a new project copy action with the default text.
 CopyProjectAction(Shell shell, String name)
     Creates a new project copy action with the given text.

Method Summary
protected  IProjectDescriptioncreateDescription(IProject project, String projectName, IPath rootLocation)
     Create a new IProjectDescription for the copy using the name and path selected from the dialog.
 voiddisplayError(String message)
     Opens an error dialog to display the given message.
protected  StringgetErrorsTitle()
     Return the title of the errors dialog.
public  String[]getModelProviderIds()
     Returns the model provider ids that are known to the client that instantiated this operation.
protected  org.eclipse.ui.plugin.AbstractUIPlugingetPlugin()
    
 booleanperformCopy(IProject project, String projectName, URI newLocation)
     Copies the project to the new values.
protected  Object[]queryDestinationParameters(IProject project)
     Query for a new project name and destination using the parameters in the existing project.
final  voidrecordError(CoreException error)
     Records the core exception to be displayed to the user once the action is finished.
public  voidrun()
     Implementation of method defined on IAction.
public  voidsetModelProviderIds(String[] modelProviderIds)
     Sets the model provider ids that are known to the client that instantiated this operation.
protected  booleanupdateSelection(IStructuredSelection selection)
     The CopyResourceAction implementation of this SelectionListenerAction method enables this action only if there is a single selection which is a project.

Field Detail
ID
final public static String ID(Code)
The id of this action.



errorStatus
protected IStatus errorStatus(Code)
Status containing the errors detected when running the operation or null if no errors detected.



shell
protected Shell shell(Code)
The shell in which to show any dialogs.




Constructor Detail
CopyProjectAction
public CopyProjectAction(Shell shell)(Code)
Creates a new project copy action with the default text.
Parameters:
  shell - the shell for any dialogs



CopyProjectAction
CopyProjectAction(Shell shell, String name)(Code)
Creates a new project copy action with the given text.
Parameters:
  shell - the shell for any dialogs
Parameters:
  name - the string used as the text for the action, ornull if there is no text




Method Detail
createDescription
protected IProjectDescription createDescription(IProject project, String projectName, IPath rootLocation) throws CoreException(Code)
Create a new IProjectDescription for the copy using the name and path selected from the dialog. IProjectDescription
Parameters:
  project - the source project
Parameters:
  projectName - the name for the new project
Parameters:
  rootLocation - the path the new project will be stored under.



displayError
void displayError(String message)(Code)
Opens an error dialog to display the given message.

Note that this method must be called from UI thread.


Parameters:
  message - the message



getErrorsTitle
protected String getErrorsTitle()(Code)
Return the title of the errors dialog. java.lang.String



getModelProviderIds
public String[] getModelProviderIds()(Code)
Returns the model provider ids that are known to the client that instantiated this operation. the model provider ids that are known to the client thatinstantiated this operation.
since:
   3.2



getPlugin
protected org.eclipse.ui.plugin.AbstractUIPlugin getPlugin()(Code)
Get the plugin used by a copy action AbstractUIPlugin



performCopy
boolean performCopy(IProject project, String projectName, URI newLocation)(Code)
Copies the project to the new values.
Parameters:
  project - the project to copy
Parameters:
  projectName - the name of the copy
Parameters:
  newLocation - URI true if the copy operation completed, andfalse if it was abandoned part way



queryDestinationParameters
protected Object[] queryDestinationParameters(IProject project)(Code)
Query for a new project name and destination using the parameters in the existing project. Object [] or null if the selection is cancelled
Parameters:
  project - the project we are going to copy.



recordError
final void recordError(CoreException error)(Code)
Records the core exception to be displayed to the user once the action is finished.
Parameters:
  error - a CoreException



run
public void run()(Code)
Implementation of method defined on IAction.



setModelProviderIds
public void setModelProviderIds(String[] modelProviderIds)(Code)
Sets the model provider ids that are known to the client that instantiated this operation. Any potential side effects reported by these models during validation will be ignored.
Parameters:
  modelProviderIds - the model providers known to the client who is using thisoperation.
since:
   3.2



updateSelection
protected boolean updateSelection(IStructuredSelection selection)(Code)
The CopyResourceAction implementation of this SelectionListenerAction method enables this action only if there is a single selection which is a project.



Methods inherited from org.eclipse.ui.actions.SelectionListenerAction
protected void clearCache()(Code)(Java Doc)
protected List getSelectedNonResources()(Code)(Java Doc)
protected List getSelectedResources()(Code)(Java Doc)
protected boolean resourceIsType(IResource resource, int resourceMask)(Code)(Java Doc)
protected boolean selectionIsOfType(int resourceMask)(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.