Java Code Examples for org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField#getElements()
The following examples show how to use
org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField#getElements() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MembersOrderPreferencePage.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private void updateList(IPreferenceStore store, ListDialogField<String> list, String str) { StringBuffer buf= new StringBuffer(); List<String> curr= list.getElements(); for (Iterator<String> iter= curr.iterator(); iter.hasNext();) { String s= iter.next(); buf.append(s); buf.append(','); } store.setValue(str, buf.toString()); }
Example 2
Source File: ExclusionInclusionDialog.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private void editEntry(ListDialogField<String> field) { List<String> selElements= field.getSelectedElements(); if (selElements.size() != 1) { return; } List<String> existing= field.getElements(); String entry= selElements.get(0); ExclusionInclusionEntryDialog dialog= new ExclusionInclusionEntryDialog(getShell(), isExclusion(field), entry, existing, fCurrElement); if (dialog.open() == Window.OK) { field.replaceElement(entry, dialog.getExclusionPattern()); } }
Example 3
Source File: ExclusionInclusionDialog.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private void addEntry(ListDialogField<String> field) { List<String> existing= field.getElements(); ExclusionInclusionEntryDialog dialog= new ExclusionInclusionEntryDialog(getShell(), isExclusion(field), null, existing, fCurrElement); if (dialog.open() == Window.OK) { field.addElement(dialog.getExclusionPattern()); } }
Example 4
Source File: SetFilterWizardPage.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private void editEntry(ListDialogField<String> field) { List<String> selElements= field.getSelectedElements(); if (selElements.size() != 1) { return; } List<String> existing= field.getElements(); String entry= selElements.get(0); ExclusionInclusionEntryDialog dialog= new ExclusionInclusionEntryDialog(getShell(), isExclusion(field), entry, existing, fCurrElement); if (dialog.open() == Window.OK) { field.replaceElement(entry, dialog.getExclusionPattern()); } }
Example 5
Source File: SetFilterWizardPage.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private void addEntry(ListDialogField<String> field) { List<String> existing= field.getElements(); ExclusionInclusionEntryDialog dialog= new ExclusionInclusionEntryDialog(getShell(), isExclusion(field), null, existing, fCurrElement); if (dialog.open() == Window.OK) { field.addElement(dialog.getExclusionPattern()); } }