|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.refactor.RefactorSession
public class RefactorSession
This "Singleton" class provides an interface to an org.prorefactor.refactor session.
Method Summary | |
---|---|
void |
disableParserListing()
|
void |
enableParserListing()
|
ApplicationSettings |
getAppSettings()
|
static java.lang.String |
getAppSettingsFilename()
|
static java.lang.String |
getContextDirName()
The directory that the "prorefactor" config and data files directory is to be found in. |
IDE |
getIDE()
|
java.lang.String |
getIndentString()
Get a string for the indent for the current project. |
static RefactorSession |
getInstance()
Get the Singleton instance. |
static java.lang.String |
getListingFileName()
Get the listing file name, makes sure the directory exists. |
static java.lang.String |
getMessagesFileName()
|
ProgressProjectSettings |
getProgressSettings()
|
static java.lang.String |
getProgressSettingsFilename(java.lang.String projectName)
|
java.lang.String |
getProjectName()
Returns the name of the currently loaded project |
static java.lang.String |
getProjectsDirName()
Returns instance context directory plus "prorefactor/projects/". |
ProparseProjectSettings |
getProparseSettings()
Returns the Settings for the currently loaded project |
static java.lang.String |
getProparseSettingsFilename(java.lang.String projectName)
|
static java.lang.String |
getProrefactorDirName()
Returns the instance context directory plus "prorefactor/" |
java.lang.String |
getProRefactorProjectDir()
|
java.lang.String |
getProRefactorProjectDir(java.lang.String inputProjectName)
|
java.io.File |
getRollbackDir()
Get the rollback directory, creates it if it doesn't exist. |
static java.lang.String |
getRollbackDirName()
Get the name of the rollback directory, creates it if it doesn't exist. |
java.io.File |
getTempDir()
Get the temp directory, creates it if it doesn't exist. |
static void |
invalidateCurrentSettings()
Make sure that Proparse's configuration gets reloaded |
void |
loadProject(java.lang.String nameToLoad)
Only loads the project's settings if it's not already the current project |
void |
loadProjectForced(java.lang.String nameToLoad)
Loads the project, whether it's already loaded or not |
void |
loadProjectForFile(java.io.File file)
If you don't know what project a file is in, then use this. |
void |
setContextDirName(java.lang.String contextDirName)
The directory that the "prorefactor" config and data files directory is to be found in. |
RefactorSession |
setIDE(IDE ide)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void disableParserListing()
public void enableParserListing()
public ApplicationSettings getAppSettings()
public static java.lang.String getAppSettingsFilename()
public static java.lang.String getContextDirName()
public IDE getIDE()
public java.lang.String getIndentString()
public static RefactorSession getInstance()
public static java.lang.String getListingFileName()
public static java.lang.String getMessagesFileName()
public static java.lang.String getProjectsDirName()
public ProgressProjectSettings getProgressSettings()
public static java.lang.String getProgressSettingsFilename(java.lang.String projectName)
public java.lang.String getProjectName()
public ProparseProjectSettings getProparseSettings()
public static java.lang.String getProparseSettingsFilename(java.lang.String projectName)
public static java.lang.String getProrefactorDirName()
public java.lang.String getProRefactorProjectDir()
public java.lang.String getProRefactorProjectDir(java.lang.String inputProjectName)
public java.io.File getRollbackDir()
public static java.lang.String getRollbackDirName()
public java.io.File getTempDir()
public static void invalidateCurrentSettings()
public void loadProject(java.lang.String nameToLoad) throws java.lang.Exception
java.lang.Exception
public void loadProjectForced(java.lang.String nameToLoad) throws java.lang.Exception
java.lang.Exception
public void loadProjectForFile(java.io.File file) throws java.lang.Exception
java.lang.Exception
public void setContextDirName(java.lang.String contextDirName)
public RefactorSession setIDE(IDE ide)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |