Examples of toList()


Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

            List<Requirement> adding = new LinkedList<Requirement>();

            if (data instanceof IStructuredSelection) {
                IStructuredSelection structSel = (IStructuredSelection) data;

                for (Object elem : structSel.toList()) {
                    Requirement requirement = createRequirement(elem);
                    if (requirement != null)
                        adding.add(requirement);
                }
            }
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    void doRemove() {
        IStructuredSelection sel = (IStructuredSelection) viewer.getSelection();

        viewer.remove(sel.toArray());
        data.removeAll(sel.toList());

        if (!sel.isEmpty())
            markDirty();
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    }

    void doRemove() {
        IStructuredSelection sel = (IStructuredSelection) viewer.getSelection();
        if (!sel.isEmpty()) {
            testSuites.removeAll(sel.toList());
            viewer.remove(sel.toArray());
            markDirty();
            validate();
        }
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    }

    void updateButtons() {
        boolean enable = !viewer.getSelection().isEmpty();
        IStructuredSelection sel = (IStructuredSelection) viewer.getSelection();
        for (Object elem : sel.toList()) {
            if (!isIncludedRepo(elem)) {
                enable = false;
                break;
            }
        }
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    void doRemove() {
        IStructuredSelection sel = (IStructuredSelection) viewer.getSelection();

        viewer.remove(sel.toArray());
        data.removeAll(sel.toList());

        if (!sel.isEmpty())
            markDirty();
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

        }
    }

    private void doRemove() {
        IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
        classPath.removeAll(selection.toList());
        viewer.remove(selection.toArray());
        markDirty();
    }

    private IResource getInputResource() {
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    }

    @SuppressWarnings("unchecked")
    void doAddSelection() {
        IStructuredSelection sel = (IStructuredSelection) availableViewer.getSelection();
        availablePackages.removeAll(sel.toList());
        availableViewer.remove(sel.toArray());

        selectedPackages.addAll(sel.toList());
        selectedViewer.add(sel.toArray());
        updateUI();
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    void doAddSelection() {
        IStructuredSelection sel = (IStructuredSelection) availableViewer.getSelection();
        availablePackages.removeAll(sel.toList());
        availableViewer.remove(sel.toArray());

        selectedPackages.addAll(sel.toList());
        selectedViewer.add(sel.toArray());
        updateUI();
    }

    void doAddAll() {
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    }

    @SuppressWarnings("unchecked")
    void doRemoveSelection() {
        IStructuredSelection sel = (IStructuredSelection) selectedViewer.getSelection();
        selectedPackages.removeAll(sel.toList());
        selectedViewer.remove(sel.toArray());

        availablePackages.addAll(sel.toList());
        availableViewer.add(sel.toArray());
        updateUI();
View Full Code Here

Examples of org.eclipse.jface.viewers.IStructuredSelection.toList()

    void doRemoveSelection() {
        IStructuredSelection sel = (IStructuredSelection) selectedViewer.getSelection();
        selectedPackages.removeAll(sel.toList());
        selectedViewer.remove(sel.toArray());

        availablePackages.addAll(sel.toList());
        availableViewer.add(sel.toArray());
        updateUI();
    }

    void doRemoveAll() {
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.