1 package org
.argeo
.slc
.ui
.launch
.script
;
3 import org
.eclipse
.core
.resources
.IFile
;
4 import org
.eclipse
.core
.runtime
.CoreException
;
5 import org
.eclipse
.debug
.core
.ILaunchConfiguration
;
6 import org
.eclipse
.debug
.core
.ILaunchConfigurationWorkingCopy
;
7 import org
.eclipse
.debug
.ui
.AbstractLaunchConfigurationTab
;
8 import org
.eclipse
.swt
.SWT
;
9 import org
.eclipse
.swt
.widgets
.Composite
;
10 import org
.eclipse
.swt
.widgets
.Label
;
12 public class SlcScriptLaunchConfigurationTab
extends
13 AbstractLaunchConfigurationTab
{
17 public void createControl(Composite parent
) {
18 Composite body
= new Composite(parent
,SWT
.NONE
);
19 new Label(parent
, SWT
.LEAD
).setText("Script location");
21 new Label(parent
, SWT
.LEAD
).setText(script
.getLocation().toFile()
27 public String
getName() {
31 public void initializeFrom(ILaunchConfiguration configuration
) {
33 script
= (IFile
) configuration
.getMappedResources()[0];
34 } catch (CoreException e
) {
35 throw new RuntimeException("Cannot initialize tab", e
);
40 public void performApply(ILaunchConfigurationWorkingCopy configuration
) {
43 public void setDefaults(ILaunchConfigurationWorkingCopy configuration
) {