Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-10-12 10:30:35 +0000
committerspingel2009-10-12 10:30:35 +0000
commit94d0ab2ef9c332c8057292869ee08131b4e22e04 (patch)
treea7eda0e548b155cfab1ec4c7c9f9b5e69baa21be /org.eclipse.mylyn.bugzilla.ui
parentd7826eae7aab768d302e7a4c4322efed816241bc (diff)
downloadorg.eclipse.mylyn.tasks-94d0ab2ef9c332c8057292869ee08131b4e22e04.tar.gz
org.eclipse.mylyn.tasks-94d0ab2ef9c332c8057292869ee08131b4e22e04.tar.xz
org.eclipse.mylyn.tasks-94d0ab2ef9c332c8057292869ee08131b4e22e04.zip
NEW - bug 291991: allow sections to be nested
https://bugs.eclipse.org/bugs/show_bug.cgi?id=291991
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPlanningEditorPart.java7
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java2
2 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPlanningEditorPart.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPlanningEditorPart.java
index 327bf3941..0a866e672 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPlanningEditorPart.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPlanningEditorPart.java
@@ -28,6 +28,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.IFormColors;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
@@ -49,7 +50,11 @@ public class BugzillaPlanningEditorPart extends AbstractTaskEditorPart {
@Override
public void createControl(Composite parent, FormToolkit toolkit) {
initialize();
- Section timeSection = createSection(parent, toolkit, hasIncoming);
+ int style = ExpandableComposite.SHORT_TITLE_BAR | ExpandableComposite.TWISTIE;
+ if (hasIncoming) {
+ style |= ExpandableComposite.EXPANDED;
+ }
+ Section timeSection = createSection(parent, toolkit, style);
GridLayout gl = new GridLayout();
GridData gd = new GridData(SWT.FILL, SWT.NONE, false, false);
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
index 61368eb8d..b2e972423 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
@@ -111,7 +111,7 @@ public class BugzillaTaskEditorPage extends AbstractTaskEditorPage {
public AbstractTaskEditorPart createPart() {
return new BugzillaPlanningEditorPart();
}
- }.setPath(PATH_ATTRIBUTES));
+ }.setPath(ID_PART_ATTRIBUTES + "/" + PATH_PLANNING)); //$NON-NLS-1$
}
}
} catch (CoreException e) {

Back to the top