summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-01-30 10:31:21 (EST)
committerSteffen Pingel2012-01-30 10:31:21 (EST)
commitea5b03e4b222a5109ab0d29c74c50e191e12cad5 (patch)
tree2b76533b0b77fdb92ad156d2d69813ded2cb8770
parente984dc4cd4ddea99f0916a899ca06743a6729a76 (diff)
downloadorg.eclipse.mylyn.tasks-ea5b03e4b222a5109ab0d29c74c50e191e12cad5.zip
org.eclipse.mylyn.tasks-ea5b03e4b222a5109ab0d29c74c50e191e12cad5.tar.gz
org.eclipse.mylyn.tasks-ea5b03e4b222a5109ab0d29c74c50e191e12cad5.tar.bz2
RESOLVED - bug 370115: attachments section not revealed when node is
selected in outline https://bugs.eclipse.org/bugs/show_bug.cgi?id=370115 Change-Id: Idbb98438ad8731a80be8d914af7b7d4eefb80f7a
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java11
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java2
2 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java
index 8c12d03..e8bf8a8 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorRichTextPart.java
@@ -237,4 +237,15 @@ public class TaskEditorRichTextPart extends AbstractTaskEditorPart {
return (getEditor() != null) ? getEditor().getControl() : null;
}
+ @Override
+ public boolean setFormInput(Object input) {
+ if (input instanceof String && getAttribute() != null) {
+ if (input.equals(getAttribute().getId())) {
+ EditorUtil.focusOn(getTaskEditorPage().getManagedForm().getForm(), getControl());
+ return true;
+ }
+ }
+ return false;
+ }
+
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
index 568f598..965d6f0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
@@ -1328,6 +1328,8 @@ public abstract class AbstractTaskEditorPage extends TaskFormPage implements ISe
// for outline
if (ID_PART_COMMENTS.equals(part.getPartId())) {
EditorUtil.setMarker(part.getControl(), TaskEditorOutlineNode.LABEL_COMMENTS);
+ } else if (ID_PART_ATTACHMENTS.equals(part.getPartId())) {
+ EditorUtil.setMarker(part.getControl(), TaskEditorOutlineNode.LABEL_ATTACHMENTS);
}
}
}