Package org.eclipse.jface.text
Class AbstractReusableInformationControlCreator
java.lang.Object
org.eclipse.jface.text.AbstractReusableInformationControlCreator
- All Implemented Interfaces:
EventListener,IInformationControlCreator,IInformationControlCreatorExtension,DisposeListener
public abstract class AbstractReusableInformationControlCreator
extends Object
implements IInformationControlCreator, IInformationControlCreatorExtension, DisposeListener
Abstract class for a reusable information control creators.
- Since:
- 3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanReplace(IInformationControlCreator creator) Tests whether this information control creator can replace the given information control creator.booleancanReuse(IInformationControl control) Tests if an existing information control can be reused.createInformationControl(Shell parent) Creates a new information control with the given shell as the control's parent.protected abstract IInformationControldoCreateInformationControl(Shell parent) Creates the control.voidSent when the widget is disposed.
-
Constructor Details
-
AbstractReusableInformationControlCreator
public AbstractReusableInformationControlCreator()
-
-
Method Details
-
doCreateInformationControl
Creates the control.- Parameters:
parent- the parent shell- Returns:
- the created information control
-
createInformationControl
Description copied from interface:IInformationControlCreatorCreates a new information control with the given shell as the control's parent.- Specified by:
createInformationControlin interfaceIInformationControlCreator- Parameters:
parent- the parent shell- Returns:
- the created information control
-
widgetDisposed
Description copied from interface:DisposeListenerSent when the widget is disposed.- Specified by:
widgetDisposedin interfaceDisposeListener- Parameters:
e- an event containing information about the dispose
-
canReuse
Description copied from interface:IInformationControlCreatorExtensionTests if an existing information control can be reused.- Specified by:
canReusein interfaceIInformationControlCreatorExtension- Parameters:
control- the information control to test- Returns:
trueif the control can be reused
-
canReplace
Description copied from interface:IInformationControlCreatorExtensionTests whether this information control creator can replace the given information control creator. This is the case if the two creators create the same kind of information controls.- Specified by:
canReplacein interfaceIInformationControlCreatorExtension- Parameters:
creator- the creator to be checked- Returns:
trueif the given creator can be replaced,falseotherwise
-