mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 339364: Toggle Function Definition Refactoring
https://bugs.eclipse.org/bugs/show_bug.cgi?id=339364
This commit is contained in:
parent
e1cfb22cba
commit
dfd434ea2e
1 changed files with 4 additions and 2 deletions
|
@ -341,8 +341,10 @@ public class ToggleNodeHelper extends NodeHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getFilenameWithoutExtension(String filename) {
|
public static String getFilenameWithoutExtension(String filename) {
|
||||||
int index = filename.lastIndexOf('.');
|
int indexP = filename.lastIndexOf('.');
|
||||||
return filename.substring(0, index);
|
int indexS = filename.lastIndexOf('/');
|
||||||
|
indexS++;
|
||||||
|
return filename.substring(indexS, indexP);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue