Contributors:
IBM Corporation - Initial implementation
- Klaus Hartlage - www.eclipseproject.de
+ www.phpeclipse.de
**********************************************************************/
package net.sourceforge.phpeclipse.phpeditor;
import java.io.FileReader;
// elbuffer.getHoverText());
// }
}
- String hoverInfo = (String) functionDescriptions.get(word);
+ String hoverInfo =
+ (String) functionDescriptions.get(word);
if (hoverInfo == null && fProject != null) {
// get the possible PHPDoc information from the index file
IdentifierIndexManager indexManager = PHPeclipsePlugin.getDefault()
String filename;
FileReader phpdocFileReader;
StringBuffer hoverInfoBuffer = new StringBuffer();
- String workspaceLocation = PHPeclipsePlugin.getWorkspace()
- .getRoot().getLocation().toString();
+ String workspaceLocation;
+ if (fProject!=null) {
+ workspaceLocation = fProject.getLocation().toString()+'/';
+ } else {
+ // should never happen?
+ workspaceLocation = PHPeclipsePlugin.getWorkspace()
+ .getRoot().getLocation().toString();
+ }
// boolean foundPHPdoc = false;
for (int i = 0; i < list.size(); i++) {
location = (PHPIdentifierLocation) list.get(i);