|
37 | 37 | import org.eclipse.jface.wizard.WizardPage;
|
38 | 38 | import org.eclipse.swt.SWT;
|
39 | 39 | import org.eclipse.swt.custom.SashForm;
|
40 |
| -import org.eclipse.swt.events.SelectionAdapter; |
41 |
| -import org.eclipse.swt.events.SelectionEvent; |
42 | 40 | import org.eclipse.swt.graphics.Font;
|
43 | 41 | import org.eclipse.swt.graphics.FontData;
|
44 | 42 | import org.eclipse.swt.graphics.Image;
|
45 | 43 | import org.eclipse.swt.layout.GridData;
|
46 | 44 | import org.eclipse.swt.layout.GridLayout;
|
47 |
| -import org.eclipse.swt.widgets.Button; |
48 | 45 | import org.eclipse.swt.widgets.Composite;
|
49 | 46 | import org.eclipse.ui.ISharedImages;
|
50 | 47 | import org.eclipse.ui.PlatformUI;
|
51 |
| -import org.eclipse.wb.swt.ResourceManager; |
52 | 48 |
|
53 | 49 | import phasereditor.inspect.core.IPhaserCategory;
|
54 | 50 | import phasereditor.inspect.core.IPhaserTemplate;
|
@@ -177,34 +173,6 @@ public void createControl(Composite parent) {
|
177 | 173 | gl_container.marginHeight = 0;
|
178 | 174 | container.setLayout(gl_container);
|
179 | 175 |
|
180 |
| - Button btnNewButton = new Button(container, SWT.NONE); |
181 |
| - GridData gd_btnNewButton = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1); |
182 |
| - gd_btnNewButton.heightHint = 20; |
183 |
| - gd_btnNewButton.widthHint = 20; |
184 |
| - btnNewButton.setLayoutData(gd_btnNewButton); |
185 |
| - btnNewButton.addSelectionListener(new SelectionAdapter() { |
186 |
| - @Override |
187 |
| - public void widgetSelected(SelectionEvent e) { |
188 |
| - _treeViewer.expandAll(); |
189 |
| - } |
190 |
| - }); |
191 |
| - btnNewButton.setToolTipText("Expand All"); |
192 |
| - btnNewButton.setImage(ResourceManager.getPluginImage("org.eclipse.ui", "/icons/full/elcl16/expandall.png")); |
193 |
| - |
194 |
| - Button btnCollapse = new Button(container, SWT.NONE); |
195 |
| - GridData gd_btnCollapse = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1); |
196 |
| - gd_btnCollapse.widthHint = 20; |
197 |
| - gd_btnCollapse.heightHint = 20; |
198 |
| - btnCollapse.setLayoutData(gd_btnCollapse); |
199 |
| - btnCollapse.addSelectionListener(new SelectionAdapter() { |
200 |
| - @Override |
201 |
| - public void widgetSelected(SelectionEvent e) { |
202 |
| - _treeViewer.collapseAll(); |
203 |
| - } |
204 |
| - }); |
205 |
| - btnCollapse.setToolTipText("Collapse All"); |
206 |
| - btnCollapse.setImage(ResourceManager.getPluginImage("org.eclipse.ui", "/icons/full/elcl16/collapseall.png")); |
207 |
| - |
208 | 176 | SashForm sashForm = new SashForm(container, SWT.VERTICAL);
|
209 | 177 | sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
|
210 | 178 |
|
|
0 commit comments