Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-10-30 08:55:08 +0000
committerFrank Becker2012-11-02 16:39:19 +0000
commitfd8f30615d6b29b6cf4678405d13205d8c271de6 (patch)
treece2e4b2705b9b5fc106bfcabe240bf2a4b03fb62 /org.eclipse.mylyn.tasks.ui/src
parent9e6532482888741f258cbbc8efbbf300f740f59a (diff)
downloadorg.eclipse.mylyn.tasks-fd8f30615d6b29b6cf4678405d13205d8c271de6.tar.gz
org.eclipse.mylyn.tasks-fd8f30615d6b29b6cf4678405d13205d8c271de6.tar.xz
org.eclipse.mylyn.tasks-fd8f30615d6b29b6cf4678405d13205d8c271de6.zip
240554: [api] enable access to form toolkit in
AbstractRepositorySettingsPage Change-Id: I55bffd15632dd857b204ffc1afddc3135d66f9a1 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=240554
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java
index 7732a71c9..31f958c53 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java
@@ -2083,4 +2083,20 @@ public abstract class AbstractRepositorySettingsPage extends AbstractTaskReposit
return super.createSection(parentControl, title);
}
}
+
+ /**
+ * Returns the toolkit used to construct sections and hyperlinks.
+ *
+ * @return the toolkit
+ * @throws IllegalStateException
+ * if the toolkit has not been initialized
+ * @since 3.9
+ */
+ protected FormToolkit getToolkit() {
+ if (toolkit == null) {
+ throw new IllegalStateException("Toolkit is not initialized, createControl() must be invoked first"); //$NON-NLS-1$
+ }
+ return toolkit;
+ }
+
}

Back to the top