1 19 package org.netbeans.modules.refactoring.spi; 20 21 import org.netbeans.modules.refactoring.api.RefactoringElement; 22 import org.openide.filesystems.FileObject; 23 import org.openide.text.PositionBounds; 24 25 36 public interface RefactoringElementImplementation { 37 38 int NORMAL = RefactoringElement.NORMAL; 39 40 int WARNING = RefactoringElement.WARNING; 41 43 int GUARDED = RefactoringElement.GUARDED; 44 45 int READ_ONLY = RefactoringElement.READ_ONLY; 46 47 50 String getText(); 51 52 55 String getDisplayText(); 56 57 60 boolean isEnabled(); 61 62 65 void setEnabled(boolean enabled); 66 67 78 void performChange(); 79 80 91 void undoChange(); 92 93 99 Object getComposite(); 100 101 104 FileObject getParentFile(); 105 106 109 PositionBounds getPosition(); 110 111 115 int getStatus(); 116 117 121 void setStatus(int status); 122 123 127 void openInEditor(); 128 129 133 void showPreview(); 134 135 } 136 | Popular Tags |