diff options
author | Pablo Torregrosa Paez | 2016-04-25 10:58:34 +0000 |
---|---|---|
committer | Pablo Torregrosa Paez | 2016-04-25 10:59:29 +0000 |
commit | af2861ca39bf339af4b27036ba2e17f7652a9a73 (patch) | |
tree | 831969070bf7df9cf14c82bdd49fb0e6dd38e643 /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf | |
parent | aa44cad0038b7599d23604cfe7481d12f2cea384 (diff) | |
download | org.eclipse.tcf-af2861ca39bf339af4b27036ba2e17f7652a9a73.tar.gz org.eclipse.tcf-af2861ca39bf339af4b27036ba2e17f7652a9a73.tar.xz org.eclipse.tcf-af2861ca39bf339af4b27036ba2e17f7652a9a73.zip |
Target Explorer: Improved UI - Launch remote app using different user
Change-Id: I4374fe2dfc0fdebbaee145142ba1fd39b5922569
Signed-off-by: Pablo Torregrosa Paez <pablo.torregrosa@windriver.com>
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf')
3 files changed, 35 insertions, 43 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/nls/Messages.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/nls/Messages.java index 0929b17c9..f2ce8e7f0 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/nls/Messages.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/nls/Messages.java @@ -41,7 +41,6 @@ public class Messages extends NLS { public static String RemoteCMainTab_Prerun_Edit_Button; public static String RemoteCMainTab_Prerun_Edit_Dialog_Title; public static String RemoteCMainTab_RemoteUser_Label; - public static String RemoteCMainTab_AdvancedOptions_Group_Label; public static String TEHelper_executing; public static String TEHelper_connection_not_found; diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/nls/Messages.properties b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/nls/Messages.properties index 311eaa788..3c2c7eafc 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/nls/Messages.properties +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/nls/Messages.properties @@ -32,7 +32,6 @@ RemoteCMainTab_Pid=PID of remote application to attach: RemoteCMainTab_Prerun_Edit_Button=Edit... RemoteCMainTab_Prerun_Edit_Dialog_Title=Edit Commands RemoteCMainTab_RemoteUser_Label=Launch as Remote User: -RemoteCMainTab_AdvancedOptions_Group_Label=Advanced Options Gdbserver_Settings_Tab_Name=Gdbserver Settings Gdbserver_name_textfield_label=Gdbserver name: diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/tabs/TEAbstractMainTab.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/tabs/TEAbstractMainTab.java index e4b6e4ee3..8264af020 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/tabs/TEAbstractMainTab.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.cdt/src/org/eclipse/tcf/te/tcf/launch/cdt/tabs/TEAbstractMainTab.java @@ -37,7 +37,6 @@ import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Text; import org.eclipse.tcf.te.runtime.services.ServiceManager; @@ -65,7 +64,6 @@ public abstract class TEAbstractMainTab extends CMainTab { private static final String PID_LABEL_TEXT = Messages.RemoteCMainTab_Pid; private static final String REMOTE_PROG_SYMBOLIC_TEXT_ERROR = Messages.RemoteCMainTab_ErrorSymbolicLink; private static final String REMOTE_USER_ID_LABEL_TEXT = Messages.RemoteCMainTab_RemoteUser_Label; - private static final String ADVANCED_OPTIONS_GROUP_LABEL_TEXT = Messages.RemoteCMainTab_AdvancedOptions_Group_Label; protected TCFPeerSelector peerSelector; protected Label remoteProgLabel; @@ -274,46 +272,8 @@ public abstract class TEAbstractMainTab extends CMainTab { if (preRunVisible) { createVerticalSpacer(mainComp, 2); - Group preRunGroup = new Group(mainComp, SWT.NONE); - GridLayout preRunGroupLayout = new GridLayout(); - preRunGroupLayout.numColumns = 2; - preRunGroup.setLayout(preRunGroupLayout); - gd = new GridData(GridData.FILL_BOTH); - gd.horizontalSpan = 2; - preRunGroup.setLayoutData(gd); - preRunGroup.setText(ADVANCED_OPTIONS_GROUP_LABEL_TEXT); - - // Commands to run before execution - preRunLabel = new Label(preRunGroup, SWT.NONE); - preRunLabel.setText(PRE_RUN_LABEL_TEXT); - gd = new GridData(); - gd.horizontalSpan = 2; - preRunLabel.setLayoutData(gd); - - preRunText = new Text(preRunGroup, SWT.MULTI | SWT.BORDER); - gd = new GridData(GridData.FILL_HORIZONTAL); - gd.horizontalSpan = 1; - gd.heightHint = preRunText.getLineHeight(); - preRunText.setLayoutData(gd); - preRunText.addModifyListener(new ModifyListener() { - - @SuppressWarnings("synthetic-access") - @Override - public void modifyText(ModifyEvent evt) { - updateLaunchConfigurationDialog(); - } - }); - - preRunEditButton = createPushButton(preRunGroup, Messages.RemoteCMainTab_Prerun_Edit_Button, null); - preRunEditButton.addSelectionListener(new SelectionAdapter() { - @Override - public void widgetSelected(SelectionEvent evt) { - showCommandsEditor(); - } - }); - // Launch with remote user - Composite userIdComp = new Composite(preRunGroup, SWT.NONE); + Composite userIdComp = new Composite(mainComp, SWT.NONE); GridLayout userIdCompLayout = new GridLayout(); userIdCompLayout.numColumns = 2; userIdCompLayout.marginHeight = 0; @@ -348,6 +308,39 @@ public abstract class TEAbstractMainTab extends CMainTab { updateLaunchConfigurationDialog(); } }); + + createVerticalSpacer(mainComp, 2); + + // Commands to run before execution + preRunLabel = new Label(mainComp, SWT.NONE); + preRunLabel.setText(PRE_RUN_LABEL_TEXT); + gd = new GridData(); + gd.horizontalSpan = 2; + preRunLabel.setLayoutData(gd); + + preRunText = new Text(mainComp, SWT.MULTI | SWT.BORDER); + gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 1; + gd.heightHint = 3 * preRunText.getLineHeight(); + preRunText.setLayoutData(gd); + preRunText.addModifyListener(new ModifyListener() { + + @SuppressWarnings("synthetic-access") + @Override + public void modifyText(ModifyEvent evt) { + updateLaunchConfigurationDialog(); + } + }); + + preRunEditButton = createPushButton(mainComp, Messages.RemoteCMainTab_Prerun_Edit_Button, null); + gd = new GridData(SWT.FILL, SWT.BEGINNING, false, false); + preRunEditButton.setLayoutData(gd); + preRunEditButton.addSelectionListener(new SelectionAdapter() { + @Override + public void widgetSelected(SelectionEvent evt) { + showCommandsEditor(); + } + }); } } @@ -361,6 +354,7 @@ public abstract class TEAbstractMainTab extends CMainTab { mainLayout.marginWidth = 0; mainComp.setLayout(mainLayout); GridData gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = 2; mainComp.setLayoutData(gd); skipDownloadButton = createCheckButton(mainComp, SKIP_DOWNLOAD_BUTTON_TEXT); |