Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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