public abstract class AbstractReusableInformationControlCreator extends Object implements IInformationControlCreator, IInformationControlCreatorExtension, DisposeListener
Constructor and Description |
---|
AbstractReusableInformationControlCreator() |
Modifier and Type | Method and Description |
---|---|
boolean |
canReplace(IInformationControlCreator creator)
Tests whether this information control creator can replace the given
information control creator.
|
boolean |
canReuse(IInformationControl control)
Tests if an existing information control can be reused.
|
IInformationControl |
createInformationControl(Shell parent)
Creates a new information control with the given shell as the control's parent.
|
protected abstract IInformationControl |
doCreateInformationControl(Shell parent)
Creates the control.
|
void |
widgetDisposed(DisposeEvent e)
Sent when the widget is disposed.
|
public AbstractReusableInformationControlCreator()
protected abstract IInformationControl doCreateInformationControl(Shell parent)
parent
- the parent shellpublic IInformationControl createInformationControl(Shell parent)
IInformationControlCreator
createInformationControl
in interface IInformationControlCreator
parent
- the parent shellpublic void widgetDisposed(DisposeEvent e)
DisposeListener
widgetDisposed
in interface DisposeListener
e
- an event containing information about the disposepublic boolean canReuse(IInformationControl control)
IInformationControlCreatorExtension
canReuse
in interface IInformationControlCreatorExtension
control
- the information control to testtrue
if the control can be reusedpublic boolean canReplace(IInformationControlCreator creator)
IInformationControlCreatorExtension
canReplace
in interface IInformationControlCreatorExtension
creator
- the creator to be checkedtrue
if the given creator can be replaced,
false
otherwise
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.