org.prorefactor.refactor
Class IDEDefault

java.lang.Object
  extended by org.prorefactor.refactor.IDEDefault
All Implemented Interfaces:
IDE

public class IDEDefault
extends java.lang.Object
implements IDE


Constructor Summary
IDEDefault(RefactorSession refpack)
           
 
Method Summary
 java.lang.String[] getProjectRelativePath(java.io.File file)
          Find the project name and the project relative path for a File object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDEDefault

public IDEDefault(RefactorSession refpack)
Method Detail

getProjectRelativePath

public java.lang.String[] getProjectRelativePath(java.io.File file)
Description copied from interface: IDE
Find the project name and the project relative path for a File object. The return is an array of two strings. The first entry is the project name, ex: "projectName". The second entry is the relative path, ex: "src/com/joanju/Example.cls".

Specified by:
getProjectRelativePath in interface IDE
Returns:
Must never return null. The project name may be anything including null. The relative path must never be null.
See Also:
This implementation returns the current project name from RefactorSession, and getPath() from the input file.


Copyright © 2008 Joanju Software. All Rights Reserved.