Java 类org.eclipse.jface.text.DefaultInformationControl.IInformationPresenter 实例源码

项目:Pydev    文件:InformationPresenterHelpers.java   
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;
}
项目:DarwinSPL    文件:DwprofileQuickAssistAssistant.java   
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);
        }
    });
}
项目:DarwinSPL    文件:HyexpressionQuickAssistAssistant.java   
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);
        }
    });
}
项目:DarwinSPL    文件:HyvalidityformulaQuickAssistAssistant.java   
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);
        }
    });
}
项目:DarwinSPL    文件:HydatavalueQuickAssistAssistant.java   
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);
        }
    });
}
项目:DarwinSPL    文件:HymappingQuickAssistAssistant.java   
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);
        }
    });
}
项目:DarwinSPL    文件:HyconstraintsQuickAssistAssistant.java   
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);
        }
    });
}
项目:DarwinSPL    文件:HymanifestQuickAssistAssistant.java   
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);
        }
    });
}
项目:bts    文件:XtextQuickAssistAssistant.java   
protected AbstractReusableInformationControlCreator createInformationControlCreator() {
    return new AbstractReusableInformationControlCreator() {
        @Override
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    };
}
项目:Pydev    文件:InformationPresenterControlManager2.java   
public InformationPresenterControlManager2(IInformationPresenter presenter) {
    super(new InformationPresenterHelpers.TooltipInformationControlCreator(presenter));
    if (presenter instanceof IInformationPresenterAsTooltip) {
        IInformationPresenterAsTooltip presenterAsTooltip = (IInformationPresenterAsTooltip) presenter;
        presenterAsTooltip.setInformationPresenterControlManager(this);
    }
}
项目:Pydev    文件:InformationPresenterControlManager.java   
/**
 * @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);
}
项目:ncl30-eclipse    文件:NCLInformationControl.java   
public NCLInformationControl(Shell parent, String statusFieldText,
        IInformationPresenter presenter) {
    super(parent, statusFieldText);
    fAdditionalTextStyles = SWT.NONE;
    create();
}
项目:ncl30-eclipse    文件:NCLInformationControl.java   
public NCLInformationControl(Shell parent, ToolBarManager toolBarManager,
        IInformationPresenter presenter) {
    super(parent, toolBarManager);
    fAdditionalTextStyles = SWT.V_SCROLL | SWT.H_SCROLL;
    create();
}
项目:ncl30-eclipse    文件:NCLInformationControl.java   
public NCLInformationControl(Shell parent, int textStyles,
        IInformationPresenter presenter, String statusFieldText) {
    super(parent, statusFieldText);
    fAdditionalTextStyles = textStyles;
    create();
}
项目:Pydev    文件:InformationPresenterHelpers.java   
public PyInformationControl(Shell parent, String statusFieldText, IInformationPresenter presenter) {
    super(parent, statusFieldText, presenter);
}
项目:Pydev    文件:ToolTipPresenterHandler.java   
public ToolTipPresenterHandler(Shell parent, IInformationPresenter presenter) {
    this(parent, presenter, null);
}
项目:APICloud-Studio    文件:InformationControl.java   
/**
 * 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);
}
项目:APICloud-Studio    文件:InformationControl.java   
/**
 * 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);
}
项目:APICloud-Studio    文件:InformationControl.java   
/**
 * 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);
}
项目:APICloud-Studio    文件:InformationControl.java   
/**
 * 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);
}
项目:APICloud-Studio    文件:InformationControl.java   
/**
 * Constructor
 * @param parent
 * @param presenter
 * @param status
 */
public InformationControl(Shell parent, IInformationPresenter presenter, String status) {
    this(parent, SWT.NONE, presenter, status);
}
项目:APICloud-Studio    文件:ThemedInformationControl.java   
/**
 * @param parent
 * @param shellStyle
 * @param style
 * @param presenter
 */
public ThemedInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter) {
    super(parent, shellStyle, style, presenter);
}
项目:APICloud-Studio    文件:ThemedInformationControl.java   
/**
 * @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);
}
项目:APICloud-Studio    文件:ThemedInformationControl.java   
/**
 * @param parent
 * @param style
 * @param presenter
 */
public ThemedInformationControl(Shell parent, int style, IInformationPresenter presenter) {
    super(parent, style, presenter);
}
项目:APICloud-Studio    文件:ThemedInformationControl.java   
/**
 * @param parent
 * @param style
 * @param presenter
 * @param statusFieldText
 */
public ThemedInformationControl(Shell parent, int style, IInformationPresenter presenter, String statusFieldText) {
    super(parent, style, presenter, statusFieldText);
}
项目:APICloud-Studio    文件:ThemedInformationControl.java   
/**
 * @param parent
 * @param presenter
 */
public ThemedInformationControl(Shell parent, IInformationPresenter presenter) {
    super(parent, presenter);
}
项目:APICloud-Studio    文件:ThemedInformationControl.java   
/**
 * @param parent
 * @param presenter
 * @param status
 */
public ThemedInformationControl(Shell parent, IInformationPresenter presenter, String status) {
    super(parent, presenter, status);
}
项目:Pydev    文件:ToolTipPresenterHandler.java   
/**
 * 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);
}