2323 * Using "Run As" --> "Node Application" or "Run As" --> "coffee" will lead here
2424 **/
2525public 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