org.prorefactor.refactor
Interface IDE

All Known Implementing Classes:
IDEDefault

public interface IDE

An interface to the IDE from ProRefactor. Other than the user interface, ProRefactor is independent of Eclipse. However, there are a few services that any IDE (even one other than Eclipse) should provide. An IDEDefault is provided within ProRefactor for testing and for simple environments. ProRefactor's Eclipse component also provides one of these, so that some Eclipse services can be visible without ProRefactor becoming dependent on Eclipse. If ProRefactor is ever used as a component to another IDE, then that IDE should implement and provide this IDE interface.


Method Summary
 java.lang.String[] getProjectRelativePath(java.io.File file)
          Find the project name and the project relative path for a File object.
 

Method Detail

getProjectRelativePath

java.lang.String[] getProjectRelativePath(java.io.File file)
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".

Returns:
Must never return null. The project name may be anything including null. The relative path must never be null.


Copyright © 2008 Joanju Software. All Rights Reserved.