Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-10-27 22:22:22 -0400
committermkersten2005-10-27 22:22:22 -0400
commite8bdf4be00b728910835980cb47978ce6a308fc8 (patch)
tree6f325a48d68ea4a53328d3fae82be4b9943cdca9
parent5805baeddbde3a20894cef1f09d5b28254d5a9b7 (diff)
downloadorg.eclipse.mylyn.tasks-e8bdf4be00b728910835980cb47978ce6a308fc8.tar.gz
org.eclipse.mylyn.tasks-e8bdf4be00b728910835980cb47978ce6a308fc8.tar.xz
org.eclipse.mylyn.tasks-e8bdf4be00b728910835980cb47978ce6a308fc8.zip
Planning game wizard fixes
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerEditorPart.java7
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerWizardPage.java10
2 files changed, 13 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerEditorPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerEditorPart.java
index e23d6c174..f60cfdfc0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerEditorPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerEditorPart.java
@@ -113,7 +113,7 @@ public class MylarTaskPlannerEditorPart extends EditorPart {
createSummarySection(editorComposite, toolkit);
createCompletedSection(editorComposite, toolkit);
- createPlannedTasksSection(editorComposite, toolkit);
+// createPlannedTasksSection(editorComposite, toolkit);
}
@Override
@@ -244,7 +244,10 @@ public class MylarTaskPlannerEditorPart extends EditorPart {
completedTableViewer.setInput(editorInput);
}
- private void createPlannedTasksSection(Composite parent, FormToolkit toolkit) {
+ /**
+ * TODO: make private
+ */
+ public void createPlannedTasksSection(Composite parent, FormToolkit toolkit) {
Section planSection = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR);
planSection.setText("Planned Tasks");
planSection.setLayout(new TableWrapLayout());
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerWizardPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerWizardPage.java
index 328984826..7fb014b0d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerWizardPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/MylarTaskPlannerWizardPage.java
@@ -15,6 +15,7 @@ import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
@@ -26,7 +27,7 @@ import org.eclipse.swt.widgets.Text;
*/
public class MylarTaskPlannerWizardPage extends WizardPage {
- private static final String DEFAULT_DAYS = "7";
+ private static final int DEFAULT_DAYS = 7;
private static final String TITLE = "Mylar Task Planner";
private static final String DESCRIPTION =
"Summarizes task activity and assists planning future tasks.";
@@ -46,10 +47,13 @@ public class MylarTaskPlannerWizardPage extends WizardPage {
container.setLayout(layout);
layout.numColumns = 2;
+ GridData gd = new GridData();
+ gd.widthHint = 50;
+
Label l = new Label(container, SWT.NULL);
l.setText("Number of past days to report on: ");
numDays = new Text(container, SWT.BORDER);
- numDays.setText(DEFAULT_DAYS);
+ numDays.setLayoutData(gd);
numDays.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
try{
@@ -61,6 +65,8 @@ public class MylarTaskPlannerWizardPage extends WizardPage {
}
}
});
+ numDays.setText("" + DEFAULT_DAYS);
+ num = DEFAULT_DAYS;
setControl(container);
}

Back to the top