org.eclipse.jface.text.DefaultInformationControl.IInformationPresenter Java Examples
The following examples show how to use
org.eclipse.jface.text.DefaultInformationControl.IInformationPresenter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InformationPresenterHelpers.java From Pydev with Eclipse Public License 1.0 | 6 votes |
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; }
Example #2
Source File: InformationPresenterControlManager.java From Pydev with Eclipse Public License 1.0 | 5 votes |
/** * @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); }
Example #3
Source File: InformationPresenterControlManager2.java From Pydev with Eclipse Public License 1.0 | 5 votes |
public InformationPresenterControlManager2(IInformationPresenter presenter) { super(new InformationPresenterHelpers.TooltipInformationControlCreator(presenter)); if (presenter instanceof IInformationPresenterAsTooltip) { IInformationPresenterAsTooltip presenterAsTooltip = (IInformationPresenterAsTooltip) presenter; presenterAsTooltip.setInformationPresenterControlManager(this); } }
Example #4
Source File: XtextQuickAssistAssistant.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected AbstractReusableInformationControlCreator createInformationControlCreator() { return new AbstractReusableInformationControlCreator() { @Override public IInformationControl doCreateInformationControl(Shell parent) { return new DefaultInformationControl(parent, (IInformationPresenter) null); } }; }
Example #5
Source File: ToolTipPresenterHandler.java From Pydev with Eclipse Public License 1.0 | 4 votes |
public ToolTipPresenterHandler(Shell parent, IInformationPresenter presenter) { this(parent, presenter, null); }
Example #6
Source File: InformationPresenterHelpers.java From Pydev with Eclipse Public License 1.0 | 4 votes |
public PyInformationControl(Shell parent, String statusFieldText, IInformationPresenter presenter) { super(parent, statusFieldText, presenter); }
Example #7
Source File: ThemedInformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * @param parent * @param style * @param presenter * @param statusFieldText */ public ThemedInformationControl(Shell parent, int style, IInformationPresenter presenter, String statusFieldText) { super(parent, style, presenter, statusFieldText); }
Example #8
Source File: ToolTipPresenterHandler.java From Pydev with Eclipse Public License 1.0 | 2 votes |
/** * 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); }
Example #9
Source File: ThemedInformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * @param parent * @param presenter * @param status */ public ThemedInformationControl(Shell parent, IInformationPresenter presenter, String status) { super(parent, presenter, status); }
Example #10
Source File: ThemedInformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * @param parent * @param presenter */ public ThemedInformationControl(Shell parent, IInformationPresenter presenter) { super(parent, presenter); }
Example #11
Source File: ThemedInformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * @param parent * @param style * @param presenter */ public ThemedInformationControl(Shell parent, int style, IInformationPresenter presenter) { super(parent, style, presenter); }
Example #12
Source File: ThemedInformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * @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); }
Example #13
Source File: ThemedInformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * @param parent * @param shellStyle * @param style * @param presenter */ public ThemedInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter) { super(parent, shellStyle, style, presenter); }
Example #14
Source File: InformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * Constructor * @param parent * @param presenter * @param status */ public InformationControl(Shell parent, IInformationPresenter presenter, String status) { this(parent, SWT.NONE, presenter, status); }
Example #15
Source File: InformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * 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); }
Example #16
Source File: InformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * 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); }
Example #17
Source File: InformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * 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); }
Example #18
Source File: InformationControl.java From APICloud-Studio with GNU General Public License v3.0 | 2 votes |
/** * 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); }