5252import org .gemoc .execution .sequential .javaengine .ui .launcher .LauncherMessages ;
5353import org .gemoc .executionframework .engine .commons .MelangeHelper ;
5454import org .gemoc .executionframework .engine .ui .commons .RunConfiguration ;
55- import org .gemoc .executionframework .engine .ui .launcher .AbstractSequentialGemocLauncher ;
5655import org .gemoc .executionframework .ui .utils .ENamedElementQualifiedNameLabelProvider ;
5756import org .gemoc .xdsmlframework .ui .utils .dialogs .SelectAIRDIFileDialog ;
5857import org .gemoc .xdsmlframework .ui .utils .dialogs .SelectAnyEObjectDialog ;
6261import fr .obeo .dsl .debug .ide .launch .AbstractDSLLaunchConfigurationDelegate ;
6362import fr .obeo .dsl .debug .ide .sirius .ui .launch .AbstractDSLLaunchConfigurationDelegateUI ;
6463
64+ /**
65+ * Sequential engine launch configuration main tab
66+ *
67+ * @author Didier Vojtisek<didier.vojtisek@inria.fr>
68+ */
6569public class LaunchConfigurationMainTab extends LaunchConfigurationTab {
6670
6771 protected Composite _parent ;
@@ -84,7 +88,10 @@ public class LaunchConfigurationMainTab extends LaunchConfigurationTab {
8488
8589 protected Text modelofexecutionglml_LocationText ;
8690
87- public int GRID_DEFAULT_WIDTH = 200 ;
91+ /**
92+ * default width for the grids
93+ */
94+ public int gridDefaultWidth = 200 ;
8895
8996 protected IProject _modelProject ;
9097
@@ -203,11 +210,11 @@ public void modifyText(ModifyEvent arg0) {
203210 // -----------------------------------
204211
205212 /***
206- * Create the Field where user enters model to execute
213+ * Create the Fields where user enters model to execute
207214 *
208- * @param parent
209- * @param font
210- * @return
215+ * @param parent container composite
216+ * @param font used font
217+ * @return the created composite containing the fields
211218 */
212219 public Composite createModelLayout (Composite parent , Font font ) {
213220 createTextLabelLayout (parent , "Model to execute" );
@@ -241,6 +248,7 @@ public void widgetSelected(SelectionEvent evt) {
241248 createTextLabelLayout (parent , "" );
242249 createTextLabelLayout (parent , "Model initialization arguments" );
243250 _modelInitializationArgumentsText = new Text (parent , SWT .MULTI | SWT .BORDER | SWT .WRAP | SWT .V_SCROLL );
251+ _modelInitializationArgumentsText .setToolTipText ("one argument per line" );
244252 GridData gridData = new GridData (GridData .FILL_BOTH );
245253 gridData .heightHint = 40 ;
246254 _modelInitializationArgumentsText .setLayoutData (gridData );
@@ -321,9 +329,9 @@ private GridData createStandardLayout() {
321329 /***
322330 * Create the Field where user enters the language used to execute
323331 *
324- * @param parent
325- * @param font
326- * @return
332+ * @param parent container composite
333+ * @param font used font
334+ * @return the created composite containing the fields
327335 */
328336 public Composite createLanguageLayout (Composite parent , Font font ) {
329337 // Language
@@ -464,8 +472,8 @@ protected String computeMelangeQuery(){
464472 protected String getModelInitializationMethodName (){
465473 String entryPointClassName = null ;
466474
467- final String PREFIX = "public static void " ;
468- int startName = PREFIX .length ();
475+ final String prefix = "public static void " ;
476+ int startName = prefix .length ();
469477 int endName = _entryPointMethodText .getText ().lastIndexOf ("(" );
470478 if (endName == -1 ) return "" ;
471479 String entryMethod = _entryPointMethodText .getText ().substring (startName , endName );
0 commit comments