1 11 package org.eclipse.ui.texteditor; 12 13 14 15 import org.eclipse.jface.action.IAction; 16 import org.eclipse.jface.text.IRegion; 17 import org.eclipse.jface.viewers.ISelectionProvider; 18 19 import org.eclipse.ui.IEditorPart; 20 21 22 62 public interface ITextEditor extends IEditorPart { 63 64 69 IDocumentProvider getDocumentProvider(); 70 71 77 void close(boolean save); 78 79 84 boolean isEditable(); 85 86 90 void doRevertToSaved(); 91 92 99 void setAction(String actionID, IAction action); 100 101 108 IAction getAction(String actionId); 109 110 128 void setActionActivationCode(String actionId, char activationCharacter, int activationKeyCode, int activationStateMask); 129 130 137 void removeActionActivationCode(String actionId); 138 139 147 boolean showsHighlightRangeOnly(); 148 149 158 void showHighlightRangeOnly(boolean showHighlightRangeOnly); 159 160 170 void setHighlightRange(int offset, int length, boolean moveCursor); 171 172 178 IRegion getHighlightRange(); 179 180 183 void resetHighlightRange(); 184 185 191 ISelectionProvider getSelectionProvider(); 192 193 199 void selectAndReveal(int offset, int length); 200 } 201 | Popular Tags |