Skip to content

Commit

Permalink
[eclipse] Add "-Xmx" note in launch configuration dialog.
Browse files Browse the repository at this point in the history
close #611

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 23, 2017
1 parent 42e0c5e commit b1e1ec8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Expand Up @@ -63,6 +63,7 @@ public class Messages extends NLS {
public static String SARLArgumentsTab_2;
public static String SARLArgumentsTab_3;
public static String SARLArgumentsTab_4;
public static String SARLArgumentsTab_5;
public static String SARLMainLaunchConfigurationTab_0;
public static String SARLMainLaunchConfigurationTab_1;
public static String SARLMainLaunchConfigurationTab_2;
Expand Down
Expand Up @@ -25,10 +25,10 @@

import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.internal.ui.SWTFactory;
import org.eclipse.debug.ui.StringVariableSelectionDialog;
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
import org.eclipse.jdt.internal.debug.ui.actions.ControlAccessibleListener;
import org.eclipse.jdt.internal.debug.ui.launcher.LauncherMessages;
import org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
Expand Down Expand Up @@ -158,7 +158,7 @@ public void modifyText(ModifyEvent evt) {
}

private void createSREArgsVariableButton(Group group) {
final Button sreArgVariableButton = createPushButton(group, LauncherMessages.JavaArgumentsTab_5, null);
final Button sreArgVariableButton = createPushButton(group, "", null); //$NON-NLS-1$
sreArgVariableButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
sreArgVariableButton.addSelectionListener(new SelectionAdapter() {
@SuppressWarnings("synthetic-access")
Expand Down Expand Up @@ -205,6 +205,9 @@ public void createControl(Composite parent) {
final Group group = (Group) this.fVMArgumentsText.getParent();
group.setText(Messages.SARLArgumentsTab_3);
ControlAccessibleListener.addListener(this.fVMArgumentsText, group.getText());

// Add the message for the max memory
SWTFactory.createLabel(group, Messages.SARLArgumentsTab_5, 0);
}

}
Expand Down
Expand Up @@ -29,6 +29,7 @@
import org.eclipse.debug.ui.EnvironmentTab;
import org.eclipse.debug.ui.ILaunchConfigurationDialog;
import org.eclipse.debug.ui.ILaunchConfigurationTab;
import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;

/**
Expand Down Expand Up @@ -57,6 +58,7 @@ public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
new SARLArgumentsTab(),
new SARLRuntimeEnvironmentTab(),
new JavaClasspathTab(),
new SourceLookupTab(),
new EnvironmentTab(),
new CommonTab(),
};
Expand Down
Expand Up @@ -28,6 +28,7 @@ SARLArgumentsTab_1=Arguments for the SARL runtime environment (SRE):
SARLArgumentsTab_2=Arguments for the Java virtual machine (JVM):
SARLArgumentsTab_3=Arguments for the Java virtual machine (JVM):
SARLArgumentsTab_4=Exception occurred reading configuration: {0}
SARLArgumentsTab_5=For setting the max memory size of your application, use "-Xmx <SIZE>M"
SARLMainLaunchConfigurationTab_0=Run in the SARL product VM (experimental)
SARLMainLaunchConfigurationTab_1=Enable assertions in debug mode
SARLMainLaunchConfigurationTab_2=Enable assertions in run mode

0 comments on commit b1e1ec8

Please sign in to comment.