use of org.eclipse.linuxtools.profiling.launch.ui.ResourceSelectorWidget in project linuxtools by eclipse.
the class RemoteProxyCMainTab method createExeFileGroup.
protected void createExeFileGroup(Composite parent, int colSpan) {
Composite mainComp = new Composite(parent, SWT.NONE);
GridLayout mainLayout = new GridLayout();
mainLayout.numColumns = 1;
mainLayout.marginHeight = 0;
mainLayout.marginWidth = 0;
mainComp.setLayout(mainLayout);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = colSpan;
mainComp.setLayoutData(gd);
exeSelector = new ResourceSelectorWidget(mainComp, ResourceSelectorWidget.ResourceType.FILE, 2, "C/C++ executable", // $NON-NLS-1$
null);
fProgText = exeSelector.getURIText();
fProgText.addModifyListener(evt -> updateLaunchConfigurationDialog());
}
use of org.eclipse.linuxtools.profiling.launch.ui.ResourceSelectorWidget in project linuxtools by eclipse.
the class RemoteProxyCMainTab method createCopyFromExeGroup.
protected void createCopyFromExeGroup(Composite parent, int colSpan) {
Composite mainComp = new Composite(parent, SWT.NONE);
GridLayout mainLayout = new GridLayout();
mainLayout.numColumns = 1;
mainLayout.marginHeight = 0;
mainLayout.marginWidth = 0;
mainComp.setLayout(mainLayout);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = colSpan;
mainComp.setLayoutData(gd);
enableCopyFromExeButton = createCheckButton(mainComp, ProxyLaunchMessages.copy_cpp_executable);
copyFromExeSelector = new ResourceSelectorWidget(mainComp, ResourceSelectorWidget.ResourceType.FILE, 2, ProxyLaunchMessages.executable_origin, null);
toLabel = new Label(mainComp, SWT.NONE);
toLabel.setText(ProxyLaunchMessages.to);
// The "copy from" check box is initially off, the selector and "To:" label
// are disabled.
copyFromExeSelector.setEnabled(false);
enableCopyFromExeButton.setSelection(false);
toLabel.setEnabled(false);
enableCopyFromExeButton.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> {
boolean copyEnabled = enableCopyFromExeButton.getSelection();
setEnableCopyFromSection(copyEnabled);
updateLaunchConfigurationDialog();
}));
copyFromExeText = copyFromExeSelector.getURIText();
copyFromExeText.addModifyListener(evt -> updateLaunchConfigurationDialog());
}
use of org.eclipse.linuxtools.profiling.launch.ui.ResourceSelectorWidget in project linuxtools by eclipse.
the class RemoteProxyCMainTab method createWorkingDirGroup.
protected void createWorkingDirGroup(Composite parent, int colSpan) {
Composite mainComp = new Composite(parent, SWT.NONE);
GridLayout mainLayout = new GridLayout();
mainLayout.numColumns = 1;
mainLayout.marginHeight = 0;
mainLayout.marginWidth = 0;
mainComp.setLayout(mainLayout);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = colSpan;
mainComp.setLayoutData(gd);
ResourceSelectorWidget workingDirSelector = new ResourceSelectorWidget(mainComp, ResourceSelectorWidget.ResourceType.DIRECTORY, 2, "Working directory", // $NON-NLS-1$
null);
workingDirText = workingDirSelector.getURIText();
workingDirText.addModifyListener(evt -> updateLaunchConfigurationDialog());
}
Aggregations