1 11 package org.eclipse.jface.contentassist; 12 13 import org.eclipse.swt.custom.VerifyKeyListener; 14 import org.eclipse.swt.events.KeyListener; 15 import org.eclipse.swt.events.SelectionListener; 16 import org.eclipse.swt.graphics.Point; 17 import org.eclipse.swt.widgets.Control; 18 19 import org.eclipse.jface.text.IDocument; 20 import org.eclipse.jface.text.IEventConsumer; 21 22 23 29 public interface IContentAssistSubjectControl { 30 31 36 Control getControl(); 37 38 50 int getLineHeight(); 51 52 66 int getCaretOffset(); 67 68 84 Point getLocationAtOffset(int offset); 85 86 98 String getLineDelimiter(); 99 100 110 Point getWidgetSelectionRange(); 111 112 118 Point getSelectedRange(); 119 120 127 void setSelectedRange(int offset, int length); 128 129 136 void revealRange(int offset, int length); 137 138 143 IDocument getDocument(); 144 145 160 boolean appendVerifyKeyListener(VerifyKeyListener verifyKeyListener); 161 162 176 boolean prependVerifyKeyListener(VerifyKeyListener verifyKeyListener); 177 178 185 void removeVerifyKeyListener(VerifyKeyListener verifyKeyListener); 186 187 193 boolean supportsVerifyKeyListener(); 194 195 211 void addKeyListener(KeyListener keyListener); 212 213 227 void removeKeyListener(KeyListener keyListener); 228 229 236 void setEventConsumer(IEventConsumer eventConsumer); 237 238 250 void removeSelectionListener(SelectionListener selectionListener); 251 252 265 boolean addSelectionListener(SelectionListener selectionListener); 266 } 267 | Popular Tags |