|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2004, 2008 Tasktop Technologies and others. |
2 |
* Copyright (c) 2004, 2008 Tasktop Technologies and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 139-144
Link Here
|
| 139 |
import org.eclipse.ui.forms.widgets.FormToolkit; |
139 |
import org.eclipse.ui.forms.widgets.FormToolkit; |
| 140 |
import org.eclipse.ui.forms.widgets.Hyperlink; |
140 |
import org.eclipse.ui.forms.widgets.Hyperlink; |
| 141 |
import org.eclipse.ui.forms.widgets.ScrolledForm; |
141 |
import org.eclipse.ui.forms.widgets.ScrolledForm; |
|
|
142 |
import org.eclipse.ui.forms.widgets.Section; |
| 142 |
import org.eclipse.ui.handlers.IHandlerService; |
143 |
import org.eclipse.ui.handlers.IHandlerService; |
| 143 |
import org.eclipse.ui.views.contentoutline.IContentOutlinePage; |
144 |
import org.eclipse.ui.views.contentoutline.IContentOutlinePage; |
| 144 |
|
145 |
|
|
Lines 886-891
Link Here
|
| 886 |
if (actionPart != null && actionPart.getControl() instanceof ExpandableComposite) { |
887 |
if (actionPart != null && actionPart.getControl() instanceof ExpandableComposite) { |
| 887 |
EditorUtil.toggleExpandableComposite(true, |
888 |
EditorUtil.toggleExpandableComposite(true, |
| 888 |
(ExpandableComposite) actionPart.getControl()); |
889 |
(ExpandableComposite) actionPart.getControl()); |
|
|
890 |
if (actionPart.getControl() instanceof Section) { |
| 891 |
Control client = ((Section) actionPart.getControl()).getClient(); |
| 892 |
if (client instanceof Composite) { |
| 893 |
for (Control control : ((Composite) client).getChildren()) { |
| 894 |
// toggle subsections |
| 895 |
if (control instanceof Section) { |
| 896 |
EditorUtil.toggleExpandableComposite(true, (Section) control); |
| 897 |
} |
| 898 |
} |
| 899 |
} |
| 900 |
} |
| 889 |
} |
901 |
} |
| 890 |
} |
902 |
} |
| 891 |
EditorUtil.reveal(form, attribute.getId()); |
903 |
EditorUtil.reveal(form, attribute.getId()); |