1 19 package org.netbeans.modules.refactoring.api; 20 21 import java.util.Collection ; 22 import org.netbeans.modules.refactoring.api.impl.APIAccessor; 23 import org.netbeans.modules.refactoring.spi.GuardedBlockHandler; 24 import org.netbeans.modules.refactoring.spi.ProblemDetailsImplementation; 25 import org.netbeans.modules.refactoring.spi.RefactoringElementImplementation; 26 27 31 final class AccessorImpl extends APIAccessor { 32 public Collection <GuardedBlockHandler> getGBHandlers(AbstractRefactoring refactoring) { 33 assert refactoring != null; 34 return refactoring.getGBHandlers(); 35 } 36 37 public Problem chainProblems(Problem p, Problem p1) { 38 return AbstractRefactoring.chainProblems(p, p1); 39 } 40 41 public ProblemDetails createProblemDetails(ProblemDetailsImplementation pdi) { 42 assert pdi != null; 43 return new ProblemDetails(pdi); 44 } 45 46 public boolean isCommit(RefactoringSession session) { 47 return session.realcommit; 48 } 49 50 public RefactoringElementImplementation getRefactoringElementImplementation(RefactoringElement el) { 51 return el.impl; 52 } 53 } 54 | Popular Tags |