Home
last modified time | relevance | path

Searched refs:ITextSelection (Results 1 – 25 of 256) sorted by relevance

1234567891011

/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/
H A DAntEditorTests.java69 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testPropertyOpenDeclaration()
126 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testTaskdefOpenDeclaration()
144 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testMacroDefOpenDeclaration()
165 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testMacroDefOpenDeclarationWithURI()
179 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testSelfClosingTagOpenDeclaration()
190 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testMacroDefAttributeOpenDeclaration()
201 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testRefOpenDeclaration()
212 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testTargetOpenDeclaration()
223 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testExtensionPointOpenDeclaration()
252 ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection(); in testAugmentOpenAndSelect()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/
H A DSelectionDispatchAction.java27 import org.eclipse.jface.text.ITextSelection;
197 selectionChanged((ITextSelection)selection); in selectionChanged()
208 run((ITextSelection)selection); in run()
217 public void selectionChanged(ITextSelection selection) { in selectionChanged()
227 public void run(ITextSelection selection) { in run()
265 } else if (selection instanceof ITextSelection) { in dispatchSelectionChanged()
266 selectionChanged((ITextSelection)selection); in dispatchSelectionChanged()
277 } else if (selection instanceof ITextSelection) { in dispatchRun()
278 run((ITextSelection)selection); in dispatchRun()
/dports/java/phpeclipse/plugins/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/actions/
H A DSelectionDispatchAction.java14 import org.eclipse.jface.text.ITextSelection;
143 protected void selectionChanged(ITextSelection selection) { in selectionChanged()
151 protected void run(ITextSelection selection) { in run()
190 } else if (selection instanceof ITextSelection) { in dispatchSelectionChanged()
191 selectionChanged((ITextSelection) selection); in dispatchSelectionChanged()
200 } else if (selection instanceof ITextSelection) { in dispatchRun()
201 run((ITextSelection) selection); in dispatchRun()
/dports/java/phpeclipse/plugins/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/
H A DSelectionDispatchAction.java14 import org.eclipse.jface.text.ITextSelection;
143 protected void selectionChanged(ITextSelection selection) { in selectionChanged()
151 protected void run(ITextSelection selection) { in run()
190 } else if (selection instanceof ITextSelection) { in dispatchSelectionChanged()
191 selectionChanged((ITextSelection) selection); in dispatchSelectionChanged()
200 } else if (selection instanceof ITextSelection) { in dispatchRun()
201 run((ITextSelection) selection); in dispatchRun()
H A DBlockCommentAction.java27 import org.eclipse.jface.text.ITextSelection;
206 ITextSelection selection = getCurrentSelection(); in run()
311 protected ITextSelection getCurrentSelection() { in getCurrentSelection()
317 if (selection instanceof ITextSelection) in getCurrentSelection()
318 return (ITextSelection) selection; in getCurrentSelection()
339 protected abstract void runInternal(ITextSelection selection, in runInternal()
351 protected abstract boolean isValidSelection(ITextSelection selection); in isValidSelection()
H A DSelectionConverter.java24 import org.eclipse.jface.text.ITextSelection;
101 ITextSelection selection = (ITextSelection) editor in codeResolveOrInput()
154 return codeResolve(getInput(editor), (ITextSelection) editor in codeResolve()
189 return getElementAtOffset(getInput(editor), (ITextSelection) editor in getElementAtOffset()
226 ITextSelection selection) throws JavaModelException { in codeResolve()
238 ITextSelection selection) throws JavaModelException { in getElementAtOffset()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.text/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/
H A DSelectionProcessor.java171 ITextSelection ts= (ITextSelection)selection;
177 ITextSelection ts= (ITextSelection)selection;
183 ITextSelection ts= (ITextSelection)selection;
189 ITextSelection ts= (ITextSelection)selection;
195 ITextSelection ts= (ITextSelection)selection;
203 ITextSelection ts= (ITextSelection)selection;
211 ITextSelection ts= (ITextSelection)selection;
219 ITextSelection ts= (ITextSelection)selection;
225 ITextSelection ts= (ITextSelection)selection;
231 ITextSelection ts= (ITextSelection)selection;
[all …]
/dports/java/phpeclipse/plugins/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/viewsupport/
H A DSelectionListenerWithASTManager.java22 import org.eclipse.jface.text.ITextSelection;
73 if (selection instanceof ITextSelection) { in PartListenerGroup()
74 fireSelectionChanged((ITextSelection) selection); in PartListenerGroup()
82 if (selection instanceof ITextSelection) { in PartListenerGroup()
83 firePostSelectionChanged((ITextSelection) selection); in PartListenerGroup()
121 public void fireSelectionChanged(final ITextSelection selection) { in fireSelectionChanged()
127 public void firePostSelectionChanged(final ITextSelection selection) { in firePostSelectionChanged()
149 ITextSelection selection, IProgressMonitor monitor) { in calculateASTandInform()
238 public void forceSelectionChange(ITextEditor part, ITextSelection selection) { in forceSelectionChange()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/
H A DToggleBreakpointAction.java27 import org.eclipse.jface.text.ITextSelection;
98 ITextSelection selection = getTextSelection(document, line); in doIt()
194 ITextSelection selection = getTextSelection(document, line); in update()
234 private ITextSelection getTextSelection(IDocument document, int line) throws BadLocationException { in getTextSelection()
236 ITextSelection textSelection = new TextSelection(document, region.getOffset(), 0); in getTextSelection()
240 if (selection instanceof ITextSelection in getTextSelection()
241 && ((ITextSelection) selection).getStartLine() <= line in getTextSelection()
242 && ((ITextSelection) selection).getEndLine() >= line) { in getTextSelection()
243 textSelection = (ITextSelection) selection; in getTextSelection()
H A DRunToLineAction.java33 import org.eclipse.jface.text.ITextSelection;
134 ITextSelection selection = getTextSelection(document, line); in doIt()
240 private ITextSelection getTextSelection(IDocument document, int line) throws BadLocationException { in getTextSelection()
242 ITextSelection textSelection = new TextSelection(document, region.getOffset(), 0); in getTextSelection()
246 …if (selection instanceof ITextSelection && ((ITextSelection) selection).getStartLine() <= line && … in getTextSelection()
247 textSelection = (ITextSelection) selection; in getTextSelection()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/
H A DSelectionConverter.java30 import org.eclipse.jface.text.ITextSelection;
123 ITextSelection selection= (ITextSelection)editor.getSelectionProvider().getSelection(); in codeResolveOrInputForked()
154 return codeResolve(input, (ITextSelection) editor.getSelectionProvider().getSelection()); in codeResolve()
173 …return performForkedCodeResolve(input, (ITextSelection) editor.getSelectionProvider().getSelection… in codeResolveForked()
202 return getElementAtOffset(input, (ITextSelection) editor.getSelectionProvider().getSelection()); in getElementAtOffset()
248 …private static IJavaElement[] performForkedCodeResolve(final ITypeRoot input, final ITextSelection in performForkedCodeResolve()
265 …public static IJavaElement[] codeResolve(IJavaElement input, ITextSelection selection) throws Java… in codeResolve()
278 …public static IJavaElement getElementAtOffset(ITypeRoot input, ITextSelection selection) throws Ja… in getElementAtOffset()
288 …public static IJavaElement resolveEnclosingElement(JavaEditor editor, ITextSelection selection) th… in resolveEnclosingElement()
295 …public static IJavaElement resolveEnclosingElement(IJavaElement input, ITextSelection selection) t… in resolveEnclosingElement()
H A DBlockCommentAction.java33 import org.eclipse.jface.text.ITextSelection;
186 ITextSelection selection= getCurrentSelection(); in run()
283 protected ITextSelection getCurrentSelection() { in getCurrentSelection()
289 if (selection instanceof ITextSelection) in getCurrentSelection()
290 return (ITextSelection) selection; in getCurrentSelection()
305 …protected abstract void runInternal(ITextSelection selection, IDocumentExtension3 docExtension, Ed… in runInternal()
313 protected abstract boolean isValidSelection(ITextSelection selection); in isValidSelection()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/
H A DSelectionListenerWithASTManager.java33 import org.eclipse.jface.text.ITextSelection;
87 if (selection instanceof ITextSelection) { in PartListenerGroup()
88 fireSelectionChanged((ITextSelection) selection); in PartListenerGroup()
96 if (part == fPart && selection instanceof ITextSelection) in PartListenerGroup()
97 firePostSelectionChanged((ITextSelection) selection); in PartListenerGroup()
131 public void fireSelectionChanged(final ITextSelection selection) { in fireSelectionChanged()
142 public void firePostSelectionChanged(final ITextSelection selection) { in firePostSelectionChanged()
169 …protected final IStatus calculateASTandInform(ITypeRoot input, ITextSelection selection, IProgress… in calculateASTandInform()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.text/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/
H A DMoveLinesAction.java28 import org.eclipse.jface.text.ITextSelection;
145 private boolean containedByVisibleRegion(ITextSelection selection, ITextViewer viewer) { in containedByVisibleRegion()
216 …private ITextSelection getMovingSelection(IDocument document, ITextSelection selection, ITextViewe… in getMovingSelection()
246 private ITextSelection getSkippedLine(IDocument document, ITextSelection selection) { in getSkippedLine()
294 ITextSelection sel= (ITextSelection) fTextViewer.getSelectionProvider().getSelection(); in runWithEvent()
298 ITextSelection skippedLine= getSkippedLine(document, sel); in runWithEvent()
304 ITextSelection movingArea= getMovingSelection(document, sel, fTextViewer); in runWithEvent()
H A DDeleteLineAction.java28 import org.eclipse.jface.text.ITextSelection;
159 private static ITextSelection getSelection(ITextEditor editor) { in getSelection()
166 if (!(selection instanceof ITextSelection)) in getSelection()
169 return (ITextSelection) selection; in getSelection()
189 ITextSelection selection= getSelection(editor); in run()
H A DTextSelectionNavigationLocation.java24 import org.eclipse.jface.text.ITextSelection;
74 ITextSelection selection= (ITextSelection) s; in TextSelectionNavigationLocation()
175 if (selection instanceof ITextSelection) { in equalsLocationOf()
176 ITextSelection textSelection= (ITextSelection) selection; in equalsLocationOf()
343 ITextSelection selection= (ITextSelection) s; in update()
H A DJoinLinesAction.java25 import org.eclipse.jface.text.ITextSelection;
68 ITextSelection selection= getSelection(editor); in run()
109 private static ITextSelection getSelection(ITextEditor editor) { in getSelection()
116 if (!(selection instanceof ITextSelection)) in getSelection()
119 return (ITextSelection) selection; in getSelection()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.ui/tests/org.eclipse.ui.tests.views.properties.tabbed/src/org/eclipse/ui/tests/views/properties/tabbed/text/
H A DTextTestsLabelProvider.java18 import org.eclipse.jface.text.ITextSelection;
45 if (obj instanceof ITextSelection) { in getText()
46 ITextSelection textSelection = (ITextSelection) obj; in getText()
H A DTextTestsTabDescriptorProvider.java20 import org.eclipse.jface.text.ITextSelection;
36 if (selection instanceof ITextSelection) { in getTabDescriptors()
37 ITextSelection textSelection = (ITextSelection) selection; in getTabDescriptors()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/propertiesfileeditor/
H A DOpenAction.java17 import org.eclipse.jface.text.ITextSelection;
57 public void selectionChanged(ITextSelection selection) { in selectionChanged()
61 private boolean checkEnabled(ITextSelection selection) { in checkEnabled()
69 public void run(ITextSelection selection) { in run()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/
H A DJavaMoveLinesAction.java28 import org.eclipse.jface.text.ITextSelection;
192 private boolean containedByVisibleRegion(ITextSelection selection, ISourceViewer viewer) { in containedByVisibleRegion()
247 …private ITextSelection getMovingSelection(IDocument document, ITextSelection selection, ISourceVie… in getMovingSelection()
269 private ITextSelection getSkippedLine(IDocument document, ITextSelection selection) { in getSkippedLine()
321 ITextSelection sel= (ITextSelection) viewer.getSelectionProvider().getSelection(); in runWithEvent()
325 ITextSelection skippedLine= getSkippedLine(document, sel); in runWithEvent()
331 ITextSelection movingArea= getMovingSelection(document, sel, viewer); in runWithEvent()
417 …private ILineRange getLineRange(IDocument document, ITextSelection selection) throws BadLocationEx… in getLineRange()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/
H A DTextSelectionConverter.java16 import org.eclipse.jface.text.ITextSelection;
56 …public static IJavaElement[] codeResolve(JavaEditor editor, ITextSelection selection) throws JavaM… in codeResolve()
68 …public static IJavaElement getElementAtOffset(JavaEditor editor, ITextSelection selection) throws … in getElementAtOffset()
84 …private static IJavaElement[] codeResolve(IJavaElement input, ITextSelection selection) throws Jav… in codeResolve()
98 …private static IJavaElement getElementAtOffset(IJavaElement input, ITextSelection selection) throw… in getElementAtOffset()
H A DCopyToClipboardAction.java24 import org.eclipse.jface.text.ITextSelection;
58 public void selectionChanged(ITextSelection selection) { in selectionChanged()
63 public void run(ITextSelection selection) { in run()
72 private void copyToClipboard(ITextSelection selection, int repeatCount) { in copyToClipboard()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.debug/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/breakpoints/
H A DPDABreakpointAdapter.java30 import org.eclipse.jface.text.ITextSelection;
46 ITextSelection textSelection = (ITextSelection) selection; in toggleLineBreakpoints()
104 …bleAndFunctionName != null && part instanceof ITextEditor && selection instanceof ITextSelection) { in toggleWatchpoints()
106 int lineNumber = ((ITextSelection)selection).getStartLine(); in toggleWatchpoints()
151 if (editor != null && selection instanceof ITextSelection) { in getVariableAndFunctionName()
152 ITextSelection textSelection = (ITextSelection) selection; in getVariableAndFunctionName()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/internal/
H A DExtendedTextSelectionActionFilter.java16 import org.eclipse.jface.text.ITextSelection;
44 ITextSelection sel = (ITextSelection) target; in testAttribute()

1234567891011