*/
public String getDisplayString() {
String workspaceLocation;
+ String workspaceName;
if (fProject != null) {
- workspaceLocation = fProject.getName().toString() + '/';
+ workspaceLocation = fProject.getLocation().toString() + '/';
+ workspaceName = fProject.getName().toString() + '/';
} else {
// should never happen?
workspaceLocation = PHPeclipsePlugin.getWorkspace().getRoot()
.getLocation().toString();
+ workspaceName = workspaceLocation;
}
- String filename = workspaceLocation + fLocation.getFilename();
- String usage = PHPDocUtil.getUsage(filename, fLocation);
+ String filename = fLocation.getFilename();
+ String usage = PHPDocUtil.getUsage(workspaceLocation + filename, fLocation);
String result = fIdentifierName
+ TemplateMessages.getString("TemplateProposal.delimiter");
if (usage.length() > 0) {
result += usage
+ TemplateMessages.getString("TemplateProposal.delimiter");
}
- result += filename;
+ result += workspaceName + filename;
return result;
}