Examples of ISelectionRequestor


Examples of org.aspectj.org.eclipse.jdt.internal.codeassist.ISelectionRequestor

/**
* Returns a selection requestor that wraps the given requestor and shift the problems
* according to the start offset and line number offset of the code snippet in the generated compilation unit.
*/
public ISelectionRequestor getSelectionRequestor(final ISelectionRequestor originalRequestor) {
  return new ISelectionRequestor() {
    public void acceptType(char[] packageName, char[] typeName, int modifiers, boolean isDeclaration, char[] uniqueKey, int start, int end) {
      originalRequestor.acceptType(packageName, typeName, modifiers, isDeclaration, uniqueKey, start, end);
    }
    public void acceptError(CategorizedProblem error) {
      error.setSourceLineNumber(error.getSourceLineNumber() -  CodeSnippetToCuMapper.this.lineNumberOffset);
View Full Code Here

Examples of org.eclipse.jdt.internal.codeassist.ISelectionRequestor

/**
* Returns a selection requestor that wraps the given requestor and shift the problems
* according to the start offset and line number offset of the code snippet in the generated compilation unit.
*/
public ISelectionRequestor getSelectionRequestor(final ISelectionRequestor originalRequestor) {
  return new ISelectionRequestor() {
    public void acceptType(char[] packageName, char[] typeName, int modifiers, boolean isDeclaration, char[] uniqueKey, int start, int end) {
      originalRequestor.acceptType(packageName, typeName, modifiers, isDeclaration, uniqueKey, start, end);
    }
    public void acceptError(CategorizedProblem error) {
      error.setSourceLineNumber(error.getSourceLineNumber() -  CodeSnippetToCuMapper.this.lineNumberOffset);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.