@Override public final void acceptAST(final ICompilationUnit unit, final CompilationUnit node) { try { final Collection<IType> types= unitToTypes.get(unit); if (types != null) { for (final Iterator<IType> innerIterator= types.iterator(); innerIterator.hasNext();) { final IType currentType= innerIterator.next(); final AbstractTypeDeclaration currentDeclaration= ASTNodeSearchUtil.getAbstractTypeDeclarationNode(currentType, node); if (currentDeclaration != null) createModifiedSubType(unit, node, extractedType, extractBindings[0], currentDeclaration, status); } } } catch (CoreException exception) { JavaPlugin.log(exception); status.merge(RefactoringStatus.createFatalErrorStatus(exception.getLocalizedMessage())); } finally { subsubMonitor.worked(1); } }
public final void acceptAST(final ICompilationUnit unit, final CompilationUnit node) { try { final Collection types= (Collection) unitToTypes.get(unit); if (types != null) { for (final Iterator innerIterator= types.iterator(); innerIterator.hasNext();) { final IType currentType= (IType) innerIterator.next(); final AbstractTypeDeclaration currentDeclaration= ASTNodeSearchUtil.getAbstractTypeDeclarationNode(currentType, node); if (currentDeclaration != null) createModifiedSubType(unit, node, extractedType, extractBindings[0], currentDeclaration, status); } } } catch (CoreException exception) { JavaPlugin.log(exception); status.merge(RefactoringStatus.createFatalErrorStatus(exception.getLocalizedMessage())); } finally { subsubMonitor.worked(1); } }
@Override public final void acceptAST(final ICompilationUnit unit, final CompilationUnit node) { try { final Collection<IType> types= unitToTypes.get(unit); if (types != null) { for (final Iterator<IType> innerIterator= types.iterator(); innerIterator.hasNext();) { final IType currentType= innerIterator.next(); final AbstractTypeDeclaration currentDeclaration= ASTNodeSearchUtil.getAbstractTypeDeclarationNode(currentType, node); if (currentDeclaration != null) createModifiedSubType(unit, node, extractedType, extractBindings[0], currentDeclaration, status); } } } catch (CoreException exception) { JavaPlugin.log(exception); status.merge(RefactoringStatus.createFatalErrorStatus(exception.getLocalizedMessage())); } finally { subsubMonitor.worked(1); } }