Home
last modified time | relevance | path

Searched refs:selection (Results 1 – 25 of 118) sorted by relevance

12345

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/
DUiTreeBlock.java495 ISelection selection = mTreeViewer.getSelection(); in createTreeContextMenu()
496 if (!selection.isEmpty() && selection instanceof ITreeSelection) { in createTreeContextMenu()
497 ArrayList<UiElementNode> selected = filterSelection((ITreeSelection) selection); in createTreeContextMenu()
601 private void adjustTreeButtons(ISelection selection) { in adjustTreeButtons() argument
602 mRemoveButton.setEnabled(!selection.isEmpty() && selection instanceof ITreeSelection); in adjustTreeButtons()
603 mUpButton.setEnabled(canDoTreeUp(selection)); in adjustTreeButtons()
604 mDownButton.setEnabled(canDoTreeDown(selection)); in adjustTreeButtons()
645 private ArrayList<UiElementNode> filterSelection(ITreeSelection selection) { in filterSelection() argument
648 for (Iterator<Object> it = selection.iterator(); it.hasNext(); ) { in filterSelection()
667 ISelection selection = mTreeViewer.getSelection(); in doTreeAdd() local
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DClipboardSupport.java96 public void copySelectionToClipboard(List<SelectionItem> selection) { in copySelectionToClipboard() argument
97 SelectionManager.sanitize(selection); in copySelectionToClipboard()
109 if (selection.isEmpty()) { in copySelectionToClipboard()
120 SelectionItem.getAsElements(selection), in copySelectionToClipboard()
121 message != null ? message : SelectionItem.getAsText(mCanvas, selection) in copySelectionToClipboard()
145 public void cutSelectionToClipboard(List<SelectionItem> selection) { in cutSelectionToClipboard() argument
146 copySelectionToClipboard(selection); in cutSelectionToClipboard()
147 deleteSelection(mCanvas.getCutLabel(), selection); in cutSelectionToClipboard() local
161 public void deleteSelection(String verb, final List<SelectionItem> selection) { in deleteSelection() argument
162 SelectionManager.sanitize(selection); in deleteSelection()
[all …]
DCanvasTransform.java178 int selection = mScrollbar.getSelection(); in resizeScrollbar() local
182 if (selection + thumb > maximum) { in resizeScrollbar()
183 selection = maximum - thumb; in resizeScrollbar()
184 if (selection < 0) { in resizeScrollbar()
185 selection = 0; in resizeScrollbar()
189 mScrollbar.setValues(selection, mScrollbar.getMinimum(), maximum, thumb, mScrollbar in resizeScrollbar()
192 mTranslate = selection; in resizeScrollbar()
DDynamicContextMenu.java221 List<SelectionItem> selection = mCanvas.getSelectionManager().getSelections(); in insertParentItems() local
222 if (selection.size() == 1) { in insertParentItems()
224 INode parent = selection.get(0).getNode().getParent(); in insertParentItems()
245 List<SelectionItem> selection = mCanvas.getSelectionManager().getSelections(); in insertVisualRefactorings() local
246 if (selection.size() == 0) { in insertVisualRefactorings()
252 if (selection.size() == 1 && selection.get(0).getViewInfo() != null in insertVisualRefactorings()
253 && selection.get(0).getViewInfo().getName().equals(FQCN_LINEAR_LAYOUT)) { in insertVisualRefactorings()
254 CanvasViewInfo info = selection.get(0).getViewInfo(); in insertVisualRefactorings()
269 if (selection.size() == 1 && !(selection.get(0).isRoot())) { in insertVisualRefactorings()
272 if (selection.size() == 1 && (selection.get(0).isLayout() || in insertVisualRefactorings()
[all …]
DPlayAnimationMenu.java90 List<SelectionItem> selection = selectionManager.getSelections(); in addMenuItems() local
91 if (selection.size() != 1) { in addMenuItems()
145 List<SelectionItem> selection = selectionManager.getSelections(); in run() local
146 SelectionItem canvasSelection = selection.get(0); in run()
240 IStructuredSelection selection = new StructuredSelection(pair); in run() local
241 wizard.init(workbench, selection); in run()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dcompletionvalues1-expected-completion23.txt3 android:textSelectHandle : Reference to a drawable that will be used to display a text selection a…
4 …e to a drawable that will be used to display a text selection anchor on the left side of a select…
5 … to a drawable that will be used to display a text selection anchor on the right side of a select…
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/actions/
DExportWizardAction.java51 IStructuredSelection selection = (IStructuredSelection)mSelection; in run() local
54 if (selection.size() == 1) { in run()
55 Object element = selection.getFirstElement(); in run()
80 wizard.init(mWorkbench, selection); in run()
91 public void selectionChanged(IAction action, ISelection selection) { in selectionChanged() argument
92 mSelection = selection; in selectionChanged()
DExportAction.java50 IStructuredSelection selection = (IStructuredSelection)mSelection; in run() local
52 if (selection.size() == 1) { in run()
53 Object element = selection.getFirstElement(); in run()
82 public void selectionChanged(IAction action, ISelection selection) { in selectionChanged() argument
83 mSelection = selection; in selectionChanged()
DOpenWizardAction.java112 ISelection selection = mSelection; in run() local
113 if (selection == null) { in run()
114 selection = window.getSelectionService().getSelection(); in run()
118 if (selection instanceof IStructuredSelection) { in run()
119 selectionToPass = (IStructuredSelection) selection; in run()
172 public void selectionChanged(IAction action, ISelection selection) { in selectionChanged() argument
173 mSelection = selection; in selectionChanged()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DVisualRefactoringAction.java64 public void selectionChanged(IAction action, ISelection selection) { in selectionChanged() argument
80 if (selection instanceof ITextSelection) { in selectionChanged()
81 mTextSelection = (ITextSelection) selection; in selectionChanged()
84 } else if (selection instanceof ITreeSelection) { in selectionChanged()
85 Object firstElement = ((ITreeSelection)selection).getFirstElement(); in selectionChanged()
87 mTreeSelection = (ITreeSelection) selection; in selectionChanged()
163 ISelection selection = site.getSelectionProvider().getSelection(); in run() local
164 action.selectionChanged(ActionWrapper.this, selection); in run()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/views/detail/
DDetailsPage.java140 public void selectionChanged(IWorkbenchPart part, ISelection selection) { in selectionChanged() argument
142 GLCall selectedCall = getSelectedCall((GLFunctionTraceViewer) part, selection); in selectionChanged()
150 IGLProperty selectedProperty = getSelectedProperty((StateView) part, selection); in selectionChanged()
198 private GLCall getSelectedCall(GLFunctionTraceViewer part, ISelection selection) { in getSelectedCall() argument
203 if (!(selection instanceof TreeSelection)) { in getSelectedCall()
207 Object data = ((TreeSelection) selection).getFirstElement(); in getSelectedCall()
215 private IGLProperty getSelectedProperty(StateView view, ISelection selection) { in getSelectedProperty() argument
216 if (!(selection instanceof IStructuredSelection)) { in getSelectedProperty()
220 IStructuredSelection ssel = (IStructuredSelection) selection; in getSelectedProperty()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DLintListDialog.java207 List<IMarker> selection = mList.getSelectedMarkers(); in widgetSelected() local
208 if (selection.size() > 0) { in widgetSelected()
209 EclipseLintClient.showMarker(selection.get(0)); in widgetSelected()
212 List<IMarker> selection = mList.getSelectedMarkers(); in widgetSelected() local
213 for (IMarker marker : selection) { in widgetSelected()
263 List<IMarker> selection = mList.getSelectedMarkers(); in updateSelectionState() local
265 if (selection.size() == 1) { in updateSelectionState()
266 selectMarker(selection.get(0)); in updateSelectionState()
271 boolean canFix = selection.size() > 0; in updateSelectionState()
272 for (IMarker marker : selection) { in updateSelectionState()
[all …]
DClearLintMarkersAction.java32 public void selectionChanged(IAction action, ISelection selection) { in selectionChanged() argument
33 mSelection = selection; in selectionChanged()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/
DHyperlinksTest.java253 Point selection = null; in checkXmlNavigation() local
258 selection = xmlEditor.getStructuredSourceViewer().getSelectedRange(); in checkXmlNavigation()
270 selection = textViewer.getSelectedRange(); in checkXmlNavigation()
289 selection = new Point(range.getOffset(), range.getLength()); in checkXmlNavigation()
295 if (document != null && selection != null) { in checkXmlNavigation()
296 int lineStart = document.getLineInformationOfOffset(selection.x).getOffset(); in checkXmlNavigation()
297 IRegion lineEndInfo = document.getLineInformationOfOffset(selection.x + selection.y); in checkXmlNavigation()
300 int selectionStart = selection.x - lineStart; in checkXmlNavigation()
301 int selectionEnd = selectionStart + selection.y; in checkXmlNavigation()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/
DWorkingSetHelper.java40 public static IWorkingSet[] getSelectedWorkingSet(IStructuredSelection selection, in getSelectedWorkingSet() argument
42 IWorkingSet[] selected= getSelectedWorkingSet(selection); in getSelectedWorkingSet()
79 private static IWorkingSet[] getSelectedWorkingSet(IStructuredSelection selection) { in getSelectedWorkingSet() argument
80 if (!(selection instanceof ITreeSelection)) in getSelectedWorkingSet()
83 ITreeSelection treeSelection= (ITreeSelection) selection; in getSelectedWorkingSet()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/assetstudio/
DCreateAssetSetWizard.java217 final TreeSelection selection = new TreeSelection(paths); in selectFiles() local
219 provider.setSelection(selection); in selectFiles()
229 provider.setSelection(selection); in selectFiles()
243 public void init(IWorkbench workbench, IStructuredSelection selection) { in init() argument
246 mInitialProject = guessProject(selection); in init()
250 private IProject guessProject(IStructuredSelection selection) { in guessProject() argument
251 if (selection == null) { in guessProject()
255 for (Object element : selection.toList()) { in guessProject()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
DLaunchShortcut.java45 public void launch(ISelection selection, String mode) { in launch() argument
46 if (selection instanceof IStructuredSelection) { in launch()
49 IStructuredSelection structSelect = (IStructuredSelection)selection; in launch()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/widgets/
DImageCanvas.java169 int selection = mHorizontalScrollBar.getSelection(); in scrollHorizontally() local
170 int destX = -selection - mOrigin.x; in scrollHorizontally()
173 mOrigin.x = -selection; in scrollHorizontally()
181 int selection = mVerticalScrollBar.getSelection(); in scrollVertically() local
182 int destY = -selection - mOrigin.y; in scrollVertically()
185 mOrigin.y = -selection; in scrollVertically()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DNewTemplateWizard.java62 public void init(IWorkbench workbench, IStructuredSelection selection) { in init() argument
63 super.init(workbench, selection); in init()
73 List<IProject> projects = AdtUtils.getSelectedProjects(selection); in init()
205 public void init(IWorkbench workbench, IStructuredSelection selection) { in init() argument
206 super.init(workbench, selection); in init()
DTemplateTestWizard.java38 public void init(IWorkbench workbench, IStructuredSelection selection) { in init() argument
39 super.init(workbench, selection); in init()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRenameResourceXmlTextAction.java105 ITextSelection selection = getSelection(); in run() local
106 if (selection == null) { in run()
110 ResourceUrl resource = findResource(document, selection.getOffset()); in run()
113 resource = findItemDefinition(document, selection.getOffset()); in run()
126 String className = findClassName(document, file, selection.getOffset()); in run()
381 ISelection selection = selectionProvider.getSelection(); in getSelection() local
382 if (!(selection instanceof ITextSelection)) { in getSelection()
385 return (ITextSelection) selection; in getSelection()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DResourceExplorerView.java127 IStructuredSelection selection = (IStructuredSelection) sel; in createPartControl()
129 if (selection.size() == 1) { in createPartControl()
130 Object element = selection.getFirstElement(); in createPartControl()
187 public void selectionChanged(IWorkbenchPart part, ISelection selection) { in selectionChanged() argument
202 } else if (selection instanceof IStructuredSelection) { in selectionChanged()
204 for (Iterator<?> it = ((IStructuredSelection) selection).iterator(); in selectionChanged()
DReferenceChooserDialog.java229 ISelection selection = mFilteredTree.getViewer().getSelection(); in getSelection() local
230 if (selection instanceof TreeSelection) { in getSelection()
231 TreeSelection treeSelection = (TreeSelection)selection; in getSelection()
324 TreePath selection = getSelection(); in getSelectedResourceType() local
325 if (selection != null && selection.getSegmentCount() > 0) { in getSelectedResourceType()
326 Object first = selection.getFirstSegment(); in getSelectedResourceType()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DXmlEditorMultiOutline.java166 public void setSelection(ISelection selection) { in setSelection() argument
167 mSelection = selection; in setSelection()
169 SelectionChangedEvent e = new SelectionChangedEvent(this, selection); in setSelection()
218 public void setSelection(ISelection selection) { in setSelection() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/
DKeySelectionPage.java172 int selection = -1; in onShow() local
178 if (selection == -1 && alias.equalsIgnoreCase(keyAlias)) { in onShow()
179 selection = count; in onShow()
186 if (selection != -1) { in onShow()
187 mKeyAliases.select(selection); in onShow()

12345