protected static String getNewConfigurationName(String fileName) {
String configurationName = PHPDebugUIMessages.PHPExeLaunchShortcut_0;
try {
IPath path = Path.fromOSString(fileName);
NonExistingPHPFileEditorInput editorInput = NonExistingPHPFileEditorInput
.findEditorInput(path);
if (editorInput != null) {
path = new Path(editorInput.getName());
}
String fileExtention = path.getFileExtension();
String lastSegment = path.lastSegment();
if (lastSegment != null) {