|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topcased.core.refactoring.RenameModelFileInfo
public class RenameModelFileInfo
An info object that holds the information that is passed from the user to the refactoring. Creation 10 janv. 07
| Field Summary | |
|---|---|
static int |
ALL_PROJECTS
Indicate that the refactoring should also update references into other files in all the projects of the workspace |
static int |
NONE
Indicate that the refactoring should update any references into other files |
static int |
ONLY_CURRENT_PROJECT
Indicate that the refactoring should also update references into other files of the same project |
| Constructor Summary | |
|---|---|
RenameModelFileInfo()
|
|
| Method Summary | |
|---|---|
java.util.List<org.eclipse.core.resources.IFile> |
getFilesToRename()
Get the list of File (the selected file and optionally some participants) that should be renamed |
java.util.List<org.eclipse.core.resources.IFile> |
getInvolvedFiles()
Get the list of files that have references to the files that will be renamed. |
java.lang.String |
getNewName()
Get the new name of the file(s) |
java.lang.String |
getOldName()
Get the intial name of the file(s) that will be renamed |
int |
getReferencesTypeUpdate()
Get the type of range/deep the rename refactoring should use. |
ResourceSet |
getResourceSet()
Get the ResourceSet used to load the files before the renaming |
void |
setFilesToRename(java.util.List<org.eclipse.core.resources.IFile> filesToRename)
Set the list of files that should be renamed. |
void |
setInvolvedFiles(java.util.List<org.eclipse.core.resources.IFile> involvedFiles)
Set the list of files that have references to the files that will be renamed. |
void |
setNewName(java.lang.String newName)
Set the new name of the file(s) to rename |
void |
setOldName(java.lang.String oldName)
Set the initial name of the file(s) that will be renamed |
void |
setReferencesTypeUpdate(int referencesTypeUpdate)
Store the type of range/deep the rename refactoring should use. |
void |
setResourceSet(ResourceSet resourceSet)
Set the ResourceSet to use in the rename refactoring |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NONE
public static final int ONLY_CURRENT_PROJECT
public static final int ALL_PROJECTS
| Constructor Detail |
|---|
public RenameModelFileInfo()
| Method Detail |
|---|
public java.lang.String getNewName()
public void setNewName(java.lang.String newName)
newName - String the new file(s) namepublic java.lang.String getOldName()
public void setOldName(java.lang.String oldName)
oldName - String the old file(s) namepublic java.util.List<org.eclipse.core.resources.IFile> getFilesToRename()
public void setFilesToRename(java.util.List<org.eclipse.core.resources.IFile> filesToRename)
filesToRename - the list of file that should be renamedpublic java.util.List<org.eclipse.core.resources.IFile> getInvolvedFiles()
public void setInvolvedFiles(java.util.List<org.eclipse.core.resources.IFile> involvedFiles)
involvedFiles - a list of files that have at least one reference to the file(s) that will be renamedpublic ResourceSet getResourceSet()
public void setResourceSet(ResourceSet resourceSet)
resourceSet - the resourceSet used in the rename refactoringpublic int getReferencesTypeUpdate()
NONE,
ONLY_CURRENT_PROJECT,
ALL_PROJECTSpublic void setReferencesTypeUpdate(int referencesTypeUpdate)
referencesTypeUpdate - the range/deep the rename refactoring should use.NONE,
ONLY_CURRENT_PROJECT,
ALL_PROJECTS
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.