|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.intro.contentproviders.AlwaysWelcomeCheckbox
public class AlwaysWelcomeCheckbox
Class which contributes a checkbox to an intro page which allows welcome to show on startup. If the checkbox is checked the home page of intro will be shown the next time the Eclipse application starts up. This class may be subclassed to override the text for the checkbox label. Implements the IIntroContentProvider to create the checkbox ui, and the org.eclipse.ui.intro.config.IIntroAction interface for handling checkbox click events.
Field Summary | |
---|---|
static String |
ALWAYS_SHOW_INTRO
|
Constructor Summary | |
---|---|
AlwaysWelcomeCheckbox()
|
Method Summary | |
---|---|
void |
createContent(String id,
Composite parent,
FormToolkit toolkit)
Creates SWT content in the provided Composite. |
void |
createContent(String id,
PrintWriter out)
Creates HTML content in the provided PrintWriter. |
void |
dispose()
Dispose of the ContentProvider. |
boolean |
getAlwaysShowIntroPref()
|
protected String |
getText()
Override this method to change the default text used for the checkbox |
void |
init(IIntroContentProviderSite site)
Initializes the content provider. |
void |
run(IIntroSite site,
Properties params)
Method called when box is clicked in html (swt is handled with a SelectionAdapter - both methods call reverseShowIntroState()) |
void |
setAlwaysShowIntroPref(boolean val)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ALWAYS_SHOW_INTRO
Constructor Detail |
---|
public AlwaysWelcomeCheckbox()
Method Detail |
---|
protected String getText()
public void createContent(String id, PrintWriter out)
IIntroContentProvider
createContent
in interface IIntroContentProvider
id
- the unique identifier of the content element. The same content
provider class can be reused for several elements and the id
can be used to tell them apart.out
- the output print writer to generate HTML content intopublic void createContent(String id, Composite parent, FormToolkit toolkit)
IIntroContentProvider
createContent
in interface IIntroContentProvider
id
- the unique identifier of the content elementparent
- the parent composite that should be used when creating SWT
widgetstoolkit
- the form toolkit that should be used when creating new widgetspublic void dispose()
IIntroContentProvider
dispose
in interface IIntroContentProvider
public void init(IIntroContentProviderSite site)
IIntroContentProvider
init
in interface IIntroContentProvider
site
- the site of this IIntroContentProviderpublic void run(IIntroSite site, Properties params)
run
in interface IIntroAction
public boolean getAlwaysShowIntroPref()
public void setAlwaysShowIntroPref(boolean val)
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.