Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2010-05-04 21:08:51 +0000
committerrelves2010-05-04 21:08:51 +0000
commit4d448cab4ef51e5cc7e41bf8b2a0f69f5f045579 (patch)
tree6e79d7ed0d67b1d51d5b9963bfa19f593463d8b0
parent036f18859b3f2881dc8542d0984c64c7ccdd894e (diff)
downloadorg.eclipse.mylyn.tasks-4d448cab4ef51e5cc7e41bf8b2a0f69f5f045579.tar.gz
org.eclipse.mylyn.tasks-4d448cab4ef51e5cc7e41bf8b2a0f69f5f045579.tar.xz
org.eclipse.mylyn.tasks-4d448cab4ef51e5cc7e41bf8b2a0f69f5f045579.zip
5348: [oslc] contribute boiler plate OSLC connector to Mylyn
https://live.tasktop.com/dev/bugs/show_bug.cgi?id=5348
-rw-r--r--org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/IOslcCoreConstants.java4
-rw-r--r--org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcRepositorySettingsPage.java6
2 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/IOslcCoreConstants.java b/org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/IOslcCoreConstants.java
index 9bbb77146..5dc00399f 100644
--- a/org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/IOslcCoreConstants.java
+++ b/org.eclipse.mylyn.oslc.core/src/org/eclipse/mylyn/internal/oslc/core/IOslcCoreConstants.java
@@ -20,6 +20,10 @@ public interface IOslcCoreConstants {
public static final String ID_PLUGIN = "org.eclipse.mylyn.oslc.core"; //$NON-NLS-1$
+ // Task Repository property keys
+
+ public static final String OSLC_BASEURL = "oslc.baseurl"; //$NON-NLS-1$
+
//Namespaces
public static final Namespace NAMESPACE_OSLC_CM_1_0 = Namespace.getNamespace(
diff --git a/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcRepositorySettingsPage.java b/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcRepositorySettingsPage.java
index afffb804d..f0998dbd0 100644
--- a/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcRepositorySettingsPage.java
@@ -41,8 +41,6 @@ import org.eclipse.swt.widgets.Text;
*/
public abstract class OslcRepositorySettingsPage extends AbstractRepositorySettingsPage {
- private static final String OSLC_BASEURL = "oslc.baseurl"; //$NON-NLS-1$
-
private OslcServiceDescriptor descriptor;
protected Text baseText;
@@ -74,7 +72,7 @@ public abstract class OslcRepositorySettingsPage extends AbstractRepositorySetti
baseUrlLabel.setText("Base URL:"); //$NON-NLS-1$
baseText = new Text(parent, SWT.BORDER);
if (repository != null) {
- String base = repository.getProperty(OSLC_BASEURL);
+ String base = repository.getProperty(IOslcCoreConstants.OSLC_BASEURL);
if (base != null) {
baseText.setText(base);
}
@@ -119,7 +117,7 @@ public abstract class OslcRepositorySettingsPage extends AbstractRepositorySetti
@Override
public void applyTo(TaskRepository repository) {
- repository.setProperty(OSLC_BASEURL, baseText.getText());
+ repository.setProperty(IOslcCoreConstants.OSLC_BASEURL, baseText.getText());
super.applyTo(repository);
};

Back to the top