Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-04-30 04:03:35 +0000
committerspingel2009-04-30 04:03:35 +0000
commit3191493a47a046681999d9d7432f6f04abd8e454 (patch)
treec5824f7c39bafdc20dcbfa0f0f7fdaab5454f6ed /org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui
parent81105f929c717fc62d142b59de0e781638b29282 (diff)
downloadorg.eclipse.mylyn.incubator-3191493a47a046681999d9d7432f6f04abd8e454.tar.gz
org.eclipse.mylyn.incubator-3191493a47a046681999d9d7432f6f04abd8e454.tar.xz
org.eclipse.mylyn.incubator-3191493a47a046681999d9d7432f6f04abd8e454.zip
NEW - bug 272183: [api] provide generic utility methods for form-based editors
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272183
Diffstat (limited to 'org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui')
-rw-r--r--org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/editors/ExtensibleBugzillaTaskEditorPage.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/editors/ExtensibleBugzillaTaskEditorPage.java b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/editors/ExtensibleBugzillaTaskEditorPage.java
index 4d97ed49..1b1c21a3 100644
--- a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/editors/ExtensibleBugzillaTaskEditorPage.java
+++ b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/editors/ExtensibleBugzillaTaskEditorPage.java
@@ -24,9 +24,9 @@ import org.eclipse.jface.text.FindReplaceDocumentAdapter;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.TextViewer;
import org.eclipse.mylyn.internal.bugzilla.ui.editor.BugzillaTaskEditorPage;
+import org.eclipse.mylyn.internal.provisional.commons.ui.CommonFormUtil;
import org.eclipse.mylyn.internal.provisional.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.provisional.commons.ui.CommonTextSupport;
-import org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage;
import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPart;
import org.eclipse.mylyn.tasks.ui.editors.TaskEditor;
@@ -91,8 +91,8 @@ public class ExtensibleBugzillaTaskEditorPage extends BugzillaTaskEditorPage {
findAndHighlight(ExtensibleBugzillaTaskEditorPage.this, findText.getText());
// always toggle attachment part close after every search, since all ExpandableComposites are open
AbstractTaskEditorPart attachmentsPart = getPart(AbstractTaskEditorPage.ID_PART_ATTACHMENTS);
- EditorUtil.toggleExpandableComposite(false,
- (ExpandableComposite) attachmentsPart.getControl());
+ CommonFormUtil.setExpanded((ExpandableComposite) attachmentsPart.getControl(),
+ false);
} finally {
setReflow(true);
}
@@ -179,7 +179,7 @@ public class ExtensibleBugzillaTaskEditorPage extends BugzillaTaskEditorPage {
// have to do this since TaskEditorCommentPart.expendComment(..) will dispose the TextViewer when the ExpandableComposite is close
if (child instanceof ExpandableComposite) {
- EditorUtil.toggleExpandableComposite(true, (ExpandableComposite) child);
+ CommonFormUtil.setExpanded((ExpandableComposite) child, true);
}
if (child instanceof Composite) {
@@ -236,7 +236,7 @@ public class ExtensibleBugzillaTaskEditorPage extends BugzillaTaskEditorPage {
while (comp != null) {
if (comp instanceof ExpandableComposite) {
ExpandableComposite ex = (ExpandableComposite) comp;
- EditorUtil.toggleExpandableComposite(false, ex);
+ CommonFormUtil.setExpanded(ex, false);
break;
}
comp = comp.getParent();

Back to the top