Skip to content

Commit 7d43b65

Browse files
committed
.debug update Not Implemented dialog
1 parent 090583a commit 7d43b65

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

org.nodeclipse.debug/src/org/nodeclipse/debug/launch/LaunchShortcut.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
* Using "Run As" --> "Node Application" or "Run As" --> "coffee" will lead here
2424
**/
2525
public class LaunchShortcut implements ILaunchShortcut {
26+
27+
private void showDialogNotImplemented(String what) {
28+
//TODO CommonDialog "Not Implemented"
29+
MessageDialog.openWarning(null, "Warning",
30+
"Launching of type "+what+" is not implemeneted yet!\n"+
31+
"Search/raise an issue if you care at https://github.com/nodeclipse/nodeclipse-1/issues/");
32+
}
33+
2634

2735
/**
2836
* (non-Javadoc)
@@ -37,7 +45,8 @@ public void launch(ISelection selection, String mode) {
3745
if (selectObj instanceof IFile) {
3846
launchFile((IFile) selectObj, mode);
3947
} else {
40-
MessageDialog.openWarning(null, "Warning", "Not implemeneted yet!");
48+
//MessageDialog.openWarning(null, "Warning", "Not implemeneted yet!");
49+
showDialogNotImplemented(selection.getClass().getName());
4150
}
4251
} catch (CoreException e) {
4352
NodeclipseConsole.write(e.getLocalizedMessage()+"\n");
@@ -58,7 +67,8 @@ public void launch(IEditorPart editor, String mode) {
5867
IFile selectObj = ((IFileEditorInput) editorInput).getFile();
5968
launchFile((IFile) selectObj, mode);
6069
} else {
61-
MessageDialog.openWarning(null, "Warning", "Not implemeneted yet!");
70+
//MessageDialog.openWarning(null, "Warning", "Not implemeneted yet!");
71+
showDialogNotImplemented(editor.getClass().getName());
6272
}
6373
} catch (CoreException e) {
6474
NodeclipseConsole.write(e.getLocalizedMessage()+"\n");

0 commit comments

Comments
 (0)