1 19 27 28 package org.netbeans.modules.j2ee.refactoring.safedelete; 29 30 import org.netbeans.modules.refactoring.api.AbstractRefactoring; 31 import org.netbeans.modules.refactoring.spi.RefactoringElementImplementation; 32 import org.netbeans.modules.refactoring.spi.RefactoringElementsBag; 33 import org.openide.filesystems.FileObject; 34 35 39 public abstract class BaseRefactoringHelper { 40 41 private AbstractRefactoring refactoring = null; 42 private FileObject fileObject = null; 43 44 45 public BaseRefactoringHelper(AbstractRefactoring refactoring, FileObject fileObject) { 46 this.setRefactoring(refactoring); 47 this.setFileObject(fileObject); 48 } 49 50 public void addRefactoringElement(RefactoringElementsBag refactoringElementsBag, RefactoringElementImplementation refactoringElement) { 51 refactoringElementsBag.add(getRefactoring(), refactoringElement); 52 } 53 54 55 public FileObject getFileObject() { 56 return fileObject; 57 } 58 59 public AbstractRefactoring getRefactoring() { 60 return refactoring; 61 } 62 63 public void setRefactoring(AbstractRefactoring refactoring) { 64 this.refactoring = refactoring; 65 } 66 67 public void setFileObject(FileObject fileObject) { 68 this.fileObject = fileObject; 69 } 70 71 public abstract void writeDD(); 72 73 } 74 | Popular Tags |