Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2016-03-27 20:54:24 +0000
committerGerrit Code Review @ Eclipse.org2016-04-12 20:34:26 +0000
commitdcf2e0aae45414e3c7134613f81df424c97497c9 (patch)
tree10042edf0a72370d51efeb69fd9572ba6c63361e /connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui
parent7931176ce6ad47073b33d36cce2e314cd0623924 (diff)
downloadorg.eclipse.mylyn.tasks-dcf2e0aae45414e3c7134613f81df424c97497c9.tar.gz
org.eclipse.mylyn.tasks-dcf2e0aae45414e3c7134613f81df424c97497c9.tar.xz
org.eclipse.mylyn.tasks-dcf2e0aae45414e3c7134613f81df424c97497c9.zip
483745: some improvements for the first complete Bugzilla REST Editor
Change-Id: I7354910f0ea222799ed7b92adc48306d2476a20d Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=483745
Diffstat (limited to 'connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui')
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositoryConnectorUi.java4
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositorySettingsPage.java4
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPageFactory.java2
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/Messages.java36
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/messages.properties5
5 files changed, 46 insertions, 5 deletions
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositoryConnectorUi.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositoryConnectorUi.java
index f3cd48ce7..a9d096c82 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositoryConnectorUi.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositoryConnectorUi.java
@@ -53,7 +53,7 @@ public class BugzillaRestRepositoryConnectorUi extends AbstractRepositoryConnect
BugzillaRestConnector connectorREST = (BugzillaRestConnector) connector;
TaskData taskData = new TaskData(new BugzillaRestTaskAttributeMapper(repository, connectorREST),
- repository.getConnectorKind(), "Query", "Query");
+ repository.getConnectorKind(), "Query", "Query"); //$NON-NLS-1$ //$NON-NLS-2$
if (query == null) {
wizard.addPage(new BugzillaRestQueryTypeWizardPage(repository, connector));
@@ -70,7 +70,7 @@ public class BugzillaRestRepositoryConnectorUi extends AbstractRepositoryConnect
}
private boolean isCustomQuery(IRepositoryQuery query2) {
- String custom = query2.getAttribute("SimpleURLQueryPage");
+ String custom = query2.getAttribute("SimpleURLQueryPage"); //$NON-NLS-1$
return custom != null && custom.equals(Boolean.TRUE.toString());
}
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositorySettingsPage.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositorySettingsPage.java
index 46f4d3421..ed81d1249 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositorySettingsPage.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestRepositorySettingsPage.java
@@ -24,12 +24,12 @@ public class BugzillaRestRepositorySettingsPage extends AbstractRepositorySettin
private static final String LABEL_VERSION_NUMBER = "5.0"; //$NON-NLS-1$
private static final String DESCRIPTION = MessageFormat.format(
- "Supports Bugzilla {0} Example: https://bugs.eclipse.org/bugs/ (do not include rest.cgi)",
+ Messages.BugzillaRestRepositorySettingsPage_SupportsVersionMessage,
LABEL_VERSION_NUMBER);
public BugzillaRestRepositorySettingsPage(TaskRepository taskRepository, AbstractRepositoryConnector connector,
AbstractRepositoryConnectorUi connectorUi) {
- super("Bugzilla REST Repository Settings", DESCRIPTION, taskRepository, connector, connectorUi);
+ super(Messages.BugzillaRestRepositorySettingsPage_RestRepositorySetting, DESCRIPTION, taskRepository, connector, connectorUi);
setNeedsAnonymousLogin(true);
setNeedsEncoding(false);
setNeedsAdvanced(false);
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPageFactory.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPageFactory.java
index bc9ed06bf..84dae2ed1 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPageFactory.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/BugzillaRestTaskEditorPageFactory.java
@@ -49,7 +49,7 @@ public class BugzillaRestTaskEditorPageFactory extends AbstractTaskEditorPageFac
@Override
public String getPageText() {
- return "Bugzilla";
+ return Messages.BugzillaRestTaskEditorPageFactory_Bugzilla;
}
@Override
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/Messages.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/Messages.java
new file mode 100644
index 000000000..28009e885
--- /dev/null
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/Messages.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2016 Frank Becker 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:
+ * Frank Becker - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.internal.bugzilla.rest.ui;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.mylyn.internal.bugzilla.rest.ui.messages"; //$NON-NLS-1$
+
+ public static String BugzillaRestRepositorySettingsPage_RestRepositorySetting;
+
+ public static String BugzillaRestRepositorySettingsPage_SupportsVersionMessage;
+
+ public static String BugzillaRestSearchQueryPage_PropertiesForNewQuery;
+
+ public static String BugzillaRestSearchQueryPage_PropertiesForQuery;
+
+ public static String BugzillaRestTaskEditorPageFactory_Bugzilla;
+
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/messages.properties b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/messages.properties
new file mode 100644
index 000000000..6300ec225
--- /dev/null
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.ui/src/org/eclipse/mylyn/internal/bugzilla/rest/ui/messages.properties
@@ -0,0 +1,5 @@
+BugzillaRestRepositorySettingsPage_RestRepositorySetting=Bugzilla REST Repository Settings
+BugzillaRestRepositorySettingsPage_SupportsVersionMessage=Supports Bugzilla {0} Example: https://bugs.eclipse.org/bugs/ (do not include rest.cgi)
+BugzillaRestSearchQueryPage_PropertiesForNewQuery=Properties for new Query
+BugzillaRestSearchQueryPage_PropertiesForQuery=Properties for Query ''{0}''
+BugzillaRestTaskEditorPageFactory_Bugzilla=Bugzilla

Back to the top