File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
dev/com.ibm.microclimate.ui/src/com/ibm/microclimate/ui/internal Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1818import com .ibm .microclimate .core .internal .MCEclipseApplication ;
1919import com .ibm .microclimate .core .internal .MCLogger ;
2020import com .ibm .microclimate .core .internal .constants .AppState ;
21+ import com .ibm .microclimate .core .internal .constants .ProjectType ;
2122import com .ibm .microclimate .core .internal .constants .StartMode ;
2223import com .ibm .microclimate .ui .internal .messages .Messages ;
2324
@@ -41,6 +42,11 @@ public void selectionChanged(IStructuredSelection sel) {
4142 Object obj = sel .getFirstElement ();
4243 if (obj instanceof MCEclipseApplication ) {
4344 app = (MCEclipseApplication ) obj ;
45+ if (app .projectType .isLanguage (ProjectType .LANGUAGE_NODEJS )) {
46+ this .setText (Messages .LaunchDebugSessionLabel );
47+ } else {
48+ this .setText (Messages .AttachDebuggerLabel );
49+ }
4450 if (app .isAvailable () && StartMode .DEBUG_MODES .contains (app .getStartMode ()) && app .getDebugPort () != -1 &&
4551 (app .getAppState () == AppState .STARTED || app .getAppState () == AppState .STARTING )) {
4652 setEnabled (app .canAttachDebugger ());
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public class Messages extends NLS {
6969
7070 public static String ValidateLabel ;
7171 public static String AttachDebuggerLabel ;
72+ public static String LaunchDebugSessionLabel ;
7273 public static String refreshResourceJobLabel ;
7374 public static String RefreshResourceError ;
7475
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ ActionNewConnection=&New Microclimate Connection
6262
6363ValidateLabel =Validate
6464AttachDebuggerLabel =A&ttach Debugger
65+ LaunchDebugSessionLabel =&Launch Debug Session
6566refreshResourceJobLabel =Refreshing resource: {0}
6667RefreshResourceError =An error occurred while trying to refresh the {0} resource.
6768
You can’t perform that action at this time.
0 commit comments