Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2013-03-11 15:32:56 -0400
committerGerrit Code Review @ Eclipse.org2013-05-08 15:58:56 -0400
commitec1c6c9dfe7c3c63c0a55e0b278c57695772eef7 (patch)
tree4cbb372dbe7f6a6fa8a71a9de0859a29a31b59ef /org.eclipse.mylyn.bugzilla.ui
parenta3474b6cc09d546b76aee19a21b003d54f8dd782 (diff)
downloadorg.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.tar.gz
org.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.tar.xz
org.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.zip
391137: Please change the default values when creating a new bug using
Help > Report Bug or Enhancement Change-Id: I2029a5a8f2cf92e9050749460f1843c988758e9a Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=391137
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java14
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties2
3 files changed, 18 insertions, 0 deletions
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 413895be5..a2a86762f 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
@@ -314,6 +314,20 @@ public class BugzillaTaskEditorPage extends AbstractTaskEditorPage {
}
return;
}
+ TaskAttribute targetMilestoneAttribute = getModel().getTaskData()
+ .getRoot()
+ .getMappedAttribute(BugzillaAttribute.TARGET_MILESTONE.getKey());
+ if (targetMilestoneAttribute != null && targetMilestoneAttribute.getValue().length() == 0
+ && getModel().getTaskData().isNew()) {
+ getTaskEditor().setMessage(
+ Messages.BugzillaTaskEditorPage_Please_enter_a_target_milestone_before_submitting,
+ IMessageProvider.ERROR);
+ AbstractTaskEditorPart descriptionPart = getPart(ID_PART_ATTRIBUTES);
+ if (descriptionPart != null) {
+ descriptionPart.setFocus();
+ }
+ return;
+ }
TaskAttribute attributeOperation = getModel().getTaskData()
.getRoot()
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java
index ac61d4cca..1b72b6eb1 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/Messages.java
@@ -99,6 +99,8 @@ public class Messages extends NLS {
public static String BugzillaTaskEditorPage_Proposal_Detail;
+ public static String BugzillaTaskEditorPage_Please_enter_a_target_milestone_before_submitting;
+
public static String BugzillaTaskEditorPage_submit_disabled_please_refresh;
public static String BugzillaTaskEditorPage_submitted_Changes_Details;
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties
index 723c2a3bf..2c2db6035 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/messages.properties
@@ -48,6 +48,8 @@ BugzillaTaskEditorPage_Please_enter_a_short_summary_before_submitting=Please ent
BugzillaTaskEditorPage_Please_select_a_component_before_submitting=Please select a component before submitting
BugzillaTaskEditorPage_Please_enter_a_bugid_for_duplicate_of_before_submitting=Please enter a bugid for \"duplicate of\" before submitting
BugzillaTaskEditorPage_Proposal_Detail=\t{0}\n
+BugzillaTaskEditorPage_Please_enter_a_target_milestone_before_submitting=Please enter a target milestone before submitting
+ using Help > Report Bug or Enhancement
BugzillaTaskEditorPage_submit_disabled_please_refresh=submit disabled, please check Credentials and refresh
BugzillaTaskEditorPage_submitted_Changes_Details=submitted Changes Details

Back to the top