1 19 package org.netbeans.modules.refactoring.spi; 20 21 import java.util.ArrayList ; 22 import java.util.Collection ; 23 import java.util.List ; 24 import org.netbeans.modules.refactoring.api.impl.SPIAccessor; 25 import org.netbeans.modules.refactoring.api.RefactoringSession; 26 import org.netbeans.modules.refactoring.spi.RefactoringElementsBag; 27 28 32 final class AccessorImpl extends SPIAccessor { 33 public RefactoringElementsBag createBag(RefactoringSession session, List delegate) { 34 assert session != null && delegate != null; 35 return new RefactoringElementsBag(session, delegate); 36 } 37 38 public Collection getReadOnlyFiles(RefactoringElementsBag bag) { 39 return bag.getReadOnlyFiles(); 40 } 41 42 public ArrayList <Transaction> getCommits(RefactoringElementsBag bag) { 43 return bag.commits; 44 } 45 46 public ArrayList <Transaction> getFileChanges(RefactoringElementsBag bag) { 47 return bag.fileChanges; 48 } 49 50 51 } 52 | Popular Tags |