From fd8f30615d6b29b6cf4678405d13205d8c271de6 Mon Sep 17 00:00:00 2001 From: Steffen Pingel Date: Tue, 30 Oct 2012 09:55:08 +0100 Subject: 240554: [api] enable access to form toolkit in AbstractRepositorySettingsPage Change-Id: I55bffd15632dd857b204ffc1afddc3135d66f9a1 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=240554 --- .../tasks/ui/wizards/AbstractRepositorySettingsPage.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'org.eclipse.mylyn.tasks.ui') 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; + } + } -- cgit v1.2.3