* @param currentFile
* @return
*/
- public static String getFileWikiName(IFile currentFile) {
- return getFileWikiName(currentFile, false);
+ public static String getURLWikiName(IFile currentFile) {
+ return getURLWikiName(currentFile, false);
}
/**
* @param replaceUnderscore
* @return
*/
- public static String getFileWikiName(IFile currentFile, boolean replaceUnderscore) {
+ public static String getURLWikiName(IFile currentFile, boolean replaceUnderscore) {
String filePath = currentFile.getLocation().toString();
String basePath = getWikiTextsPath(currentFile);
StringBuffer result = new StringBuffer();
default:
if (ch == '_' && replaceUnderscore) {
result.append(' ');
- } else {
+ } else {
result.append(ch);
}
}
* @return
*/
public static String getReadableWikiName(IFile currentFile) {
- return getFileWikiName(currentFile, true);
+ return getURLWikiName(currentFile, true);
}
public static String getWikiTitle(IFile currentFile) {