| author | Steffen Pingel | 2012-10-30 04:55:08 (EDT) |
|---|---|---|
| committer | Frank Becker | 2012-11-02 12:39:19 (EDT) |
| commit | fd8f30615d6b29b6cf4678405d13205d8c271de6 (patch) (side-by-side diff) | |
| tree | ce2e4b2705b9b5fc106bfcabe240bf2a4b03fb62 | |
| parent | 9e6532482888741f258cbbc8efbbf300f740f59a (diff) | |
| download | org.eclipse.mylyn.tasks-fd8f30615d6b29b6cf4678405d13205d8c271de6.zip org.eclipse.mylyn.tasks-fd8f30615d6b29b6cf4678405d13205d8c271de6.tar.gz org.eclipse.mylyn.tasks-fd8f30615d6b29b6cf4678405d13205d8c271de6.tar.bz2 | |
240554: [api] enable access to form toolkit inrefs/changes/09/8409/2
AbstractRepositorySettingsPage
Change-Id: I55bffd15632dd857b204ffc1afddc3135d66f9a1
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=240554
| -rw-r--r-- | org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage.java | 16 |
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 7732a71..31f958c 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; + } + } |

