Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn-feature/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.bugzilla-feature/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.bugzilla.core/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java115
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java20
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java50
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxBugReportContentHandler.java24
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryReportFactoryTest.java6
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaCompareNode.java8
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java6
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java18
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java22
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditorInput.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java8
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/AbstractBugzillaWizardPage.java14
-rw-r--r--org.eclipse.mylyn.help.ui/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.help.ui/doc/new.html11
-rw-r--r--org.eclipse.mylyn.tasks.core/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/BugzillaTaskTest.java8
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskTestUtil.java8
-rw-r--r--org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryReport.java12
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryTaskAttribute.java (renamed from org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryReportAttribute.java)4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractTaskAttributeFactory.java (renamed from org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractAttributeFactory.java)4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AttributeContainer.java16
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/BugzillaAttributeFactory.java7
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/IBugzillaBug.java150
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/OfflineTaskManager.java (renamed from org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/OfflineReportsFile.java)39
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/RepositoryReport.java151
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/RepositoryTaskAttribute.java (renamed from org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/BugzillaReportAttribute.java)8
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/MylarTaskListPlugin.java14
37 files changed, 314 insertions, 452 deletions
diff --git a/org.eclipse.mylyn-feature/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn-feature/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..ea5169853
--- /dev/null
+++ b/org.eclipse.mylyn-feature/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:29:46 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.bugzilla-feature/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.bugzilla-feature/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..0f7b2e16f
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla-feature/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:30:21 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.bugzilla.core/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.bugzilla.core/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..bbebc5a04
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.core/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:30:24 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java
new file mode 100644
index 000000000..1a3133ecc
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportElement.java
@@ -0,0 +1,115 @@
+/*******************************************************************************
+ * Copyright (c) 2004 - 2006 University Of British Columbia and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * University Of British Columbia - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylar.internal.bugzilla.core;
+
+/**
+ * Bugzilla XML element enum. Each enum has the attribute name
+ * and associated xml element tag name.
+ *
+ * @author Rob Elves
+ */
+public enum BugzillaReportElement {
+ // Format: ENUM ( "pretty name", "xml key", <hidden: true/false>, <readonly: true/false>)
+ // Hidden elements are not automatically displayed in ui
+ ASSIGNED_TO ("Assigned to:", "assigned_to", false, true),
+ ATTACHID ("attachid", "attachid"),
+ ATTACHMENT ("attachment", "attachment"),
+ BLOCKED ("Bug blocks:", "blocked"),
+ BUG ("bug","bug", true),
+ BUG_FILE_LOC ("URL:", "bug_file_loc", true),
+ BUG_ID ("Bug:", "bug_id", true),
+ BUG_SEVERITY ("Severity:", "bug_severity", false),
+ BUG_STATUS ("Status:", "bug_status", false, true),
+ BUG_WHEN ("bug_when", "bug_when", true, true),
+ BUGZILLA ("bugzilla", "bugzilla", true),
+ CC ("CC:", "cc", true, true),
+ CCLIST_ACCESSIBLE ("cclist_accessible", "cclist_accessible", true),
+ CLASSIFICATION ("Classification:", "classification", true),
+ CLASSIFICATION_ID ("Classification ID:", "classification_id", true),
+ COMPONENT ("Component:", "component", false),
+ CREATION_TS ("Creation date:", "creation_ts", true),
+ CTYPE ("Content Type", "ctype"),
+ DATA ("data", "data"),
+ DATE ("Date", "date"),
+ DELTA_TS ("Last Modification", "delta_ts", true),
+ DEPENDSON ("Bug depends on:", "dependson"),
+ DESC ("desc", "desc"),
+ EVERCONFIRMED ("everconfirmed", "everconfirmed", true),
+ FILENAME ("filename", "filename"),
+ IS_OBSOLETE ("Obsolete", "isobsolete", true),
+ KEYWORDS ("Keywords:", "keywords", true),
+ LONG_DESC ("Description:", "long_desc"),
+ LONGDESCLENGTH ("Number of comments", "longdesclength", true),
+ NEWCC ("Add CC:", "newcc", true),
+ OP_SYS ("OS:", "op_sys", false),
+ PRIORITY ("Priority:", "priority", false),
+ PRODUCT ("Product:", "product", false),
+ REP_PLATFORM ("Platform:", "rep_platform", false),
+ REPORTER ("Reporter:", "reporter", false, true),
+ REPORTER_ACCESSIBLE ("reporter_accessible", "reporter_accessible", true),
+ RESOLUTION ("Resolution:", "resolution", false, true), // Exiting bug field, new cc
+ SHORT_DESC ("Summary:", "short_desc", true),
+ TARGET_MILESTONE ("Target milestone:", "target_milestone", false),
+ THETEXT ("thetext", "thetext"),
+ TYPE ("type", "type"),
+ UNKNOWN ("UNKNOWN", "UNKNOWN"),
+ VERSION ("Version:", "version", false),
+ VOTES ("Votes:", "votes", false, true),
+ WHO ("who", "who"),
+ QA_CONTACT("QA Contact", "qa_contact", false, false),
+ ADDSELFCC ("Add self to CC", "addselfcc", true, false),
+ // Used by search engine
+ LI ("used by search engine", "li", true),
+ ID ("used by search engine", "id", true),
+ SHORT_SHORT_DESC ("used by search engine", "short_short_desc", false),
+ SEQ ("used by search engine", "seq", false),
+ RESULT ("used by search engine", "result", false),
+ RDF ("used by search engine", "rdf", false),
+ INSTALLATION ("used by search engine", "installation", false),
+ BUGS ("used by search engine", "bugs", false);
+
+ private final boolean isHidden;
+ private final boolean isReadOnly;
+ private final String keyString;
+ private final String prettyName;
+
+ BugzillaReportElement(String prettyName, String fieldName) {
+ this(prettyName, fieldName, false, false);
+ }
+
+ BugzillaReportElement(String prettyName, String fieldName, boolean hidden) {
+ this(prettyName, fieldName, hidden, false);
+ }
+
+ BugzillaReportElement(String prettyName, String fieldName, boolean hidden, boolean readonly) {
+ this.prettyName = prettyName;
+ this.keyString = fieldName;
+ this.isHidden = hidden;
+ this.isReadOnly = readonly;
+ }
+
+ public String getKeyString() {
+ return keyString;
+ }
+
+ public boolean isHidden() {
+ return isHidden;
+ }
+
+ public boolean isReadOnly() {
+ return isReadOnly;
+ }
+
+ public String toString() {
+ return prettyName;
+ }
+}
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java
index 7692563ac..a75307582 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java
@@ -34,7 +34,7 @@ import javax.security.auth.login.LoginException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.mylar.internal.bugzilla.core.HtmlStreamTokenizer.Token;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.internal.tasklist.Operation;
@@ -163,9 +163,9 @@ public class BugzillaReportSubmitForm {
// go through all of the attributes and add them to
// the bug post
- Iterator<AbstractRepositoryReportAttribute> itr = model.getAttributes().iterator();
+ Iterator<AbstractRepositoryTaskAttribute> itr = model.getAttributes().iterator();
while (itr.hasNext()) {
- AbstractRepositoryReportAttribute a = itr.next();
+ AbstractRepositoryTaskAttribute a = itr.next();
if (a != null && a.getID() != null && a.getID().compareTo("") != 0) {
// String key = a.getName();
// System.err.println(">>> "+key);
@@ -222,8 +222,8 @@ public class BugzillaReportSubmitForm {
setConnectionsSettings(bugReportPostHandler, repositoryUrl, userName, password, proxySettings, PROCESS_BUG_CGI);
// go through all of the attributes and add them to the bug post
- for (Iterator<AbstractRepositoryReportAttribute> it = bug.getAttributes().iterator(); it.hasNext();) {
- AbstractRepositoryReportAttribute a = it.next();
+ for (Iterator<AbstractRepositoryTaskAttribute> it = bug.getAttributes().iterator(); it.hasNext();) {
+ AbstractRepositoryTaskAttribute a = it.next();
if (a.getID().equals(BugzillaReportElement.CC.getKeyString())
|| a.getID().equals(BugzillaReportElement.REPORTER.getKeyString())
|| a.getID().equals(BugzillaReportElement.ASSIGNED_TO.getKeyString())
@@ -548,9 +548,9 @@ public class BugzillaReportSubmitForm {
// * @author Wesley Coelho
// */
// private static void setDefaultCCValue(BugzillaReport bug, String userName) {
-// // AbstractRepositoryReportAttribute newCCattr =
+// // AbstractRepositoryTaskAttribute newCCattr =
// // bug.getAttributeForKnobName(KEY_NEWCC);
-// AbstractRepositoryReportAttribute owner = bug.getAttribute(BugzillaReportElement.ASSIGNED_TO);
+// AbstractRepositoryTaskAttribute owner = bug.getAttribute(BugzillaReportElement.ASSIGNED_TO);
//
// // Don't add the cc if the user is the bug owner
// if (userName == null || (owner != null && owner.getValue().indexOf(userName) != -1)) {
@@ -559,13 +559,13 @@ public class BugzillaReportSubmitForm {
// return;
// }
// // Don't add cc if already there
-// AbstractRepositoryReportAttribute ccAttribute = bug.getAttribute(BugzillaReportElement.CC);
+// AbstractRepositoryTaskAttribute ccAttribute = bug.getAttribute(BugzillaReportElement.CC);
// if (ccAttribute != null && ccAttribute.getValues().contains(userName)) {
// return;
// }
-// AbstractRepositoryReportAttribute newCCattr = bug.getAttribute(BugzillaReportElement.NEWCC);
+// AbstractRepositoryTaskAttribute newCCattr = bug.getAttribute(BugzillaReportElement.NEWCC);
// if (newCCattr == null) {
-// newCCattr = new BugzillaReportAttribute(BugzillaReportElement.NEWCC);
+// newCCattr = new RepositoryTaskAttribute(BugzillaReportElement.NEWCC);
// bug.addAttribute(BugzillaReportElement.NEWCC, newCCattr);
// }
// // Add the user to the cc list
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java
index 59c905c7c..bbd554602 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java
@@ -51,9 +51,9 @@ import org.eclipse.mylar.internal.bugzilla.core.HtmlStreamTokenizer.Token;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_OPERATION;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_REPORT_STATUS;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_RESOLUTION;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
-import org.eclipse.mylar.internal.tasklist.BugzillaReportAttribute;
+import org.eclipse.mylar.internal.tasklist.RepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.internal.tasklist.Operation;
@@ -251,7 +251,7 @@ public class BugzillaRepositoryUtil {
newReport.removeAllAttributes();
- AbstractRepositoryReportAttribute a = new BugzillaReportAttribute(BugzillaReportElement.PRODUCT);
+ AbstractRepositoryTaskAttribute a = new RepositoryTaskAttribute(BugzillaReportElement.PRODUCT);
List<String> optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings,
userName, password, characterEncoding).getProducts();
Collections.sort(optionValues);
@@ -262,7 +262,7 @@ public class BugzillaRepositoryUtil {
newReport.addAttribute(BugzillaReportElement.PRODUCT, a);
// attributes.put(a.getName(), a);
- a = new BugzillaReportAttribute(BugzillaReportElement.BUG_STATUS);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.BUG_STATUS);
optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings, userName,
password, characterEncoding).getStatusValues();
for (String option : optionValues) {
@@ -272,7 +272,7 @@ public class BugzillaRepositoryUtil {
newReport.addAttribute(BugzillaReportElement.BUG_STATUS, a);
// attributes.put(a.getName(), a);
- a = new BugzillaReportAttribute(BugzillaReportElement.VERSION);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.VERSION);
optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings, userName,
password, characterEncoding).getVersions(newReport.getProduct());
Collections.sort(optionValues);
@@ -285,7 +285,7 @@ public class BugzillaRepositoryUtil {
newReport.addAttribute(BugzillaReportElement.VERSION, a);
// attributes.put(a.getName(), a);
- a = new BugzillaReportAttribute(BugzillaReportElement.COMPONENT);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.COMPONENT);
optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings, userName,
password, characterEncoding).getComponents(newReport.getProduct());
Collections.sort(optionValues);
@@ -294,7 +294,7 @@ public class BugzillaRepositoryUtil {
}
newReport.addAttribute(BugzillaReportElement.COMPONENT, a);
- a = new BugzillaReportAttribute(BugzillaReportElement.REP_PLATFORM);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.REP_PLATFORM);
optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings, userName,
password, characterEncoding).getPlatforms();
Collections.sort(optionValues);
@@ -304,7 +304,7 @@ public class BugzillaRepositoryUtil {
newReport.addAttribute(BugzillaReportElement.REP_PLATFORM, a);
// attributes.put(a.getName(), a);
- a = new BugzillaReportAttribute(BugzillaReportElement.OP_SYS);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.OP_SYS);
optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings, userName,
password, characterEncoding).getOSs();
for (String option : optionValues) {
@@ -313,7 +313,7 @@ public class BugzillaRepositoryUtil {
newReport.addAttribute(BugzillaReportElement.OP_SYS, a);
// attributes.put(a.getName(), a);
- a = new BugzillaReportAttribute(BugzillaReportElement.PRIORITY);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.PRIORITY);
optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings, userName,
password, characterEncoding).getPriorities();
for (String option : optionValues) {
@@ -323,7 +323,7 @@ public class BugzillaRepositoryUtil {
newReport.addAttribute(BugzillaReportElement.PRIORITY, a);
// attributes.put(a.getName(), a);
- a = new BugzillaReportAttribute(BugzillaReportElement.BUG_SEVERITY);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.BUG_SEVERITY);
optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings, userName,
password, characterEncoding).getSeverities();
for (String option : optionValues) {
@@ -334,7 +334,7 @@ public class BugzillaRepositoryUtil {
// attributes.put(a.getName(), a);
// a = new
- // BugzillaReportAttribute(BugzillaReportElement.TARGET_MILESTONE);
+ // RepositoryTaskAttribute(BugzillaReportElement.TARGET_MILESTONE);
// optionValues =
// BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getTargetMilestones(
// newReport.getProduct());
@@ -347,12 +347,12 @@ public class BugzillaRepositoryUtil {
// newReport.addAttribute(BugzillaReportElement.TARGET_MILESTONE, a);
// }
- a = new BugzillaReportAttribute(BugzillaReportElement.ASSIGNED_TO);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.ASSIGNED_TO);
a.setValue("");
newReport.addAttribute(BugzillaReportElement.ASSIGNED_TO, a);
// attributes.put(a.getName(), a);
- a = new BugzillaReportAttribute(BugzillaReportElement.BUG_FILE_LOC);
+ a = new RepositoryTaskAttribute(BugzillaReportElement.BUG_FILE_LOC);
a.setValue("http://");
a.setHidden(false);
newReport.addAttribute(BugzillaReportElement.BUG_FILE_LOC, a);
@@ -384,10 +384,10 @@ public class BugzillaRepositoryUtil {
// // //NOT USED BugReportElement.LONG_DESC
// // };
//
- // // HashMap<String, AbstractRepositoryReportAttribute> attributes = new
- // // LinkedHashMap<String, AbstractRepositoryReportAttribute>();
+ // // HashMap<String, AbstractRepositoryTaskAttribute> attributes = new
+ // // LinkedHashMap<String, AbstractRepositoryTaskAttribute>();
// List<String> optionValues;
- // AbstractRepositoryReportAttribute a =
+ // AbstractRepositoryTaskAttribute a =
// existingReport.getAttribute(BugzillaReportElement.PRODUCT);
// if (a != null) {
// optionValues =
@@ -482,10 +482,10 @@ public class BugzillaRepositoryUtil {
// // existingReport.addAttribute(BugzillaReportElement.TARGET_MILESTONE,
// // a);
//
- // // a = new BugzillaReportAttribute(BugzillaReportElement.ASSIGNED_TO);
+ // // a = new RepositoryTaskAttribute(BugzillaReportElement.ASSIGNED_TO);
// // existingReport.addAttribute(BugzillaReportElement.ASSIGNED_TO, a);
// //
- // // a = new BugzillaReportAttribute(BugzillaReportElement.BUG_FILE_LOC);
+ // // a = new RepositoryTaskAttribute(BugzillaReportElement.BUG_FILE_LOC);
// // existingReport.addAttribute(BugzillaReportElement.BUG_FILE_LOC, a);
//
// // Add fields that may not be present in xml but required for ui and
@@ -498,24 +498,24 @@ public class BugzillaRepositoryUtil {
// if (a == null) {
// existingReport
// .addAttribute(BugzillaReportElement.CC, new
- // BugzillaReportAttribute(BugzillaReportElement.CC));
+ // RepositoryTaskAttribute(BugzillaReportElement.CC));
// }
// a = existingReport.getAttribute(BugzillaReportElement.RESOLUTION);
// if (a == null) {
// existingReport.addAttribute(BugzillaReportElement.RESOLUTION, new
- // BugzillaReportAttribute(
+ // RepositoryTaskAttribute(
// BugzillaReportElement.RESOLUTION));
// }
// a = existingReport.getAttribute(BugzillaReportElement.BUG_FILE_LOC);
// if (a == null) {
// existingReport.addAttribute(BugzillaReportElement.BUG_FILE_LOC, new
- // BugzillaReportAttribute(
+ // RepositoryTaskAttribute(
// BugzillaReportElement.BUG_FILE_LOC));
// }
// a = existingReport.getAttribute(BugzillaReportElement.NEWCC);
// if (a == null) {
// existingReport.addAttribute(BugzillaReportElement.NEWCC, new
- // BugzillaReportAttribute(
+ // RepositoryTaskAttribute(
// BugzillaReportElement.NEWCC));
// }
//
@@ -523,7 +523,7 @@ public class BugzillaRepositoryUtil {
// // bugzilla
// a = existingReport.getAttribute(BugzillaReportElement.LONGDESCLENGTH);
// if (a == null) {
- // a = new BugzillaReportAttribute(BugzillaReportElement.LONGDESCLENGTH);
+ // a = new RepositoryTaskAttribute(BugzillaReportElement.LONGDESCLENGTH);
// a.setValue("" + existingReport.getComments().size());
// existingReport.addAttribute(BugzillaReportElement.LONGDESCLENGTH, a);
// }
@@ -543,7 +543,7 @@ public class BugzillaRepositoryUtil {
BugzillaReportElement.NEWCC, BugzillaReportElement.KEYWORDS };
for (BugzillaReportElement element : reportElements) {
- AbstractRepositoryReportAttribute reportAttribute = new BugzillaReportAttribute(element);
+ AbstractRepositoryTaskAttribute reportAttribute = new RepositoryTaskAttribute(element);
existingReport.addAttribute(element, reportAttribute);
}
}
@@ -551,7 +551,7 @@ public class BugzillaRepositoryUtil {
private static void updateBugAttributeOptions(String repositoryUrl, Proxy proxySettings, String userName,
String password, RepositoryReport existingReport, String characterEncoding) throws IOException, KeyManagementException, LoginException, NoSuchAlgorithmException {
String product = existingReport.getAttributeValue(BugzillaReportElement.PRODUCT);
- for (AbstractRepositoryReportAttribute attribute : existingReport.getAttributes()) {
+ for (AbstractRepositoryTaskAttribute attribute : existingReport.getAttributes()) {
BugzillaReportElement element = BugzillaReportElement.valueOf(attribute.getID().trim().toUpperCase());
attribute.clearOptions();
List<String> optionValues = BugzillaPlugin.getDefault().getRepositoryConfiguration(repositoryUrl, proxySettings,
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxBugReportContentHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxBugReportContentHandler.java
index 4a0df57af..29cf37bb2 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxBugReportContentHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxBugReportContentHandler.java
@@ -14,9 +14,9 @@ package org.eclipse.mylar.internal.bugzilla.core;
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
-import org.eclipse.mylar.internal.tasklist.BugzillaReportAttribute;
+import org.eclipse.mylar.internal.tasklist.RepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.internal.tasklist.Comment;
import org.eclipse.mylar.internal.tasklist.ReportAttachment;
@@ -99,7 +99,7 @@ public class SaxBugReportContentHandler extends DefaultHandler {
case ATTACHMENT:
attachment = new ReportAttachment();
if (attributes != null && (attributes.getValue(BugzillaReportElement.IS_OBSOLETE.getKeyString()) != null)) {
- attachment.addAttribute(BugzillaReportElement.IS_OBSOLETE, new BugzillaReportAttribute(
+ attachment.addAttribute(BugzillaReportElement.IS_OBSOLETE, new RepositoryTaskAttribute(
BugzillaReportElement.IS_OBSOLETE));
}
break;
@@ -129,9 +129,9 @@ public class SaxBugReportContentHandler extends DefaultHandler {
errorMessage = "Bug id from server did not match requested id.";
}
- AbstractRepositoryReportAttribute attr = report.getAttribute(tag);
+ AbstractRepositoryTaskAttribute attr = report.getAttribute(tag);
if (attr == null) {
- attr = new BugzillaReportAttribute(tag);
+ attr = new RepositoryTaskAttribute(tag);
report.addAttribute(tag, attr);
}
attr.setValue(characters.toString());
@@ -142,7 +142,7 @@ public class SaxBugReportContentHandler extends DefaultHandler {
case WHO:
case BUG_WHEN:
if (comment != null) {
- BugzillaReportAttribute attr = new BugzillaReportAttribute(tag);
+ RepositoryTaskAttribute attr = new RepositoryTaskAttribute(tag);
attr.setValue(characters.toString());
// System.err.println(">>> "+comment.getNumber()+"
// "+characters.toString());
@@ -151,7 +151,7 @@ public class SaxBugReportContentHandler extends DefaultHandler {
break;
case THETEXT:
if (comment != null) {
- BugzillaReportAttribute attr = new BugzillaReportAttribute(tag);
+ RepositoryTaskAttribute attr = new RepositoryTaskAttribute(tag);
attr.setValue(characters.toString());
// System.err.println(">>> "+comment.getNumber()+"
// "+characters.toString());
@@ -175,7 +175,7 @@ public class SaxBugReportContentHandler extends DefaultHandler {
case CTYPE:
case TYPE:
if (attachment != null) {
- BugzillaReportAttribute attr = new BugzillaReportAttribute(tag);
+ RepositoryTaskAttribute attr = new RepositoryTaskAttribute(tag);
attr.setValue(characters.toString());
attachment.addAttribute(tag, attr);
}
@@ -202,10 +202,10 @@ public class SaxBugReportContentHandler extends DefaultHandler {
case BUG:
// Reached end of bug. Need to set LONGDESCLENGTH to number of
// comments
- AbstractRepositoryReportAttribute numCommentsAttribute = report
+ AbstractRepositoryTaskAttribute numCommentsAttribute = report
.getAttribute(BugzillaReportElement.LONGDESCLENGTH);
if (numCommentsAttribute == null) {
- numCommentsAttribute = new BugzillaReportAttribute(BugzillaReportElement.LONGDESCLENGTH);
+ numCommentsAttribute = new RepositoryTaskAttribute(BugzillaReportElement.LONGDESCLENGTH);
numCommentsAttribute.setValue("" + report.getComments().size());
report.addAttribute(BugzillaReportElement.LONGDESCLENGTH, numCommentsAttribute);
} else {
@@ -223,11 +223,11 @@ public class SaxBugReportContentHandler extends DefaultHandler {
// All others added as report attribute
default:
- AbstractRepositoryReportAttribute attribute = report.getAttribute(tag);
+ AbstractRepositoryTaskAttribute attribute = report.getAttribute(tag);
if (attribute == null) {
// System.err.println(">>> Undeclared attribute added: " +
// tag.toString()+" value: "+characters.toString());
- attribute = new BugzillaReportAttribute(tag);
+ attribute = new RepositoryTaskAttribute(tag);
attribute.setValue(characters.toString());
report.addAttribute(tag, attribute);
} else {
diff --git a/org.eclipse.mylyn.bugzilla.tests/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.bugzilla.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..8fb3ac0b0
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:30:27 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
index 6271f8736..ef335b33f 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
@@ -194,8 +194,8 @@ public class BugzillaRepositoryConnectorTest extends TestCase {
// go through all of the attributes and update the main values to the
// new ones
-// for (Iterator<AbstractRepositoryReportAttribute> it = bug.getAttributes().iterator(); it.hasNext();) {
-// AbstractRepositoryReportAttribute attribute = it.next();
+// for (Iterator<AbstractRepositoryTaskAttribute> it = bug.getAttributes().iterator(); it.hasNext();) {
+// AbstractRepositoryTaskAttribute attribute = it.next();
// if (attribute.getValue() != null && attribute.getValue().compareTo(attribute.getValue()) != 0) {
// bug.setHasChanged(true);
// }
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryReportFactoryTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryReportFactoryTest.java
index d4e839602..7620050f4 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryReportFactoryTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryReportFactoryTest.java
@@ -21,7 +21,7 @@ import org.eclipse.mylar.internal.bugzilla.core.BugzillaPlugin;
import org.eclipse.mylar.internal.bugzilla.core.BugzillaRepositoryUtil;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylar.internal.bugzilla.core.RepositoryReportFactory;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.provisional.tasklist.TaskRepository;
@@ -151,7 +151,7 @@ public class RepositoryReportFactoryTest extends TestCase {
assertEquals("2006-03-02 18:13", report.getAttribute(BugzillaReportElement.CREATION_TS).getValue());
assertEquals("2006-05-03 13:06:11", report.getAttribute(BugzillaReportElement.DELTA_TS).getValue());
assertEquals("---", report.getAttribute(BugzillaReportElement.TARGET_MILESTONE).getValue());
- AbstractRepositoryReportAttribute attribute = report.getAttribute(BugzillaReportElement.BLOCKED);
+ AbstractRepositoryTaskAttribute attribute = report.getAttribute(BugzillaReportElement.BLOCKED);
assertEquals(2, attribute.getValues().size());
assertEquals("2", attribute.getValues().get(0));
assertEquals("9", attribute.getValues().get(1));
@@ -194,7 +194,7 @@ public class RepositoryReportFactoryTest extends TestCase {
assertEquals("2002-10-07 09:32", report.getAttribute(BugzillaReportElement.CREATION_TS).getValue());
assertEquals("2006-02-03 12:03:57", report.getAttribute(BugzillaReportElement.DELTA_TS).getValue());
assertEquals("core, performance, ui", report.getAttribute(BugzillaReportElement.KEYWORDS).getValue());
- // AbstractRepositoryReportAttribute attribute =
+ // AbstractRepositoryTaskAttribute attribute =
// report.getAttribute(BugzillaReportElement.CC);
// assertEquals(30, attribute.getValues().size());
// assertEquals("relves@cs.ubc.ca", attribute.getValues().get(0));
diff --git a/org.eclipse.mylyn.bugzilla.ui/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.bugzilla.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..e9c914fef
--- /dev/null
+++ b/org.eclipse.mylyn.bugzilla.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:30:30 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaCompareNode.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaCompareNode.java
index 60f3c81ad..6104c3c7c 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaCompareNode.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaCompareNode.java
@@ -20,7 +20,7 @@ import org.eclipse.compare.IStreamContentAccessor;
import org.eclipse.compare.ITypedElement;
import org.eclipse.compare.structuremergeviewer.IStructureComparator;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.internal.tasklist.Comment;
@@ -195,7 +195,7 @@ public class BugzillaCompareNode implements IStreamContentAccessor, IStructureCo
Image attributeImage = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ELEMENT);
BugzillaCompareNode attributes = new BugzillaCompareNode("Attributes", null, attributeImage);
- for (AbstractRepositoryReportAttribute attribute : bug.getAttributes()) {
+ for (AbstractRepositoryTaskAttribute attribute : bug.getAttributes()) {
BugzillaCompareNode child = new BugzillaCompareNode(attribute.toString(), attribute.getValue(), defaultImage);
attributes.addChild(child);
}
@@ -244,8 +244,8 @@ public class BugzillaCompareNode implements IStreamContentAccessor, IStructureCo
//
// Image attributeImage = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ELEMENT);
// BugzillaCompareNode attributes = new BugzillaCompareNode("Attributes", null, attributeImage);
-// for (Iterator<AbstractRepositoryReportAttribute> iter = bug.getAttributes().iterator(); iter.hasNext();) {
-// AbstractRepositoryReportAttribute attribute = iter.next();
+// for (Iterator<AbstractRepositoryTaskAttribute> iter = bug.getAttributes().iterator(); iter.hasNext();) {
+// AbstractRepositoryTaskAttribute attribute = iter.next();
// if (attribute.getName().compareTo("delta_ts") == 0 || attribute.getName().compareTo("Last Modified") == 0
// || attribute.getName().compareTo("longdesclength") == 0)
// continue;
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java
index fd6a9e12d..7b4ace547 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaUiPlugin.java
@@ -352,7 +352,7 @@ public class BugzillaUiPlugin extends AbstractUIPlugin {
// IPath offlineReportsPath = getOfflineReportsFilePath();
//
// try {
-// offlineReportsFile = new OfflineReportsFile(offlineReportsPath.toFile(),
+// offlineReportsFile = new OfflineTaskManager(offlineReportsPath.toFile(),
// true);
// } catch (Exception e) {
// MylarStatusHandler.log(e,
@@ -361,7 +361,7 @@ public class BugzillaUiPlugin extends AbstractUIPlugin {
// offlineReportsPath.toFile().delete();
// // if (offlineReportsPath.toFile().delete()) {
// try {
-// offlineReportsFile = new OfflineReportsFile(offlineReportsPath.toFile(),
+// offlineReportsFile = new OfflineTaskManager(offlineReportsPath.toFile(),
// false);
// } catch (Exception e1) {
// MylarStatusHandler.fail(e, "could not reset offline Bugzilla reports
@@ -384,7 +384,7 @@ public class BugzillaUiPlugin extends AbstractUIPlugin {
// return configFile;
// }
//
-// public OfflineReportsFile getOfflineReportsFile() {
+// public OfflineTaskManager getOfflineReportsFile() {
// if (offlineReportsFile == null) {
// MylarStatusHandler.fail(null, "Offline reports file not created, try
// restarting.", true);
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
index 96045bf1b..2cb08b450 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
@@ -52,7 +52,7 @@ import org.eclipse.mylar.internal.bugzilla.ui.IBugzillaReportSelection;
import org.eclipse.mylar.internal.bugzilla.ui.tasklist.BugzillaRepositoryConnector;
import org.eclipse.mylar.internal.core.util.MylarStatusHandler;
import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReport;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.internal.tasklist.Comment;
import org.eclipse.mylar.internal.tasklist.ReportAttachment;
@@ -283,7 +283,7 @@ public abstract class AbstractBugEditor extends EditorPart {
protected List<ISelectionChangedListener> selectionChangedListeners = new ArrayList<ISelectionChangedListener>();
- protected HashMap<CCombo, AbstractRepositoryReportAttribute> comboListenerMap = new HashMap<CCombo, AbstractRepositoryReportAttribute>();
+ protected HashMap<CCombo, AbstractRepositoryTaskAttribute> comboListenerMap = new HashMap<CCombo, AbstractRepositoryTaskAttribute>();
private IBugzillaReportSelection lastSelected = null;
@@ -335,7 +335,7 @@ public abstract class AbstractBugEditor extends EditorPart {
if (comboListenerMap.containsKey(combo)) {
if (combo.getSelectionIndex() > -1) {
String sel = combo.getItem(combo.getSelectionIndex());
- AbstractRepositoryReportAttribute attribute = comboListenerMap.get(combo);
+ AbstractRepositoryTaskAttribute attribute = comboListenerMap.get(combo);
if (sel != null && !(sel.equals(attribute.getValue()))) {
attribute.setValue(sel);
for (IBugzillaAttributeListener client : attributesListeners) {
@@ -599,9 +599,9 @@ public abstract class AbstractBugEditor extends EditorPart {
// // String ccValue = null;
//
// // Populate Attributes
- // for (Iterator<AbstractRepositoryReportAttribute> it =
+ // for (Iterator<AbstractRepositoryTaskAttribute> it =
// getReport().getAttributes().iterator(); it.hasNext();) {
- // AbstractRepositoryReportAttribute attribute = it.next();
+ // AbstractRepositoryTaskAttribute attribute = it.next();
// String key = attribute.getID();
// String name = attribute.getName();
// String value = checkText(attribute.getValue());
@@ -815,7 +815,7 @@ public abstract class AbstractBugEditor extends EditorPart {
// assignedTo.addListener(SWT.KeyUp, new Listener() {
// public void handleEvent(Event event) {
// String sel = assignedTo.getText();
- // AbstractRepositoryReportAttribute a = getReport().getAttribute(
+ // AbstractRepositoryTaskAttribute a = getReport().getAttribute(
// BugzillaReportElement.ASSIGNED_TO);
// if (!(a.getValue().equals(sel))) {
// a.setValue(sel);
@@ -951,7 +951,7 @@ public abstract class AbstractBugEditor extends EditorPart {
int currentCol = 1;
- for (AbstractRepositoryReportAttribute attribute : getReport().getAttributes()) {
+ for (AbstractRepositoryTaskAttribute attribute : getReport().getAttributes()) {
// String key = attribute.getID();
String name = attribute.getName();
@@ -1014,7 +1014,7 @@ public abstract class AbstractBugEditor extends EditorPart {
text.addListener(SWT.KeyUp, new Listener() {
public void handleEvent(Event event) {
String sel = text.getText();
- AbstractRepositoryReportAttribute a = (AbstractRepositoryReportAttribute) text.getData();
+ AbstractRepositoryTaskAttribute a = (AbstractRepositoryTaskAttribute) text.getData();
if (!(a.getValue().equals(sel))) {
a.setValue(sel);
changeDirtyStatus(true);
@@ -1095,7 +1095,7 @@ public abstract class AbstractBugEditor extends EditorPart {
urlText.addListener(SWT.KeyUp, new Listener() {
public void handleEvent(Event event) {
String sel = urlText.getText();
- AbstractRepositoryReportAttribute a = getReport().getAttribute(BugzillaReportElement.BUG_FILE_LOC);
+ AbstractRepositoryTaskAttribute a = getReport().getAttribute(BugzillaReportElement.BUG_FILE_LOC);
if (!(a.getValue().equals(sel))) {
a.setValue(sel);
changeDirtyStatus(true);
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
index b939cd819..160ac445b 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
@@ -43,8 +43,8 @@ import org.eclipse.mylar.internal.bugzilla.core.BugzillaRepositoryUtil;
import org.eclipse.mylar.internal.bugzilla.ui.BugzillaCompareInput;
import org.eclipse.mylar.internal.bugzilla.ui.BugzillaUiPlugin;
import org.eclipse.mylar.internal.bugzilla.ui.tasklist.BugzillaRepositoryConnector;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
-import org.eclipse.mylar.internal.tasklist.BugzillaReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
+import org.eclipse.mylar.internal.tasklist.RepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.internal.tasklist.Comment;
import org.eclipse.mylar.internal.tasklist.Operation;
@@ -662,20 +662,20 @@ public class ExistingBugEditor extends AbstractBugEditor {
// if they aren't already on the cc list create an add self check box
- AbstractRepositoryReportAttribute owner = bug.getAttribute(BugzillaReportElement.ASSIGNED_TO);
+ AbstractRepositoryTaskAttribute owner = bug.getAttribute(BugzillaReportElement.ASSIGNED_TO);
// Don't add addselfcc check box if the user is the bug owner
if (owner != null && owner.getValue().indexOf(repository.getUserName()) != -1) {
return;
}
// Don't add addselfcc if already there
- AbstractRepositoryReportAttribute ccAttribute = bug.getAttribute(BugzillaReportElement.CC);
+ AbstractRepositoryTaskAttribute ccAttribute = bug.getAttribute(BugzillaReportElement.CC);
if (ccAttribute != null && ccAttribute.getValues().contains(repository.getUserName())) {
return;
}
- AbstractRepositoryReportAttribute addselfcc = bug.getAttribute(BugzillaReportElement.ADDSELFCC);
+ AbstractRepositoryTaskAttribute addselfcc = bug.getAttribute(BugzillaReportElement.ADDSELFCC);
if (addselfcc == null) {
- addselfcc = new BugzillaReportAttribute(BugzillaReportElement.ADDSELFCC);
+ addselfcc = new RepositoryTaskAttribute(BugzillaReportElement.ADDSELFCC);
bug.addAttribute(BugzillaReportElement.ADDSELFCC, addselfcc);
}
@@ -829,9 +829,9 @@ public class ExistingBugEditor extends AbstractBugEditor {
bug.setHasChanged(true);
// go through all of the attributes and update the main values to the
// new ones
- // for (Iterator<AbstractRepositoryReportAttribute> it =
+ // for (Iterator<AbstractRepositoryTaskAttribute> it =
// bug.getAttributes().iterator(); it.hasNext();) {
- // AbstractRepositoryReportAttribute a = it.next();
+ // AbstractRepositoryTaskAttribute a = it.next();
// if (a.getNewValue() != null &&
// a.getNewValue().compareTo(a.getValue()) != 0) {
// bug.setHasChanged(true);
@@ -857,9 +857,9 @@ public class ExistingBugEditor extends AbstractBugEditor {
// go through all of the attributes and restore the new values to the
// main ones
- // for (Iterator<AbstractRepositoryReportAttribute> it =
+ // for (Iterator<AbstractRepositoryTaskAttribute> it =
// bug.getAttributes().iterator(); it.hasNext();) {
- // AbstractRepositoryReportAttribute a = it.next();
+ // AbstractRepositoryTaskAttribute a = it.next();
// a.setNewValue(a.getValue());
// }
@@ -1103,7 +1103,7 @@ public class ExistingBugEditor extends AbstractBugEditor {
@Override
public void handleSummaryEvent() {
String sel = summaryText.getText();
- AbstractRepositoryReportAttribute a = getReport().getAttribute(BugzillaReportElement.SHORT_DESC);
+ AbstractRepositoryTaskAttribute a = getReport().getAttribute(BugzillaReportElement.SHORT_DESC);
if (!(a.getValue().equals(sel))) {
a.setValue(sel);
changeDirtyStatus(true);
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditorInput.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditorInput.java
index e1fe958ae..e3cf9f18e 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditorInput.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditorInput.java
@@ -15,7 +15,7 @@ import java.net.Proxy;
import java.security.GeneralSecurityException;
import org.eclipse.mylar.internal.bugzilla.core.BugzillaRepositoryUtil;
-import org.eclipse.mylar.internal.tasklist.OfflineReportsFile;
+import org.eclipse.mylar.internal.tasklist.OfflineTaskManager;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
import org.eclipse.mylar.provisional.tasklist.MylarTaskListPlugin;
import org.eclipse.mylar.provisional.tasklist.TaskRepository;
@@ -86,7 +86,7 @@ public class ExistingBugEditorInput extends AbstractBugEditorInput {
private RepositoryReport getCurrentBug(TaskRepository repository, Proxy proxySettings, int id)
throws IOException, GeneralSecurityException {
// Look among the offline reports for a bug with the given id.
- OfflineReportsFile reportsFile = MylarTaskListPlugin.getDefault().getOfflineReportsFile();
+ OfflineTaskManager reportsFile = MylarTaskListPlugin.getDefault().getOfflineReportsFile();
if (reportsFile != null) {
int offlineId = reportsFile.find(repository.getUrl(), id);
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java
index b68b682aa..713c16aa1 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java
@@ -225,8 +225,8 @@ public class NewBugEditor extends AbstractBugEditor {
protected void updateBug() {
// go through all of the attributes and update the main values to the
// new ones
-// for (Iterator<AbstractRepositoryReportAttribute> it = bug.getAttributes().iterator(); it.hasNext();) {
-// AbstractRepositoryReportAttribute a = it.next();
+// for (Iterator<AbstractRepositoryTaskAttribute> it = bug.getAttributes().iterator(); it.hasNext();) {
+// AbstractRepositoryTaskAttribute a = it.next();
// a.setValue(a.getNewValue());
// }
@@ -239,8 +239,8 @@ public class NewBugEditor extends AbstractBugEditor {
protected void restoreBug() {
// go through all of the attributes and restore the new values to the
// main ones
-// for (Iterator<AbstractRepositoryReportAttribute> it = bug.getAttributes().iterator(); it.hasNext();) {
-// AbstractRepositoryReportAttribute a = it.next();
+// for (Iterator<AbstractRepositoryTaskAttribute> it = bug.getAttributes().iterator(); it.hasNext();) {
+// AbstractRepositoryTaskAttribute a = it.next();
// a.setNewValue(a.getValue());
// }
}
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java
index a4313d9e8..67fa0e511 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java
@@ -394,7 +394,7 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
} else if (throwable.getCause() instanceof PossibleBugzillaFailureException) {
// String attributes = "";
// if (bugReport != null) {
- // for (AbstractRepositoryReportAttribute
+ // for (AbstractRepositoryTaskAttribute
// attribute : bugReport.getAttributes()) {
// attributes += attribute.getID() + "=" +
// attribute.getValue() + " | ";
@@ -506,7 +506,7 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
} catch (CoreException e) {
MylarStatusHandler.fail(e, e.getMessage(), false);
}
- // file.sort(OfflineReportsFile.lastSel);
+ // file.sort(OfflineTaskManager.lastSel);
}
}
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java
index 99a3ec113..5a13a2c1d 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java
@@ -14,7 +14,7 @@ package org.eclipse.mylar.internal.bugzilla.ui.tasklist;
import java.util.Date;
import org.eclipse.mylar.internal.core.util.MylarStatusHandler;
-import org.eclipse.mylar.internal.tasklist.OfflineReportsFile;
+import org.eclipse.mylar.internal.tasklist.OfflineTaskManager;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
import org.eclipse.mylar.internal.tasklist.TaskExternalizationException;
import org.eclipse.mylar.provisional.tasklist.AbstractRepositoryQuery;
@@ -190,7 +190,7 @@ public class BugzillaTaskExternalizer extends DelegatingTaskExternalizer {
* TODO: move?
*/
public boolean readBugReport(BugzillaTask bugzillaTask) {
- RepositoryReport tempBug = OfflineReportsFile.findBug(bugzillaTask.getRepositoryUrl(), AbstractRepositoryTask.getTaskIdAsInt(bugzillaTask.getHandleIdentifier()));
+ RepositoryReport tempBug = OfflineTaskManager.findBug(bugzillaTask.getRepositoryUrl(), AbstractRepositoryTask.getTaskIdAsInt(bugzillaTask.getHandleIdentifier()));
if (tempBug == null) {
bugzillaTask.setBugReport(null);
return true;
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/AbstractBugzillaWizardPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/AbstractBugzillaWizardPage.java
index 1f9095fb6..5d8c90e8f 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/AbstractBugzillaWizardPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/AbstractBugzillaWizardPage.java
@@ -23,7 +23,7 @@ import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.mylar.internal.bugzilla.core.NewBugzillaReport;
import org.eclipse.mylar.internal.bugzilla.ui.editor.AbstractBugEditor;
import org.eclipse.mylar.internal.core.util.MylarStatusHandler;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
@@ -312,8 +312,8 @@ public abstract class AbstractBugzillaWizardPage extends WizardPage implements L
// go through each of the attributes and sync their values with the
// combo boxes
- for (Iterator<AbstractRepositoryReportAttribute> it = nbm.getAttributes().iterator(); it.hasNext();) {
- AbstractRepositoryReportAttribute attribute = it.next();
+ for (Iterator<AbstractRepositoryTaskAttribute> it = nbm.getAttributes().iterator(); it.hasNext();) {
+ AbstractRepositoryTaskAttribute attribute = it.next();
String key = attribute.getName();
Map<String, String> values = attribute.getOptionValues();
@@ -418,8 +418,8 @@ public abstract class AbstractBugzillaWizardPage extends WizardPage implements L
newLayout(attributesComposite, 1, nbm.getProduct(), VALUE);
// Populate Attributes
- for (Iterator<AbstractRepositoryReportAttribute> it = nbm.getAttributes().iterator(); it.hasNext();) {
- AbstractRepositoryReportAttribute attribute = it.next();
+ for (Iterator<AbstractRepositoryTaskAttribute> it = nbm.getAttributes().iterator(); it.hasNext();) {
+ AbstractRepositoryTaskAttribute attribute = it.next();
String key = attribute.getID();
String name = attribute.getName();
String value = checkText(attribute.getValue());
@@ -726,8 +726,8 @@ public abstract class AbstractBugzillaWizardPage extends WizardPage implements L
// Get OS Lookup Map
// Check that the result is in Values, if it is not, set it to other
- AbstractRepositoryReportAttribute opSysAttribute = newBugModel.getAttribute(BugzillaReportElement.OP_SYS);
- AbstractRepositoryReportAttribute platformAttribute = newBugModel.getAttribute(BugzillaReportElement.REP_PLATFORM);
+ AbstractRepositoryTaskAttribute opSysAttribute = newBugModel.getAttribute(BugzillaReportElement.OP_SYS);
+ AbstractRepositoryTaskAttribute platformAttribute = newBugModel.getAttribute(BugzillaReportElement.REP_PLATFORM);
String OS = Platform.getOS();
String platform = Platform.getOSArch();
diff --git a/org.eclipse.mylyn.help.ui/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.help.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..b51ee80ea
--- /dev/null
+++ b/org.eclipse.mylyn.help.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:30:45 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.help.ui/doc/new.html b/org.eclipse.mylyn.help.ui/doc/new.html
index 286171393..04fe150f4 100644
--- a/org.eclipse.mylyn.help.ui/doc/new.html
+++ b/org.eclipse.mylyn.help.ui/doc/new.html
@@ -100,8 +100,15 @@ Mylar 0.3</a></b></p>
<p>&quot;Open in Browser&quot; obeys platform options.&nbsp;
Better browser integration.</p>
<p>
- Multiple window support (update FAQ).<p>
- Subclipse change set support<p>
+ Viewers: Multiple window support (update FAQ), Apply Mylar
+ performance improved<p>
+ Subclipse change set support <br>
+&nbsp; <a href="http://subclipse.tigris.org/servlets/ReadMsg?list=users&msgNo=6914">
+ http://subclipse.tigris.org/servlets/ReadMsg?list=users&amp;msgNo=6914</a>
+ <br>
+&nbsp; <a href="http://subclipse.tigris.org/update_1.2.x">
+ http://subclipse.tigris.org/update_1.2.x</a> <br>
+&nbsp;<p>
&nbsp;</td>
</tr>
<tr>
diff --git a/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..7ab03bdac
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.core/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:30:09 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..438f8ff80
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.tests/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:31:40 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/BugzillaTaskTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/BugzillaTaskTest.java
index 78b0390ac..03efdd65d 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/BugzillaTaskTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/BugzillaTaskTest.java
@@ -18,9 +18,9 @@ import junit.framework.TestCase;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylar.internal.bugzilla.ui.tasklist.BugzillaTask;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
-import org.eclipse.mylar.internal.tasklist.BugzillaReportAttribute;
+import org.eclipse.mylar.internal.tasklist.RepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.internal.tasklist.Comment;
@@ -51,13 +51,13 @@ public class BugzillaTaskTest extends TestCase {
Date now = new Date(calendar.getTimeInMillis());
Comment comment = new Comment(report, 1);
- AbstractRepositoryReportAttribute attribute = new BugzillaReportAttribute(BugzillaReportElement.BUG_WHEN);
+ AbstractRepositoryTaskAttribute attribute = new RepositoryTaskAttribute(BugzillaReportElement.BUG_WHEN);
attribute.setValue(Comment.creation_ts_date_format.format(now));
comment.addAttribute(BugzillaReportElement.BUG_WHEN, attribute);
report.addComment(comment);
assertNull(task.getCompletionDate());
- AbstractRepositoryReportAttribute resolvedAttribute = new BugzillaReportAttribute(
+ AbstractRepositoryTaskAttribute resolvedAttribute = new RepositoryTaskAttribute(
BugzillaReportElement.BUG_STATUS);
resolvedAttribute.setValue(RepositoryReport.VAL_STATUS_RESOLVED);
report.addAttribute(BugzillaReportElement.BUG_STATUS, resolvedAttribute);
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskTestUtil.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskTestUtil.java
index 3f113d707..e44734056 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskTestUtil.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskTestUtil.java
@@ -23,9 +23,9 @@ import java.util.Date;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylar.internal.bugzilla.ui.tasklist.BugzillaTask;
-import org.eclipse.mylar.internal.tasklist.AbstractRepositoryReportAttribute;
+import org.eclipse.mylar.internal.tasklist.AbstractRepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.RepositoryReport;
-import org.eclipse.mylar.internal.tasklist.BugzillaReportAttribute;
+import org.eclipse.mylar.internal.tasklist.RepositoryTaskAttribute;
import org.eclipse.mylar.internal.tasklist.BugzillaReportElement;
import org.eclipse.mylar.internal.tasklist.Comment;
@@ -62,12 +62,12 @@ public class TaskTestUtil {
public static void setBugTaskCompleted(BugzillaTask bugzillaTask, boolean completed) {
RepositoryReport report = new RepositoryReport(1, IBugzillaConstants.ECLIPSE_BUGZILLA_URL);
bugzillaTask.setBugReport(report);
- AbstractRepositoryReportAttribute resolvedAttribute = new BugzillaReportAttribute(
+ AbstractRepositoryTaskAttribute resolvedAttribute = new RepositoryTaskAttribute(
BugzillaReportElement.BUG_STATUS);
if (completed) {
resolvedAttribute.setValue(RepositoryReport.VAL_STATUS_RESOLVED);
Comment comment = new Comment(report, 1);
- AbstractRepositoryReportAttribute attribute = new BugzillaReportAttribute(BugzillaReportElement.CREATION_TS);
+ AbstractRepositoryTaskAttribute attribute = new RepositoryTaskAttribute(BugzillaReportElement.CREATION_TS);
attribute.setValue(Comment.creation_ts_date_format.format(new Date()));
comment.addAttribute(BugzillaReportElement.CREATION_TS, attribute);
report.addComment(comment);
diff --git a/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 000000000..52cdd70a2
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Fri Jun 02 15:31:36 PDT 2006
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=true
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryReport.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryReport.java
index 60e4b430f..fd87c71ef 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryReport.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryReport.java
@@ -105,7 +105,7 @@ public abstract class AbstractRepositoryReport extends AttributeContainer implem
public abstract void setOfflineState(boolean newOfflineState);
// public String getAttributeValue(Object key) {
-// AbstractRepositoryReportAttribute attribute = getAttribute(key);
+// AbstractRepositoryTaskAttribute attribute = getAttribute(key);
// if(attribute != null) {
// return attribute.getValue();
// }
@@ -113,7 +113,7 @@ public abstract class AbstractRepositoryReport extends AttributeContainer implem
// }
public List<String> getAttributeValues(Object key) {
- AbstractRepositoryReportAttribute attribute = getAttribute(key);
+ AbstractRepositoryTaskAttribute attribute = getAttribute(key);
if(attribute != null) {
return attribute.getValues();
}
@@ -125,7 +125,7 @@ public abstract class AbstractRepositoryReport extends AttributeContainer implem
* appropriate attribute is created
*/
public void setAttributeValue(Object key, String value) {
- AbstractRepositoryReportAttribute attrib = getAttribute(key);
+ AbstractRepositoryTaskAttribute attrib = getAttribute(key);
if(attrib == null) {
attrib = getAttributeFactory().createAttribute(key);
this.addAttribute(key, attrib);
@@ -134,7 +134,7 @@ public abstract class AbstractRepositoryReport extends AttributeContainer implem
}
public void addAttributeValue(Object key, String value) {
- AbstractRepositoryReportAttribute attrib = getAttribute(key);
+ AbstractRepositoryTaskAttribute attrib = getAttribute(key);
if (attrib != null) {
attrib.addValue(value);
} else {
@@ -145,11 +145,11 @@ public abstract class AbstractRepositoryReport extends AttributeContainer implem
}
public void removeAttributeValue(Object key, String value) {
- AbstractRepositoryReportAttribute attrib = getAttribute(key);
+ AbstractRepositoryTaskAttribute attrib = getAttribute(key);
if (attrib != null) {
attrib.removeValue(value);
}
}
- public abstract AbstractAttributeFactory getAttributeFactory();
+ public abstract AbstractTaskAttributeFactory getAttributeFactory();
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryReportAttribute.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryTaskAttribute.java
index 8587c586b..7182d35fe 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryReportAttribute.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractRepositoryTaskAttribute.java
@@ -22,7 +22,7 @@ import java.util.Map;
*
* @author Rob Elves
*/
-public abstract class AbstractRepositoryReportAttribute implements Serializable {
+public abstract class AbstractRepositoryTaskAttribute implements Serializable {
private boolean hidden = false;
private boolean isReadOnly = false;;
@@ -41,7 +41,7 @@ public abstract class AbstractRepositoryReportAttribute implements Serializable
*/
private List<String> values = new ArrayList<String>();
- public AbstractRepositoryReportAttribute(String name, boolean hidden) {
+ public AbstractRepositoryTaskAttribute(String name, boolean hidden) {
// initialize the name and its legal values
this.name = name;
this.hidden = hidden;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractAttributeFactory.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractTaskAttributeFactory.java
index 03e8619b5..bb8e68df3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractAttributeFactory.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AbstractTaskAttributeFactory.java
@@ -14,8 +14,8 @@ package org.eclipse.mylar.internal.tasklist;
/**
* @author Rob Elves
*/
-public abstract class AbstractAttributeFactory {
+public abstract class AbstractTaskAttributeFactory {
- public abstract AbstractRepositoryReportAttribute createAttribute(Object key);
+ public abstract AbstractRepositoryTaskAttribute createAttribute(Object key);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AttributeContainer.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AttributeContainer.java
index b51761216..e91232245 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AttributeContainer.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/AttributeContainer.java
@@ -28,21 +28,21 @@ public class AttributeContainer implements Serializable {
private ArrayList<Object> attributeKeys;
/** report attributes (status, resolution, etc.) */
- private HashMap<Object, AbstractRepositoryReportAttribute> attributes;
+ private HashMap<Object, AbstractRepositoryTaskAttribute> attributes;
public AttributeContainer() {
attributeKeys = new ArrayList<Object>();
- attributes = new HashMap<Object, AbstractRepositoryReportAttribute>();
+ attributes = new HashMap<Object, AbstractRepositoryTaskAttribute>();
}
- public void addAttribute(Object key, AbstractRepositoryReportAttribute attribute) {
+ public void addAttribute(Object key, AbstractRepositoryTaskAttribute attribute) {
if (!attributes.containsKey(attribute.getName())) {
attributeKeys.add(key);
}
attributes.put(key, attribute);
}
- public AbstractRepositoryReportAttribute getAttribute(Object key) {
+ public AbstractRepositoryTaskAttribute getAttribute(Object key) {
return attributes.get(key);
}
@@ -51,19 +51,19 @@ public class AttributeContainer implements Serializable {
attributes.remove(key);
}
- public List<AbstractRepositoryReportAttribute> getAttributes() {
- ArrayList<AbstractRepositoryReportAttribute> attributeEntries = new ArrayList<AbstractRepositoryReportAttribute>(
+ public List<AbstractRepositoryTaskAttribute> getAttributes() {
+ ArrayList<AbstractRepositoryTaskAttribute> attributeEntries = new ArrayList<AbstractRepositoryTaskAttribute>(
attributeKeys.size());
for (Iterator<Object> it = attributeKeys.iterator(); it.hasNext();) {
Object key = it.next();
- AbstractRepositoryReportAttribute attribute = attributes.get(key);
+ AbstractRepositoryTaskAttribute attribute = attributes.get(key);
attributeEntries.add(attribute);
}
return attributeEntries;
}
public String getAttributeValue(Object key) {
- AbstractRepositoryReportAttribute attribute = getAttribute(key);
+ AbstractRepositoryTaskAttribute attribute = getAttribute(key);
if(attribute != null) {
// TODO: unescape should happen on connector side not here
//return HtmlStreamTokenizer.unescape(attribute.getValue());
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/BugzillaAttributeFactory.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/BugzillaAttributeFactory.java
index bc1f4389e..9a743089b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/BugzillaAttributeFactory.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/BugzillaAttributeFactory.java
@@ -11,15 +11,14 @@
package org.eclipse.mylar.internal.tasklist;
-
/**
* @author Rob Elves
*/
-public class BugzillaAttributeFactory extends AbstractAttributeFactory {
+public class BugzillaAttributeFactory extends AbstractTaskAttributeFactory {
@Override
- public AbstractRepositoryReportAttribute createAttribute(Object key) {
- return new BugzillaReportAttribute((BugzillaReportElement) key);
+ public AbstractRepositoryTaskAttribute createAttribute(Object key) {
+ return new RepositoryTaskAttribute((BugzillaReportElement) key);
}
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/IBugzillaBug.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/IBugzillaBug.java
deleted file mode 100644
index f28a56756..000000000
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/IBugzillaBug.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003 - 2006 University Of British Columbia and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * University Of British Columbia - initial API and implementation
- *******************************************************************************/
-package org.eclipse.mylar.internal.tasklist;
-
-import java.util.Date;
-import java.util.List;
-import java.util.TimeZone;
-
-
-/**
- * Interface representing a Bugzilla bug report.
- */
-public interface IBugzillaBug { // extends Serializable
-
- // /**
- // * @return bug's id.
- // */
- // public int getId();
- //
- // /**
- // * @return the server for this bug.
- // */
- // public String getRepositoryUrl();
-
- /**
- * @return the title label for this bug.
- */
- public String getLabel();
-
- /**
- * @return bug's description.
- */
- public String getDescription();
-
- /**
- * Sets the bug's description.
- *
- * @param newDescription
- */
- public void setDescription(String newDescription);
-
- /**
- * @return bug's summary.
- */
- public String getSummary();
-
- /**
- * Sets the bug's summary.
- *
- * @param newSummary
- */
- public void setSummary(String newSummary);
-
- // /**
- // * Get an attribute given its key
- // *
- // * @return The value of the attribute or <code>null</code> if not present
- // */
- // public AbstractRepositoryReportAttribute getAttribute(String key);
- //
- // /**
- // * @return the attributes for this bug.
- // */
- // public List<AbstractRepositoryReportAttribute> getAttributes();
-
- // /**
- // * @return <code>true</code> if this bug report is saved offline.
- // */
- // public boolean isSavedOffline();
-
- // /**
- // * @return <code>true</code> if this bug was created locally, and does not
- // * yet exist on a bugzilla server.
- // */
- // public boolean isLocallyCreated();
-
- // /**
- // * Sets whether or not this bug is saved offline.
- // *
- // * @param newOfflineState
- // * <code>true</code> if this bug is saved offline
- // */
- // public void setOfflineState(boolean newOfflineState);
-
- // public boolean hasChanges();
-
- public void addCC(String email);
-
- public void addOperation(Operation o);
-
- public String getAssignedTo();
-
- public List<String> getCC();
-
- public List<String> getKeywords();
-
- public String getNewComment();
-
- // public String getNewNewComment();
- public void setNewComment(String newComment);
-
- // public void setNewNewComment(String newNewComment);
- public void setOfflineState(boolean newOfflineState);
-
- //public Operation getOperation(String displayText);
-
- public List<Operation> getOperations();
-
- public String getReporter();
-
- public String getResolution();
-
- public void setSelectedOperation(Operation o);
-
- public Operation getSelectedOperation();
-
- public String getStatus();
-
- public boolean isResolved();
-
- public void removeCC(String email);
-
- // public void setCreated(Date created);
- public void setKeywords(List<String> keywords);
-
- // public void setLastModified(Date date);
- public String getProduct();
-
- /**
- * Get the date that the bug was created
- *
- * @return The bugs creation date
- */
- public Date getCreated();
-
- /**
- * Returns a Date based on the given time zone
- * null is allowed and will return date interpreted
- * as local default time zone.
- */
- public Date getLastModified(TimeZone timeZone);
-}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/OfflineReportsFile.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/OfflineTaskManager.java
index f9a5c635a..a06ef6596 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/OfflineReportsFile.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/OfflineTaskManager.java
@@ -35,11 +35,11 @@ import org.eclipse.ui.PlatformUI;
/**
* Class to persist the data for the offline reports list
*/
-public class OfflineReportsFile {
+public class OfflineTaskManager {
- public enum BugzillaOfflineStatus {
- SAVED, SAVED_WITH_OUTGOING_CHANGES, DELETED, SAVED_WITH_INCOMMING_CHANGES, CONFLICT, ERROR
- }
+// public enum BugzillaOfflineStatus {
+// SAVED, SAVED_WITH_OUTGOING_CHANGES, DELETED, SAVED_WITH_INCOMMING_CHANGES, CONFLICT, ERROR
+// }
/** The file that the offline reports are written to */
private File file;
@@ -64,15 +64,13 @@ public class OfflineReportsFile {
* @throws ClassNotFoundException
* Error deserializing objects from the offline reports file
*/
- public OfflineReportsFile(File file, boolean read) throws IOException, ClassNotFoundException {
+ public OfflineTaskManager(File file, boolean read) throws IOException, ClassNotFoundException {
this.file = file;
if (read && file.exists()) {
readFile();
}
}
-
-
/**
* Add an offline report to the offline reports list
*
@@ -87,24 +85,26 @@ public class OfflineReportsFile {
String handle = AbstractRepositoryTask.getHandle(entry.getRepositoryUrl(), entry.getId());
ITask task = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(handle);
-
+
if (task != null && task instanceof AbstractRepositoryTask) {
AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask) task;
-
- TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository(repositoryTask.getRepositoryKind(), repositoryTask.getRepositoryUrl());
-
- if(repository == null) {
+
+ TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository(
+ repositoryTask.getRepositoryKind(), repositoryTask.getRepositoryUrl());
+
+ if (repository == null) {
throw new Exception("No repository associated with task. Unable to retrieve timezone information.");
}
-
- TimeZone repositoryTimeZone = DateUtil.getTimeZone(repository.getTimeZoneId());
-
+
+ TimeZone repositoryTimeZone = DateUtil.getTimeZone(repository.getTimeZoneId());
+
int index = -1;
if ((index = find(entry.getRepositoryUrl(), entry.getId())) >= 0) {
RepositoryReport oldBug = list.get(index);
if (repositoryTask.getLastSynchronized() == null
- || entry.getLastModified(repositoryTimeZone).compareTo(repositoryTask.getLastSynchronized()) > 0 || forceSync) {
+ || entry.getLastModified(repositoryTimeZone)
+ .compareTo(repositoryTask.getLastSynchronized()) > 0 || forceSync) {
if (oldBug.hasChanges()) {
@@ -159,7 +159,6 @@ public class OfflineReportsFile {
}
return status;
}
-
// DO NOT REMOVE
// /**
@@ -528,7 +527,7 @@ public class OfflineReportsFile {
// */
// public static void saveOffline(IBugzillaBug bug, boolean saveChosen) throws
// CoreException {
-// OfflineReportsFile file = BugzillaPlugin.getDefault().getOfflineReports();
+// OfflineTaskManager file = BugzillaPlugin.getDefault().getOfflineReports();
// // If there is already an offline report for this bug, update the file.
// if (bug.isSavedOffline()) {
// file.update();
@@ -547,12 +546,12 @@ public class OfflineReportsFile {
// }
// file.add(bug, saveChosen);
// bug.setOfflineState(true);
-// // file.sort(OfflineReportsFile.lastSel);
+// // file.sort(OfflineTaskManager.lastSel);
// }
// }
// public static List<IBugzillaBug> getOfflineBugs() {
-// OfflineReportsFile file = BugzillaPlugin.getDefault().getOfflineReports();
+// OfflineTaskManager file = BugzillaPlugin.getDefault().getOfflineReports();
// return file.elements();
// }
//
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/RepositoryReport.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/RepositoryReport.java
index bb8ebc9be..803b30ffc 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/RepositoryReport.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/RepositoryReport.java
@@ -24,7 +24,7 @@ import java.util.TimeZone;
* @author Mik Kersten
* @author Rob Elves
*/
-public class RepositoryReport extends AbstractRepositoryReport implements IBugzillaBug, Serializable {
+public class RepositoryReport extends AbstractRepositoryReport implements Serializable {
private static final long serialVersionUID = 310066248657960823L;
@@ -56,7 +56,7 @@ public class RepositoryReport extends AbstractRepositoryReport implements IBugzi
/** The operations that can be done on the report */
protected List<Operation> operations = new ArrayList<Operation>();
- private static final AbstractAttributeFactory attributeFactory = new BugzillaAttributeFactory();
+ private static final AbstractTaskAttributeFactory attributeFactory = new BugzillaAttributeFactory();
/** The value for the new comment to add (text that is saved) */
protected String newComment = "";
@@ -124,24 +124,6 @@ public class RepositoryReport extends AbstractRepositoryReport implements IBugzi
return getAttributeValue(BugzillaReportElement.ASSIGNED_TO);
}
- // public AbstractRepositoryReportAttribute
- // getAttributeForKnobName(BugzillaReportElement element) {
- // return super.getAttribute(element.getKeyString());
- // }
-
- // private String decodeStringFromCharset(String string) {
- // String decoded = string;
- // if (charset != null && string != null &&
- // Charset.availableCharsets().containsKey(charset)) {
- // try {
- // decoded = new String(string.getBytes(), charset);
- // } catch (UnsupportedEncodingException e) {
- // // ignore
- // }
- // }
- // return decoded;
- // }
-
/**
* Get the set of addresses in the CC list
*
@@ -183,96 +165,6 @@ public class RepositoryReport extends AbstractRepositoryReport implements IBugzi
}
- // public AbstractRepositoryReportAttribute getAttribute(String key) {
- // return attributes.get(key);
- // }
- //
- // /**
- // * Get the list of attributes for this bug
- // *
- // * @return An <code>ArrayList</code> of the bugs attributes
- // */
- // public List<AbstractRepositoryReportAttribute> getAttributes() {
- // // create an array list to store the attributes in
- // ArrayList<AbstractRepositoryReportAttribute> attributeEntries = new
- // ArrayList<AbstractRepositoryReportAttribute>(attributeKeys.size());
- //
- // // go through each of the attribute keys
- // for (Iterator<String> it = attributeKeys.iterator(); it.hasNext();) {
- // // get the key for the attribute
- // String key = it.next();
- //
- // // get the attribute and add it to the list
- // AbstractRepositoryReportAttribute attribute = attributes.get(key);
- // attributeEntries.add(attribute);
- // }
- //
- // // return the list of attributes for the bug
- // return attributeEntries;
- // }
-
- // public AbstractRepositoryReportAttribute getAttributeForKnobName(String
- // knobName) {
- // for (Iterator<String> it = attributeKeys.iterator(); it.hasNext();) {
- // String key = it.next();
- //
- // AbstractRepositoryReportAttribute attribute = attributes.get(key);
- // if (attribute != null && attribute.getID() != null
- // && attribute.getID().compareTo(knobName) == 0) {
- // return attribute;
- // }
- // }
- //
- // return null;
- // }
-
- // /**
- // * @param attribute
- // * The attribute to add to the bug
- // */
- // public void addAttribute(AbstractRepositoryReportAttribute attribute) {
- // if (!attributes.containsKey(attribute.getName())) {
- // attributeKeys.add(attribute.getName());
- // }
- //
- // attribute.setValue(decodeStringFromCharset(attribute.getValue()));
- //
- // // put the value of the attribute into the map, using its name as the
- // // key
- // attributes.put(attribute.getName(), attribute);
- // }
-
- // /**
- // * Get the comments posted on the bug
- // *
- // * @return A list of comments for the bug
- // */
- // public ArrayList<Comment> getComments() {
- // return comments;
- // }
-
- // /**
- // * Add a comment to the bug
- // *
- // * @param comment
- // * The comment to add to the bug
- // */
- // public void addComment(Comment comment) {
- // Comment preceding = null;
- // if (comments.size() > 0) {
- // // if there are some comments, get the last comment and set the next
- // // value to be the new comment
- // preceding = comments.get(comments.size() - 1);
- // preceding.setNext(comment);
- // }
- // // set the comments previous value to the preceeding one
- // comment.setPrevious(preceding);
- //
- // comment.setText(decodeStringFromCharset(comment.getText()));
- // // add the comment to the comment list
- // comments.add(comment);
- // }
-
/**
* Get the keywords for the bug
*
@@ -289,14 +181,6 @@ public class RepositoryReport extends AbstractRepositoryReport implements IBugzi
}
return keywords;
- //
- // String[] keywords =
- // getAttributeValue(BugzillaReportElement.KEYWORDS).split(",");
- // return getAttributeValue(BugzillaReportElement.KEYWORDS)
- // BugzillaPlugin.getDefault().getProductConfiguration(repository).getProducts()
- //
- // return
- // BugzillaRepositoryUtil.getValidKeywords(this.getRepositoryUrl());
}
public String getLabel() {
@@ -329,13 +213,6 @@ public class RepositoryReport extends AbstractRepositoryReport implements IBugzi
return newComment;
}
- // /**
- // * @return the new value of the new NewComment.
- // */
- // public String getNewNewComment() {
- // return newNewComment;
- // }
-
/**
* Get an operation from the bug based on its display name
*
@@ -409,16 +286,12 @@ public class RepositoryReport extends AbstractRepositoryReport implements IBugzi
return getAttributeValue(BugzillaReportElement.PRODUCT);
}
- // public void setSummary(String newSummary) {
- // setAttributeValue(BugzillaReportElement.SHORT_DESC, newSummary);
- // }
-
public boolean isLocallyCreated() {
return false;
}
public boolean isResolved() {
- AbstractRepositoryReportAttribute status = getAttribute(BugzillaReportElement.BUG_STATUS);
+ AbstractRepositoryTaskAttribute status = getAttribute(BugzillaReportElement.BUG_STATUS);
return status != null && isResolvedStatus(status.getValue());
}
@@ -436,17 +309,7 @@ public class RepositoryReport extends AbstractRepositoryReport implements IBugzi
public void removeCC(String email) {
removeAttributeValue(BugzillaReportElement.CC, email);
}
-
- // /**
- // * Set the bugs creation date
- // *
- // * @param created
- // * The date the the bug was created
- // */
- // public void setCreated(Date created) {
- // this.created = created;
- // }
-
+
public void setDescription(String description) {
// ignore, used by NewBugReport
// this.description = decodeStringFromCharset(description);
@@ -493,13 +356,13 @@ public class RepositoryReport extends AbstractRepositoryReport implements IBugzi
}
@Override
- public AbstractAttributeFactory getAttributeFactory() {
+ public AbstractTaskAttributeFactory getAttributeFactory() {
return attributeFactory;
}
-// public AbstractRepositoryReportAttribute getAttribute(String test) {
+// public AbstractRepositoryTaskAttribute getAttribute(String test) {
//
// MylarStatusHandler.fail(new Exception(), "BugReport: getAttribute called with string", false);
-// return new BugzillaReportAttribute(BugzillaReportElement.UNKNOWN);
+// return new RepositoryTaskAttribute(BugzillaReportElement.UNKNOWN);
// }
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/BugzillaReportAttribute.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/RepositoryTaskAttribute.java
index b83ab2535..1419db993 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/BugzillaReportAttribute.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/RepositoryTaskAttribute.java
@@ -11,12 +11,14 @@
package org.eclipse.mylar.internal.tasklist;
-
-public class BugzillaReportAttribute extends AbstractRepositoryReportAttribute {
+/**
+ * @author Rob Elves
+ */
+public class RepositoryTaskAttribute extends AbstractRepositoryTaskAttribute {
private static final long serialVersionUID = 6959987055086133307L;
- public BugzillaReportAttribute(BugzillaReportElement element) {
+ public RepositoryTaskAttribute(BugzillaReportElement element) {
super(element.toString(), element.isHidden());
super.setID(element.getKeyString());
super.setReadOnly(element.isReadOnly());
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/MylarTaskListPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/MylarTaskListPlugin.java
index 21acc7cb5..8d02be614 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/MylarTaskListPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/MylarTaskListPlugin.java
@@ -31,7 +31,7 @@ import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.hyperlink.IHyperlinkDetector;
import org.eclipse.mylar.internal.core.MylarPreferenceContstants;
import org.eclipse.mylar.internal.core.util.MylarStatusHandler;
-import org.eclipse.mylar.internal.tasklist.OfflineReportsFile;
+import org.eclipse.mylar.internal.tasklist.OfflineTaskManager;
import org.eclipse.mylar.internal.tasklist.RepositoryEditorManager;
import org.eclipse.mylar.internal.tasklist.TaskListBackupManager;
import org.eclipse.mylar.internal.tasklist.TaskListPreferenceConstants;
@@ -102,7 +102,7 @@ public class MylarTaskListPlugin extends AbstractUIPlugin implements IStartup {
private TaskListBackupManager taskListBackupManager;
- private OfflineReportsFile offlineReportsFile;
+ private OfflineTaskManager offlineTaskManager;
private List<ITaskEditorFactory> taskEditors = new ArrayList<ITaskEditorFactory>();
@@ -568,14 +568,14 @@ public class MylarTaskListPlugin extends AbstractUIPlugin implements IStartup {
IPath offlineReportsPath = getOfflineReportsFilePath();
try {
- offlineReportsFile = new OfflineReportsFile(offlineReportsPath.toFile(), true);
+ offlineTaskManager = new OfflineTaskManager(offlineReportsPath.toFile(), true);
} catch (Exception e) {
MylarStatusHandler.log(e,
"Could not restore offline Bugzilla reports file, creating new one (possible version incompatibility)");
offlineReportsPath.toFile().delete();
// if (offlineReportsPath.toFile().delete()) {
try {
- offlineReportsFile = new OfflineReportsFile(offlineReportsPath.toFile(), false);
+ offlineTaskManager = new OfflineTaskManager(offlineReportsPath.toFile(), false);
} catch (Exception e1) {
MylarStatusHandler.fail(e, "could not reset offline Bugzilla reports file", true);
}
@@ -594,11 +594,11 @@ public class MylarTaskListPlugin extends AbstractUIPlugin implements IStartup {
return configFile;
}
- public OfflineReportsFile getOfflineReportsFile() {
- if (offlineReportsFile == null) {
+ public OfflineTaskManager getOfflineReportsFile() {
+ if (offlineTaskManager == null) {
MylarStatusHandler.fail(null, "Offline reports file not created, try restarting.", true);
}
- return offlineReportsFile;
+ return offlineTaskManager;
}
public static TaskListSynchronizationManager getSynchronizationManager() {

Back to the top