@Override public void widgetSelected(SelectionEvent e) { removeFilters(configsTable.getSelection()); } });
@Override public void widgetSelected(SelectionEvent e) { moveUp(((IStructuredSelection)fTableViewer.getSelection()).toList()); } });
public void doubleClick(DoubleClickEvent e) { if (!fVMList.getSelection().isEmpty()) { editVM(); } } });
@Override public void widgetSelected(SelectionEvent e) { moveDown(((IStructuredSelection)fTableViewer.getSelection()).toList()); } });
private void performFilterListSelectionChanged() { Object selectedElement = ((IStructuredSelection) fListViewer.getSelection()).getFirstElement(); if (selectedElement != null) fDescription.setText(((MatchFilter) selectedElement).getDescription()); else fDescription.setText(new String()); }
public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection) fTableViewer.getSelection(); remove.setEnabled(!selection.isEmpty()); editbutton.setEnabled(selection.size() == 1); } });
private void remove() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); Iterator elements= selection.iterator(); while (elements.hasNext()) { TemplatePersistenceData data= (TemplatePersistenceData) elements.next(); fTemplateStore.delete(data); } fTableViewer.refresh(); }
@SuppressWarnings("synthetic-access") @Override public void doubleClick(DoubleClickEvent event) { if (!SREsPreferencePage.this.sresList.getSelection().isEmpty()) { editSRE(); } } });
private void export() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); Object[] templates= selection.toArray(); TemplatePersistenceData[] datas= new TemplatePersistenceData[templates.length]; for (int i= 0; i != templates.length; i++) datas[i]= (TemplatePersistenceData) templates[i]; export(datas); }
private void remove() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); Iterator<?> elements= selection.iterator(); while (elements.hasNext()) { TemplatePersistenceData data= (TemplatePersistenceData) elements.next(); fTemplateStore.delete(data); } fTableViewer.refresh(); }
public void widgetSelected( SelectionEvent e ) { StructuredSelection selection = ( StructuredSelection ) saslRealmsTableViewer.getSelection(); if ( !selection.isEmpty() ) { String saslRealm = ( String ) selection.getFirstElement(); saslRealms.remove( saslRealm ); saslRealmsTableViewer.refresh(); setEditorDirty(); } } } );
public void widgetSelected( SelectionEvent e ) { StructuredSelection selection = ( StructuredSelection ) saslRealmsTableViewer.getSelection(); if ( !selection.isEmpty() ) { String saslRealm = ( String ) selection.getFirstElement(); saslRealms.remove( saslRealm ); saslRealmsTableViewer.refresh(); setEditorDirty(); } } } );
/** * Removes the selected locations */ void removeLocation() { IStructuredSelection selection = (IStructuredSelection) fTableViewer.getSelection(); fLocationList.removeAll(selection.toList()); fTableViewer.refresh(); validateScans(); }
public void widgetSelected( SelectionEvent e ) { StructuredSelection selection = ( StructuredSelection ) saslRealmsTableViewer.getSelection(); if ( !selection.isEmpty() ) { String saslRealm = ( String ) selection.getFirstElement(); saslRealms.remove( saslRealm ); saslRealmsTableViewer.refresh(); setEditorDirty(); } } } );
public void widgetSelected( SelectionEvent e ) { StructuredSelection selection = ( StructuredSelection ) saslRealmsTableViewer.getSelection(); if ( !selection.isEmpty() ) { String saslRealm = ( String ) selection.getFirstElement(); saslRealms.remove( saslRealm ); saslRealmsTableViewer.refresh(); setEditorDirty(); } } } );
private void edit() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); Object[] objects= selection.toArray(); if ((objects == null) || (objects.length != 1)) return; TemplatePersistenceData data= (TemplatePersistenceData) selection.getFirstElement(); edit(data); }
private void revert() { IStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection(); Iterator elements= selection.iterator(); while (elements.hasNext()) { TemplatePersistenceData data= (TemplatePersistenceData) elements.next(); data.revert(); } fTableViewer.refresh(); selectionChanged1(); fTableViewer.setChecked(getEnabledTemplates(), true); }
public void editType() { IStructuredSelection selection= (IStructuredSelection)fFormatterListViewer.getSelection(); if (new DetailFormatterDialog(getShell(), (DetailFormatter)(selection).getFirstElement(), null, true, true).open() == Window.OK) { fFormatterListViewer.refresh(); fFormatViewerContentProvider.refreshViewer(); updatePage(selection); } }
private void updateWizardPage(final ISelection selection, final boolean displayErrors) { fTableViewer.refresh(); if (selection != null) { fTableViewer.getControl().setFocus(); fTableViewer.setSelection(selection); } checkPageCompletionStatus(displayErrors); updateButtonEnablement(fTableViewer.getSelection()); updateStatusLine(); } }
private void updateWizardPage(final ISelection selection, final boolean displayErrors) { fTableViewer.refresh(); if (selection != null) { fTableViewer.getControl().setFocus(); fTableViewer.setSelection(selection); } checkPageCompletionStatus(displayErrors); updateButtonEnablement(fTableViewer.getSelection()); updateStatusLine(); } }