Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-10-30 04:55:25 -0400
committerSteffen Pingel2012-11-02 15:51:57 -0400
commitcd47be7be09224e48a95e444b934ce7458bdff03 (patch)
treecfa464841139fcb9540e682315f31b69f1b68baf
parent178f80619dd7fb7ce5f3e79d42d7b87abec198ec (diff)
downloadorg.eclipse.mylyn.incubator-cd47be7be09224e48a95e444b934ce7458bdff03.tar.gz
org.eclipse.mylyn.incubator-cd47be7be09224e48a95e444b934ce7458bdff03.tar.xz
org.eclipse.mylyn.incubator-cd47be7be09224e48a95e444b934ce7458bdff03.zip
240554: consume toolkit from AbstractRepositorySettingsPage
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=240554 Change-Id: I9a7a52a41466235e461a4a5c6a109204b72ce067
-rw-r--r--org.eclipse.mylyn.web.tasks/META-INF/MANIFEST.MF12
-rw-r--r--org.eclipse.mylyn.web.tasks/src/org/eclipse/mylyn/internal/web/tasks/WebRepositorySettingsPage.java10
2 files changed, 7 insertions, 15 deletions
diff --git a/org.eclipse.mylyn.web.tasks/META-INF/MANIFEST.MF b/org.eclipse.mylyn.web.tasks/META-INF/MANIFEST.MF
index 758f22c5..ef64b6ab 100644
--- a/org.eclipse.mylyn.web.tasks/META-INF/MANIFEST.MF
+++ b/org.eclipse.mylyn.web.tasks/META-INF/MANIFEST.MF
@@ -10,12 +10,12 @@ Require-Bundle: com.sun.syndication;bundle-version="0.9.0",
org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.ui.forms,
- org.eclipse.mylyn.commons.core;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.mylyn.commons.net;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.mylyn.commons.ui;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.mylyn.commons.workbench;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.mylyn.tasks.core;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.mylyn.tasks.ui;bundle-version="[3.0.0,4.0.0)"
+ org.eclipse.mylyn.commons.core;bundle-version="[3.9.0,4.0.0)",
+ org.eclipse.mylyn.commons.net;bundle-version="[3.9.0,4.0.0)",
+ org.eclipse.mylyn.commons.ui;bundle-version="[3.9.0,4.0.0)",
+ org.eclipse.mylyn.commons.workbench;bundle-version="[3.9.0,4.0.0)",
+ org.eclipse.mylyn.tasks.core;bundle-version="[3.9.0,4.0.0)",
+ org.eclipse.mylyn.tasks.ui;bundle-version="[3.9.0,4.0.0)"
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.mylyn.internal.web.tasks;x-internal:=true
Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/org.eclipse.mylyn.web.tasks/src/org/eclipse/mylyn/internal/web/tasks/WebRepositorySettingsPage.java b/org.eclipse.mylyn.web.tasks/src/org/eclipse/mylyn/internal/web/tasks/WebRepositorySettingsPage.java
index 7e3c7661..8145d129 100644
--- a/org.eclipse.mylyn.web.tasks/src/org/eclipse/mylyn/internal/web/tasks/WebRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.web.tasks/src/org/eclipse/mylyn/internal/web/tasks/WebRepositorySettingsPage.java
@@ -73,8 +73,6 @@ public class WebRepositorySettingsPage extends AbstractRepositorySettingsPage im
private ComboViewer loginRequestMethod;
- private FormToolkit toolkit;
-
private Map<String, String> oldProperties;
private final ArrayList<ControlDecoration> decorations = new ArrayList<ControlDecoration>();
@@ -88,10 +86,6 @@ public class WebRepositorySettingsPage extends AbstractRepositorySettingsPage im
@Override
public void dispose() {
- if (toolkit != null) {
- toolkit.dispose();
- toolkit = null;
- }
for (ControlDecoration decoration : decorations) {
decoration.dispose();
}
@@ -133,9 +127,6 @@ public class WebRepositorySettingsPage extends AbstractRepositorySettingsPage im
@SuppressWarnings("restriction")
@Override
protected void createAdditionalControls(Composite parent) {
- toolkit = new FormToolkit(org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.getDefault().getFormColors(
- parent.getDisplay()));
-
addRepositoryTemplatesToServerUrlCombo();
Composite composite = new Composite(parent, SWT.NONE);
@@ -195,6 +186,7 @@ public class WebRepositorySettingsPage extends AbstractRepositorySettingsPage im
}
private void createAdvancedComposite(final Composite composite) {
+ FormToolkit toolkit = getToolkit();
ExpandableComposite expComposite = toolkit.createExpandableComposite(composite, ExpandableComposite.TITLE_BAR
| ExpandableComposite.COMPACT | ExpandableComposite.TWISTIE);
expComposite.clientVerticalSpacing = 0;

Back to the top