Java Doc for RenameTypeProcessor.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » corext » refactoring » rename » 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 » jdt » org.eclipse.jdt.internal.corext.refactoring.rename 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameProcessor
   org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor

RenameTypeProcessor
public class RenameTypeProcessor extends JavaRenameProcessor implements ITextUpdating,IReferenceUpdating,IQualifiedNameUpdating,ISimilarDeclarationUpdating,IResourceMapper,IJavaElementMapper(Code)

Inner Class :final public static class ParticipantDescriptorFilter implements IParticipantDescriptorFilter


Constructor Summary
public  RenameTypeProcessor(IType type)
     Creates a new rename type processor.

Method Summary
public  booleancanEnableQualifiedNameUpdating()
    
public  booleancanEnableSimilarDeclarationUpdating()
    
public  booleancanEnableTextUpdating()
    
public  booleancanEnableUpdateReferences()
    
public  RefactoringStatuscheckInitialConditions(IProgressMonitor pm)
    
public  RefactoringStatuscheckNewElementName(String newName)
    
protected  RenameModificationscomputeRenameModifications()
    
public  ChangecreateChange(IProgressMonitor monitor)
    
protected  IParticipantDescriptorFiltercreateParticipantDescriptorFilter()
    
protected  RenameArgumentscreateRenameArguments()
    
protected  RefactoringStatusdoCheckFinalConditions(IProgressMonitor pm, CheckConditionsContext context)
    
protected  String[]getAffectedProjectNatures()
    
protected  IFile[]getChangedFiles()
    
public  StringgetCurrentElementName()
    
public  StringgetCurrentElementQualifier()
    
public  Object[]getElements()
    
public  StringgetFilePatterns()
    
public  StringgetIdentifier()
    
public  intgetMatchStrategy()
    
public  ObjectgetNewElement()
    
public  StringgetProcessorName()
    
public  IJavaElementgetRefactoredJavaElement(IJavaElement element)
    
public  IResourcegetRefactoredResource(IResource element)
    
public  intgetSaveMode()
    
public  IJavaElement[]getSimilarElements()
     the similar elements of the type, i.e.
public  MapgetSimilarElementsToNewNames()
     the map of similarly named elements (IJavaElement -> String with new name)This map is live.
public  MapgetSimilarElementsToSelection()
     the map of similarly named elements (IJavaElement -> Boolean if selected) Thismap is live.
public  ITypegetType()
    
public  booleangetUpdateQualifiedNames()
    
public  booleangetUpdateReferences()
    
public  booleangetUpdateSimilarDeclarations()
    
public  booleangetUpdateTextualMatches()
    
public  booleanhasSimilarElementsToRename()
    
public  RefactoringStatusinitialize(RefactoringArguments arguments)
    
public  RefactoringStatusinitializeReferences(IProgressMonitor monitor)
     Initializes the references to the type and the similarly named elements.
public  booleanisApplicable()
    
public  ChangepostCreateChange(Change[] participantChanges, IProgressMonitor pm)
    
public  voidresetSelectedSimilarElements()
     Resets the element maps back to the original status.
public  voidsetFilePatterns(String patterns)
    
public  voidsetMatchStrategy(int selectedStrategy)
    
public  voidsetUpdateQualifiedNames(boolean update)
    
public  voidsetUpdateReferences(boolean update)
    
public  voidsetUpdateSimilarDeclarations(boolean update)
    
public  voidsetUpdateTextualMatches(boolean update)
    


Constructor Detail
RenameTypeProcessor
public RenameTypeProcessor(IType type)(Code)
Creates a new rename type processor.
Parameters:
  type - the type, or null if invoked by scripting




Method Detail
canEnableQualifiedNameUpdating
public boolean canEnableQualifiedNameUpdating()(Code)



canEnableSimilarDeclarationUpdating
public boolean canEnableSimilarDeclarationUpdating()(Code)



canEnableTextUpdating
public boolean canEnableTextUpdating()(Code)



canEnableUpdateReferences
public boolean canEnableUpdateReferences()(Code)



checkInitialConditions
public RefactoringStatus checkInitialConditions(IProgressMonitor pm) throws CoreException(Code)



checkNewElementName
public RefactoringStatus checkNewElementName(String newName)(Code)



computeRenameModifications
protected RenameModifications computeRenameModifications()(Code)



createChange
public Change createChange(IProgressMonitor monitor) throws CoreException(Code)



createParticipantDescriptorFilter
protected IParticipantDescriptorFilter createParticipantDescriptorFilter()(Code)



createRenameArguments
protected RenameArguments createRenameArguments()(Code)



doCheckFinalConditions
protected RefactoringStatus doCheckFinalConditions(IProgressMonitor pm, CheckConditionsContext context) throws CoreException(Code)



getAffectedProjectNatures
protected String[] getAffectedProjectNatures() throws CoreException(Code)



getChangedFiles
protected IFile[] getChangedFiles() throws CoreException(Code)



getCurrentElementName
public String getCurrentElementName()(Code)



getCurrentElementQualifier
public String getCurrentElementQualifier()(Code)



getElements
public Object[] getElements()(Code)



getFilePatterns
public String getFilePatterns()(Code)



getIdentifier
public String getIdentifier()(Code)



getMatchStrategy
public int getMatchStrategy()(Code)



getNewElement
public Object getNewElement()(Code)



getProcessorName
public String getProcessorName()(Code)



getRefactoredJavaElement
public IJavaElement getRefactoredJavaElement(IJavaElement element)(Code)



getRefactoredResource
public IResource getRefactoredResource(IResource element)(Code)



getSaveMode
public int getSaveMode()(Code)



getSimilarElements
public IJavaElement[] getSimilarElements()(Code)
the similar elements of the type, i.e. IFields, IMethods, andILocalVariables. Returns null iff similar declaration updatingis not requested.



getSimilarElementsToNewNames
public Map getSimilarElementsToNewNames()(Code)
the map of similarly named elements (IJavaElement -> String with new name)This map is live. Callers may change the new names of the elements; theymay not change the key set.



getSimilarElementsToSelection
public Map getSimilarElementsToSelection()(Code)
the map of similarly named elements (IJavaElement -> Boolean if selected) Thismap is live. Callers may change the selection status of the elements;they may not change the key set.



getType
public IType getType()(Code)



getUpdateQualifiedNames
public boolean getUpdateQualifiedNames()(Code)



getUpdateReferences
public boolean getUpdateReferences()(Code)



getUpdateSimilarDeclarations
public boolean getUpdateSimilarDeclarations()(Code)



getUpdateTextualMatches
public boolean getUpdateTextualMatches()(Code)



hasSimilarElementsToRename
public boolean hasSimilarElementsToRename()(Code)
true iff the "update similarly named elements" flag is set AND thesearch yielded some elements to be renamed.



initialize
public RefactoringStatus initialize(RefactoringArguments arguments)(Code)



initializeReferences
public RefactoringStatus initializeReferences(IProgressMonitor monitor) throws JavaModelException, OperationCanceledException(Code)
Initializes the references to the type and the similarly named elements. This method creates both the fReferences and the fPreloadedElementToName fields. May be called from the UI.
Parameters:
  monitor - initialization status
throws:
  JavaModelException - some fundamental error with the underlying model
throws:
  OperationCanceledException - if user canceled the task



isApplicable
public boolean isApplicable() throws CoreException(Code)



postCreateChange
public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException(Code)



resetSelectedSimilarElements
public void resetSelectedSimilarElements()(Code)
Resets the element maps back to the original status. This affects the maps returned in RenameTypeProcessor.getSimilarElementsToNewNames() and RenameTypeProcessor.getSimilarElementsToSelection() . All new names are reset to the calculated ones and every element gets selected.



setFilePatterns
public void setFilePatterns(String patterns)(Code)



setMatchStrategy
public void setMatchStrategy(int selectedStrategy)(Code)



setUpdateQualifiedNames
public void setUpdateQualifiedNames(boolean update)(Code)



setUpdateReferences
public void setUpdateReferences(boolean update)(Code)



setUpdateSimilarDeclarations
public void setUpdateSimilarDeclarations(boolean update)(Code)



setUpdateTextualMatches
public void setUpdateTextualMatches(boolean update)(Code)



Methods inherited from org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameProcessor
final public boolean canEnableComment()(Code)(Java Doc)
final public RefactoringStatus checkFinalConditions(IProgressMonitor pm, CheckConditionsContext context) throws CoreException, OperationCanceledException(Code)(Java Doc)
abstract protected RenameModifications computeRenameModifications() throws CoreException(Code)(Java Doc)
abstract protected RefactoringStatus doCheckFinalConditions(IProgressMonitor pm, CheckConditionsContext context) throws CoreException, OperationCanceledException(Code)(Java Doc)
abstract protected String[] getAffectedProjectNatures() throws CoreException(Code)(Java Doc)
abstract protected IFile[] getChangedFiles() throws CoreException(Code)(Java Doc)
final public String getComment()(Code)(Java Doc)
public String getNewElementName()(Code)(Java Doc)
abstract public int getSaveMode()(Code)(Java Doc)
final public RefactoringParticipant[] loadParticipants(RefactoringStatus status, SharableParticipants shared) throws CoreException(Code)(Java Doc)
final public void setComment(String comment)(Code)(Java Doc)
public void setNewElementName(String newName)(Code)(Java Doc)

w___w___w___.j_a_v___a2s___.__c__om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.