org.eclipse.jface.text.contentassist.IContextInformationValidator Java Examples

The following examples show how to use org.eclipse.jface.text.contentassist.IContextInformationValidator. 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: ContextInformationPopup.java    From APICloud-Studio with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates a context frame for the given offset.
 * 
 * @param information
 *            the context information
 * @param offset
 *            the offset
 * @return the created context frame
 * @since 3.0
 */
private ContextFrame createContextFrame(IContextInformation information, int offset)
{
	IContextInformationValidator validator = fContentAssistSubjectControlAdapter.getContextInformationValidator(
			fContentAssistant, offset);

	if (validator != null)
	{
		int beginOffset = (information instanceof IContextInformationExtension) ? ((IContextInformationExtension) information)
				.getContextInformationPosition() : offset;
		if (beginOffset == -1)
		{
			beginOffset = offset;
		}
		int visibleOffset = fContentAssistSubjectControlAdapter.getWidgetSelectionRange().x
				- (offset - beginOffset);
		IContextInformationPresenter presenter = fContentAssistSubjectControlAdapter
				.getContextInformationPresenter(fContentAssistant, offset);
		return new ContextFrame(information, beginOffset, offset, visibleOffset, validator, presenter);
	}

	return null;
}
 
Example #2
Source File: CSSContentAssistProcessor.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator()
{
	if (this._validator == null)
	{
		this._validator = new CSSContextInformationValidator();
	}

	return this._validator;
}
 
Example #3
Source File: ContextInformationPopup.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
public ContextFrame(IContextInformation information, int beginOffset, int offset, int visibleOffset,
		IContextInformationValidator validator, IContextInformationPresenter presenter)
{
	fInformation = information;
	fBeginOffset = beginOffset;
	fOffset = offset;
	fVisibleOffset = visibleOffset;
	fValidator = validator;
	fPresenter = presenter;
}
 
Example #4
Source File: HTMLContentAssistProcessor.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator()
{
	if (this._validator == null)
	{
		this._validator = new HTMLContextInformationValidator();
	}

	return this._validator;
}
 
Example #5
Source File: PydevConsoleCompletionProcessor.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
    if (contextInformationValidator == null) {
        contextInformationValidator = new PyContextInformationValidator();
    }

    return contextInformationValidator;
}
 
Example #6
Source File: SimpleAssistProcessor.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @return the validator we should use
 */
@Override
public IContextInformationValidator getContextInformationValidator() {
    final IContextInformationValidator defaultContextInformationValidator = defaultPythonProcessor
            .getContextInformationValidator();
    return new ContextInformationDelegator(defaultContextInformationValidator);
}
 
Example #7
Source File: JavadocCompletionProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * @see IContentAssistProcessor#getContextInformationValidator()
 */
@Override
public IContextInformationValidator getContextInformationValidator() {
	return null;
}
 
Example #8
Source File: CommonContentAssistProcessor.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator()
{
	return null;
}
 
Example #9
Source File: FieldNameProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
	return null; //no context
}
 
Example #10
Source File: JavaSourcePackageFragmentRootCompletionProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
	return null;
}
 
Example #11
Source File: JavaPackageFragmentRootCompletionProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
	return null; //no context
}
 
Example #12
Source File: JavaPackageCompletionProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
	return null; //no context
}
 
Example #13
Source File: CUPositionCompletionProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
	return null; //no context
}
 
Example #14
Source File: VariableNamesProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
	return null; //no context
}
 
Example #15
Source File: ContentAssistProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
	return null;
}
 
Example #16
Source File: JavaCompletionProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
	if (fValidator == null)
		fValidator= new JavaParameterListValidator();
	return fValidator;
}
 
Example #17
Source File: RegExContentAssistProcessor.java    From eclipse-cs with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
  return fValidator;
}
 
Example #18
Source File: TemplateVariableProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
	return null;
}
 
Example #19
Source File: TextUMLCompletionProcessor.java    From textuml with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
 
Example #20
Source File: TaskCompletionProcessor.java    From codeexamples-eclipse with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
	return null;
}
 
Example #21
Source File: JdbcSQLContentAssistProcessor.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator( )
{
	return null;
}
 
Example #22
Source File: JSCompletionProcessor.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
public IContextInformationValidator getContextInformationValidator( )
{
	return null;
}
 
Example #23
Source File: PythonCompletionProcessor.java    From Pydev with Eclipse Public License 1.0 4 votes vote down vote up
/**
 *
 * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationValidator()
 */
@Override
public IContextInformationValidator getContextInformationValidator() {
    return this.contextInformationValidator;
}
 
Example #24
Source File: SimpleAssistProcessor.java    From Pydev with Eclipse Public License 1.0 4 votes vote down vote up
private ContextInformationDelegator(IContextInformationValidator defaultContextInformationValidator) {
    Assert.isTrue(defaultContextInformationValidator instanceof IContextInformationPresenter);
    this.defaultContextInformationValidator = defaultContextInformationValidator;
}
 
Example #25
Source File: LangContentAssistProcessor.java    From goclipse with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
	return null; // TODO: need to add proper support for this
}
 
Example #26
Source File: ContenAssistProcessorExt.java    From goclipse with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
	return null;
}
 
Example #27
Source File: ExpressionContentAssistProcessor.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
 
Example #28
Source File: PatternExpressionCompletionProcessor.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
    return null;
}
 
Example #29
Source File: ImpexCommentContentAssistProcessor.java    From hybris-commerce-eclipse-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
	
	return iciv;
}
 
Example #30
Source File: PropertiesContentAssistProcessor.java    From eclipse-cs with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public IContextInformationValidator getContextInformationValidator() {
  return mValidator;
}