public class AlwaysWelcomeCheckbox extends Object implements IIntroContentProvider, IIntroAction
Modifier and Type | Field and Description |
---|---|
static String |
ALWAYS_SHOW_INTRO |
Constructor and Description |
---|
AlwaysWelcomeCheckbox() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String ALWAYS_SHOW_INTRO
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)
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.