Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.ISelection.toArray()


    removeButton.setEnabled(false);
    removeButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
        Object[] selectedURLs = selection.toArray();
        for (Object selectedURL : selectedURLs) {
          urls.remove(selectedURL);
          update();
        }
      }
View Full Code Here


            @Override
            public void widgetSelected(final SelectionEvent e) {
                final IStructuredSelection selection = (IStructuredSelection) listViewer
                        .getSelection();
                for (final Object o : selection.toArray()) {
                    contentProvider.removeModule((IErlModule) o);
                }
                listViewer.refresh();
                updateLaunchConfigurationDialog();
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.