congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
org.eclipse.jdt.internal.corext.refactoring.util
Code IndexAdd Tabnine to your IDE (free)

How to use org.eclipse.jdt.internal.corext.refactoring.util

Best Java code snippets using org.eclipse.jdt.internal.corext.refactoring.util (Showing top 20 results out of 315)

origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

  @Override
  public String toString() {
    return getSourceRange() + " in " + super.toString(); //$NON-NLS-1$
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected IFile[] getChangedFiles() throws CoreException {
  return ResourceUtil.getFiles(fChangeManager.getAllCompilationUnits());
}
origin: org.eclipse/org.eclipse.jdt.ui

public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException {
  if (fQualifiedNameSearchResult != null) {
    return fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges));
  } else {
    return null;
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

  @Override
  protected final void checkSelectedNodes() {
    super.checkSelectedNodes();
    RefactoringStatus status= getStatus();
    if (status.hasFatalError())
      return;
    ASTNode node= getFirstSelectedNode();
    if (node instanceof ArrayInitializer) {
      status.addFatalError(JavaManipulationMessages.CodeAnalyzer_array_initializer, JavaStatusContext.create(fCUnit, node));
    }
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

@Override
public void endVisit(ConstructorInvocation node) {
  if (getSelection().getEndVisitSelectionMode(node) == Selection.SELECTED) {
    invalidSelection(JavaManipulationMessages.SurroundWithTryCatchAnalyzer_cannotHandleThis, JavaStatusContext.create(fCUnit, node));
  }
  super.endVisit(node);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

  @Override
  public Object getCorrespondingElement() {
    if (isBinary())
      return getClassFile();
    else
      return getCompilationUnit();
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

public static IResource getResource(Object o){
  if (o instanceof IResource)
    return (IResource)o;
  if (o instanceof IJavaElement)
    return getResource((IJavaElement)o);
  return null;
}
origin: org.eclipse/org.eclipse.jdt.ui

protected void addExceptions(ITypeBinding[] exceptions) {
  if(exceptions == null)
    return;
  for (int i= 0; i < exceptions.length;i++) {
    addException(exceptions[i]);
  }            
}

origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

/**
 * Creates an status entry context for the given type root.
 *
 * @param typeRoot the type root containing the error
 * @return the status entry context or <code>Context.NULL_CONTEXT</code> if the
 *     context cannot be created
 */
public static RefactoringStatusContext create(ITypeRoot typeRoot) {
  return create(typeRoot, (ISourceRange)null);
}
origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation

  @Override
  public String toString() {
    return getSourceRange() + " in " + super.toString(); //$NON-NLS-1$
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected IFile[] getChangedFiles() {
  return ResourceUtil.getFiles(fChangeManager.getAllCompilationUnits());
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException {
  if (fQualifiedNameSearchResult != null) {
    try {
      return fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges));
    } finally {
      fQualifiedNameSearchResult= null;
    }
  } else {
    return null;
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public static IResource getResource(Object o){
  if (o instanceof IResource)
    return (IResource)o;
  if (o instanceof IJavaElement)
    return getResource((IJavaElement)o);
  return null;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected IFile[] getChangedFiles() {
  return ResourceUtil.getFiles(fChangeManager.getAllCompilationUnits());
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException {
  if (fQualifiedNameSearchResult != null) {
    return fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges));
  } else {
    return null;
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

protected IFile[] getChangedFiles() {
  return ResourceUtil.getFiles(fChangeManager.getAllCompilationUnits());
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException {
  if (fQualifiedNameSearchResult != null) {
    try {
      return fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges));
    } finally {
      fQualifiedNameSearchResult= null;
    }
  } else {
    return null;
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

protected IFile[] getChangedFiles() throws CoreException {
  return ResourceUtil.getFiles(fChangeManager.getAllCompilationUnits());
}

origin: org.eclipse/org.eclipse.jdt.ui

public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException {
  if (fQualifiedNameSearchResult != null) {
    try {
      return fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges));
    } finally {
      fQualifiedNameSearchResult= null;
    }
  } else {
    return null;
  }
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException {
  if (fQualifiedNameSearchResult != null) {
    return fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges));
  } else {
    return null;
  }
}
org.eclipse.jdt.internal.corext.refactoring.util

Most used classes

  • CodeAnalyzer
  • CommentAnalyzer
  • RefactoringASTParser
  • JavaElementUtil
    Utility methods for the Java Model.
  • ResourceUtil
  • TightSourceRangeComputer,
  • AbstractExceptionAnalyzer,
  • Changes,
  • JavaStatusContext,
  • JavadocUtil,
  • NoCommentSourceRangeComputer,
  • QualifiedNameFinder$ResultCollector,
  • QualifiedNameFinder,
  • QualifiedNameSearchResult,
  • RefactoringFileBuffers,
  • SelectionAwareSourceRangeComputer,
  • StatementAnalyzer,
  • SurroundWithAnalyzer,
  • TextChangeManager
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now