|
Lines 24-31
Link Here
|
| 24 |
import org.eclipse.swt.widgets.Composite; |
24 |
import org.eclipse.swt.widgets.Composite; |
| 25 |
import org.eclipse.swt.widgets.Event; |
25 |
import org.eclipse.swt.widgets.Event; |
| 26 |
import org.eclipse.ui.IEditorPart; |
26 |
import org.eclipse.ui.IEditorPart; |
| 27 |
import org.eclipse.wst.common.ui.properties.internal.provisional.ITabbedPropertyConstants; |
27 |
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; |
| 28 |
import org.eclipse.wst.common.ui.properties.internal.provisional.TabbedPropertySheetWidgetFactory; |
28 |
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; |
| 29 |
import org.eclipse.wst.wsdl.Part; |
29 |
import org.eclipse.wst.wsdl.Part; |
| 30 |
import org.eclipse.wst.wsdl.ui.internal.WSDLEditor; |
30 |
import org.eclipse.wst.wsdl.ui.internal.WSDLEditor; |
| 31 |
import org.eclipse.wst.wsdl.ui.internal.WSDLEditorPlugin; |
31 |
import org.eclipse.wst.wsdl.ui.internal.WSDLEditorPlugin; |
|
Lines 77-117
Link Here
|
| 77 |
data.top = new FormAttachment(referenceKindCombo, 0, SWT.CENTER); |
77 |
data.top = new FormAttachment(referenceKindCombo, 0, SWT.CENTER); |
| 78 |
valueLabel.setLayoutData(data); |
78 |
valueLabel.setLayoutData(data); |
| 79 |
|
79 |
|
| 80 |
componentNameCombo = getWidgetFactory().createCCombo(composite); |
80 |
componentNameCombo = getWidgetFactory().createCCombo(composite); |
| 81 |
componentNameCombo.setBackground(composite.getBackground()); |
81 |
componentNameCombo.setBackground(composite.getBackground()); |
| 82 |
componentNameCombo.addListener(SWT.Modify, this); |
82 |
componentNameCombo.addListener(SWT.Modify, this); |
| 83 |
componentNameCombo.addSelectionListener(this); |
83 |
componentNameCombo.addSelectionListener(this); |
| 84 |
|
84 |
|
| 85 |
componentNameLabel = getWidgetFactory().createCLabel(composite, WSDLEditorPlugin.getWSDLString("_UI_LABEL_ELEMENT") + ":"); //$NON-NLS-1$ |
85 |
componentNameLabel = getWidgetFactory().createCLabel(composite, WSDLEditorPlugin.getWSDLString("_UI_LABEL_ELEMENT") + ":"); //$NON-NLS-1$ |
| 86 |
data = new FormData(); |
86 |
data = new FormData(); |
| 87 |
data.left = new FormAttachment(0, 0); |
87 |
data.left = new FormAttachment(0, 0); |
| 88 |
data.right = new FormAttachment(componentNameCombo, -ITabbedPropertyConstants.HSPACE); |
88 |
data.right = new FormAttachment(componentNameCombo, -ITabbedPropertyConstants.HSPACE); |
| 89 |
data.top = new FormAttachment(componentNameCombo, 0, SWT.CENTER); |
89 |
data.top = new FormAttachment(componentNameCombo, 0, SWT.CENTER); |
| 90 |
componentNameLabel.setLayoutData(data); |
90 |
componentNameLabel.setLayoutData(data); |
| 91 |
|
|
|
| 92 |
button = getWidgetFactory().createButton(composite, "", SWT.PUSH); //$NON-NLS-1$ |
| 93 |
button.setImage(WSDLEditorPlugin.getInstance().getImage("icons/browsebutton.gif")); //$NON-NLS-1$ |
| 94 |
|
91 |
|
| 95 |
button.addSelectionListener(this); |
92 |
button = getWidgetFactory().createButton(composite, "", SWT.PUSH); //$NON-NLS-1$ |
|
|
93 |
button.setImage(WSDLEditorPlugin.getInstance().getImage("icons/browsebutton.gif")); //$NON-NLS-1$ |
| 94 |
|
| 95 |
button.addSelectionListener(this); |
| 96 |
data = new FormData(); |
96 |
data = new FormData(); |
| 97 |
data.left = new FormAttachment(100, -rightMarginSpace + 2); |
97 |
data.left = new FormAttachment(100, -rightMarginSpace + 2); |
| 98 |
data.right = new FormAttachment(100, 0); |
98 |
data.right = new FormAttachment(100, 0); |
| 99 |
data.top = new FormAttachment(componentNameCombo, 0, SWT.CENTER); |
99 |
data.top = new FormAttachment(componentNameCombo, 0, SWT.CENTER); |
| 100 |
button.setLayoutData(data); |
100 |
button.setLayoutData(data); |
| 101 |
|
|
|
| 102 |
data = new FormData(); |
| 103 |
data.left = new FormAttachment(0, 100); |
| 104 |
data.right = new FormAttachment(100, -rightMarginSpace - ITabbedPropertyConstants.HSPACE); |
| 105 |
data.top = new FormAttachment(0, 0); |
| 106 |
referenceKindCombo.setLayoutData(data); |
| 107 |
|
| 108 |
data = new FormData(); |
| 109 |
data.left = new FormAttachment(0, 100); |
| 110 |
data.right = new FormAttachment(button, 0); |
| 111 |
data.top = new FormAttachment(referenceKindCombo, +ITabbedPropertyConstants.VSPACE); |
| 112 |
componentNameCombo.setLayoutData(data); |
| 113 |
|
101 |
|
| 114 |
referenceKindCombo.addListener(SWT.Modify, this); |
102 |
data = new FormData(); |
|
|
103 |
data.left = new FormAttachment(0, 100); |
| 104 |
data.right = new FormAttachment(100, -rightMarginSpace - ITabbedPropertyConstants.HSPACE); |
| 105 |
data.top = new FormAttachment(0, 0); |
| 106 |
referenceKindCombo.setLayoutData(data); |
| 107 |
|
| 108 |
data = new FormData(); |
| 109 |
data.left = new FormAttachment(0, 100); |
| 110 |
data.right = new FormAttachment(button, 0); |
| 111 |
data.top = new FormAttachment(referenceKindCombo, +ITabbedPropertyConstants.VSPACE); |
| 112 |
componentNameCombo.setLayoutData(data); |
| 113 |
|
| 114 |
referenceKindCombo.addListener(SWT.Modify, this); |
| 115 |
|
| 116 |
this.editorPart = getActiveEditor(); |
| 115 |
} |
117 |
} |
| 116 |
|
118 |
|
| 117 |
/* |
119 |
/* |