public TooltipInformationControlCreator(IInformationPresenter presenter) { if (presenter == null) { presenter = new AbstractTooltipInformationPresenter() { @Override protected void onUpdatePresentation(String hoverInfo, TextPresentation presentation) { } @Override protected void onHandleClick(Object data) { } }; } this.presenter = presenter; }
public DwprofileQuickAssistAssistant(de.darwinspl.preferences.resource.dwprofile.IDwprofileResourceProvider resourceProvider, de.darwinspl.preferences.resource.dwprofile.ui.IDwprofileAnnotationModelProvider annotationModelProvider) { setQuickAssistProcessor(new de.darwinspl.preferences.resource.dwprofile.ui.DwprofileQuickAssistProcessor(resourceProvider, annotationModelProvider)); setInformationControlCreator(new AbstractReusableInformationControlCreator() { public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }); }
public HyexpressionQuickAssistAssistant(eu.hyvar.feature.expression.resource.hyexpression.IHyexpressionResourceProvider resourceProvider, eu.hyvar.feature.expression.resource.hyexpression.ui.IHyexpressionAnnotationModelProvider annotationModelProvider) { setQuickAssistProcessor(new eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionQuickAssistProcessor(resourceProvider, annotationModelProvider)); setInformationControlCreator(new AbstractReusableInformationControlCreator() { public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }); }
public HyvalidityformulaQuickAssistAssistant(eu.hyvar.context.contextValidity.resource.hyvalidityformula.IHyvalidityformulaResourceProvider resourceProvider, eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.IHyvalidityformulaAnnotationModelProvider annotationModelProvider) { setQuickAssistProcessor(new eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaQuickAssistProcessor(resourceProvider, annotationModelProvider)); setInformationControlCreator(new AbstractReusableInformationControlCreator() { public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }); }
public HydatavalueQuickAssistAssistant(eu.hyvar.dataValues.resource.hydatavalue.IHydatavalueResourceProvider resourceProvider, eu.hyvar.dataValues.resource.hydatavalue.ui.IHydatavalueAnnotationModelProvider annotationModelProvider) { setQuickAssistProcessor(new eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueQuickAssistProcessor(resourceProvider, annotationModelProvider)); setInformationControlCreator(new AbstractReusableInformationControlCreator() { public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }); }
public HymappingQuickAssistAssistant(eu.hyvar.feature.mapping.resource.hymapping.IHymappingResourceProvider resourceProvider, eu.hyvar.feature.mapping.resource.hymapping.ui.IHymappingAnnotationModelProvider annotationModelProvider) { setQuickAssistProcessor(new eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingQuickAssistProcessor(resourceProvider, annotationModelProvider)); setInformationControlCreator(new AbstractReusableInformationControlCreator() { public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }); }
public HyconstraintsQuickAssistAssistant(eu.hyvar.feature.constraint.resource.hyconstraints.IHyconstraintsResourceProvider resourceProvider, eu.hyvar.feature.constraint.resource.hyconstraints.ui.IHyconstraintsAnnotationModelProvider annotationModelProvider) { setQuickAssistProcessor(new eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsQuickAssistProcessor(resourceProvider, annotationModelProvider)); setInformationControlCreator(new AbstractReusableInformationControlCreator() { public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }); }
public HymanifestQuickAssistAssistant(eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestResourceProvider resourceProvider, eu.hyvar.mspl.manifest.resource.hymanifest.ui.IHymanifestAnnotationModelProvider annotationModelProvider) { setQuickAssistProcessor(new eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestQuickAssistProcessor(resourceProvider, annotationModelProvider)); setInformationControlCreator(new AbstractReusableInformationControlCreator() { public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }); }
protected AbstractReusableInformationControlCreator createInformationControlCreator() { return new AbstractReusableInformationControlCreator() { @Override public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }; }
public InformationPresenterControlManager2(IInformationPresenter presenter) { super(new InformationPresenterHelpers.TooltipInformationControlCreator(presenter)); if (presenter instanceof IInformationPresenterAsTooltip) { IInformationPresenterAsTooltip presenterAsTooltip = (IInformationPresenterAsTooltip) presenter; presenterAsTooltip.setInformationPresenterControlManager(this); } }
/** * @param tooltipAffordanceString if null, a default is given. */ public InformationPresenterControlManager(IInformationPresenter presenter, String tooltipAffordanceString) { super(new InformationPresenterHelpers.TooltipInformationControlCreator(presenter)); this.tooltipAffordanceString = tooltipAffordanceString; if (presenter instanceof IInformationPresenterAsTooltip) { IInformationPresenterAsTooltip presenterAsTooltip = (IInformationPresenterAsTooltip) presenter; presenterAsTooltip.setInformationPresenterControlManager(this); } setCloser(new Closer()); takesFocusWhenVisible(true); ((InformationPresenterHelpers.TooltipInformationControlCreator) this.fInformationControlCreator) .setInformationPresenterControlManager(this); }
public NCLInformationControl(Shell parent, String statusFieldText, IInformationPresenter presenter) { super(parent, statusFieldText); fAdditionalTextStyles = SWT.NONE; create(); }
public NCLInformationControl(Shell parent, ToolBarManager toolBarManager, IInformationPresenter presenter) { super(parent, toolBarManager); fAdditionalTextStyles = SWT.V_SCROLL | SWT.H_SCROLL; create(); }
public NCLInformationControl(Shell parent, int textStyles, IInformationPresenter presenter, String statusFieldText) { super(parent, statusFieldText); fAdditionalTextStyles = textStyles; create(); }
public PyInformationControl(Shell parent, String statusFieldText, IInformationPresenter presenter) { super(parent, statusFieldText, presenter); }
public ToolTipPresenterHandler(Shell parent, IInformationPresenter presenter) { this(parent, presenter, null); }
/** * Creates a default information control with the given shell as parent. The given * information presenter is used to process the information to be displayed. The given * styles are applied to the created styled text widget. * * @param parent the parent shell * @param shellStyle the additional styles for the shell * @param style the additional styles for the styled text widget * @param presenter the presenter to be used */ public InformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter) { this(parent, shellStyle, style, presenter, null); }
/** * Creates a default information control with the given shell as parent. The given * information presenter is used to process the information to be displayed. The given * styles are applied to the created styled text widget. * * @param parent the parent shell * @param style the additional styles for the styled text widget * @param presenter the presenter to be used */ public InformationControl(Shell parent,int style, IInformationPresenter presenter) { this(parent, SWT.TOOL | SWT.NO_TRIM, style, presenter); }
/** * Creates a default information control with the given shell as parent. The given * information presenter is used to process the information to be displayed. The given * styles are applied to the created styled text widget. * * @param parent the parent shell * @param style the additional styles for the styled text widget * @param presenter the presenter to be used * @param statusFieldText the text to be used in the optional status field * or <code>null</code> if the status field should be hidden * @since 3.0 */ public InformationControl(Shell parent, int style, IInformationPresenter presenter, String statusFieldText) { this(parent, SWT.TOOL | SWT.NO_TRIM, style, presenter, statusFieldText); }
/** * Creates a default information control with the given shell as parent. The given * information presenter is used to process the information to be displayed. * No additional styles are applied to the styled text widget. * * @param parent the parent shell * @param presenter the presenter to be used */ public InformationControl(Shell parent, IInformationPresenter presenter) { this(parent, SWT.NONE, presenter); }
/** * Constructor * @param parent * @param presenter * @param status */ public InformationControl(Shell parent, IInformationPresenter presenter, String status) { this(parent, SWT.NONE, presenter, status); }
/** * @param parent * @param shellStyle * @param style * @param presenter */ public ThemedInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter) { super(parent, shellStyle, style, presenter); }
/** * @param parent * @param shellStyle * @param style * @param presenter * @param statusFieldText */ public ThemedInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter, String statusFieldText) { super(parent, shellStyle, style, presenter, statusFieldText); }
/** * @param parent * @param style * @param presenter */ public ThemedInformationControl(Shell parent, int style, IInformationPresenter presenter) { super(parent, style, presenter); }
/** * @param parent * @param style * @param presenter * @param statusFieldText */ public ThemedInformationControl(Shell parent, int style, IInformationPresenter presenter, String statusFieldText) { super(parent, style, presenter, statusFieldText); }
/** * @param parent * @param presenter */ public ThemedInformationControl(Shell parent, IInformationPresenter presenter) { super(parent, presenter); }
/** * @param parent * @param presenter * @param status */ public ThemedInformationControl(Shell parent, IInformationPresenter presenter, String status) { super(parent, presenter, status); }
/** * Creates a new tooltip handler * * @param parent the parent Shell */ public ToolTipPresenterHandler(Shell parent, IInformationPresenter presenter, String tooltipAffordanceString) { this.presenter = presenter; informationPresenterManager = new InformationPresenterControlManager(presenter, tooltipAffordanceString); }