@Override protected void okPressed() { // Sets the dialog result to the selected path variable name(s). try { if (resourceFilterGroup.performOk()) super.okPressed(); } catch (Throwable t) { t.printStackTrace(); } } }
@Override protected void okPressed() { computeResult(); super.okPressed(); }
/** * The <code>ContainerSelectionDialog</code> implementation of this * <code>Dialog</code> method builds a list of the selected resource * containers for later retrieval by the client and closes this dialog. */ protected void okPressed() { List chosenContainerPathList = new ArrayList(); if (_selection != null) { chosenContainerPathList.add(_selection); } setResult(chosenContainerPathList); super.okPressed(); }
protected void okPressed() { if (fBuiltInFilters != null) { ArrayList result= new ArrayList(); for (int i= 0; i < fBuiltInFilters.length; ++i) { if (fCheckBoxList.getChecked(fBuiltInFilters[i])) result.add(fBuiltInFilters[i]); } setResult(result); } super.okPressed(); }
@Override protected void okPressed() { if (fBuiltInFilters != null) { ArrayList<FilterDescriptor> result= new ArrayList<>(); for (int i= 0; i < fBuiltInFilters.length; ++i) { if (fCheckBoxList.getChecked(fBuiltInFilters[i])) result.add(fBuiltInFilters[i]); } setResult(result); } super.okPressed(); }
@Override protected void okPressed() { if (fBuiltInFilters != null) { ArrayList<FilterDescriptor> result= new ArrayList<>(); for (int i= 0; i < fBuiltInFilters.length; ++i) { if (fCheckBoxList.getChecked(fBuiltInFilters[i])) result.add(fBuiltInFilters[i]); } setResult(result); } super.okPressed(); }
/** * {@inheritDoc} */ protected void okPressed() { List newResult= getResultWorkingSets(); fResult= (IWorkingSet[])newResult.toArray(new IWorkingSet[newResult.size()]); setResult(newResult); super.okPressed(); }
protected void okPressed() { Object[] elements = fViewer.getCheckedElements(); setResult(Arrays.asList(elements)); super.okPressed(); }
/** * The <code>ContainerSelectionDialog</code> implementation of this * <code>Dialog</code> method builds a list of the selected resource * containers for later retrieval by the client and closes this dialog. */ protected void okPressed() { List selectionList = new ArrayList(); IStructuredSelection returnValue = group.getSelection(); if (returnValue != null) selectionList.add(returnValue); setResult(selectionList); super.okPressed(); }
/** * The <code>ContainerSelectionDialog</code> implementation of this * <code>Dialog</code> method builds a list of the selected resource containers * for later retrieval by the client and closes this dialog. */ @Override protected void okPressed() { List chosenContainerPathList = new ArrayList(); IPath returnValue = group.getContainerFullPath(); if (returnValue != null) { chosenContainerPathList.add(returnValue); } setResult(chosenContainerPathList); super.okPressed(); }
@Override protected void okPressed() { List<IWorkingSet> newResult= getResultWorkingSets(); fResult= newResult.toArray(new IWorkingSet[newResult.size()]); if (fIsSortingEnabled) { Collections.sort(fAllWorkingSets, getComparator()); } setResult(newResult); super.okPressed(); }
@Override protected void okPressed() { List<IWorkingSet> newResult= getResultWorkingSets(); fResult= newResult.toArray(new IWorkingSet[newResult.size()]); if (fIsSortingEnabled) { Collections.sort(fAllWorkingSets, getComparator()); } setResult(newResult); super.okPressed(); }
@Override protected void okPressed() { ISelection select = fViewer.getSelection(); setSelectionResult(new Object[] { select }); super.okPressed(); }
/** * The user has selected a resource and the dialog is closing. * Set the selected resource as the dialog result. */ protected void okPressed() { TableItem items[] = folderNames.getSelection(); if (items.length == 1) { ArrayList result = new ArrayList(); result.add(items[0].getData()); setResult(result); } super.okPressed(); }
/** * The <code>ProjectLocationMoveDialog</code> implementation of this * <code>Dialog</code> method builds a two element list - the first * element is the project name and the second one is the location. */ @Override protected void okPressed() { ArrayList list = new ArrayList(); list.add(getProject().getName()); list.add(locationArea.getProjectLocation()); setResult(list); super.okPressed(); }
/** * The user has selected a resource and the dialog is closing. * Set the selected resource as the dialog result. */ @Override protected void okPressed() { TableItem items[] = folderNames.getSelection(); if (items.length == 1) { ArrayList result = new ArrayList(); result.add(items[0].getData()); setResult(result); } super.okPressed(); }
@Override protected void okPressed() { // Build a list of selected children. IStructuredSelection selection = fTableViewer.getStructuredSelection(); setResult(selection.toList()); super.okPressed(); }
@Override protected void okPressed() { IStructuredSelection selection = (IStructuredSelection) listViewer .getSelection(); setResult(selection.toList()); super.okPressed(); } }
@Override protected void okPressed() { IStructuredSelection selection = (IStructuredSelection) listViewer .getSelection(); setResult(selection.toList()); super.okPressed(); } }
protected void okPressed() { // Build a list of selected children. ISelection selection= fViewer.getSelection(); if (selection instanceof IStructuredSelection) setResult(((IStructuredSelection)fViewer.getSelection()).toList()); super.okPressed(); } }