Package org.jitterbit.ui.selection

Examples of org.jitterbit.ui.selection.IndexedSelection.head()


    private EntityTestResult getSelectedTestResult() {
        IndexedSelection sel = (IndexedSelection) getSelection();
        if (sel.size() != 1) {
            return null;
        }
        Object head = sel.head();
        return (head instanceof EntityTestResult) ? (EntityTestResult) head : null;
    }

}
View Full Code Here


        });
    }

    private WsdlFile getSelectedFile() {
        IndexedSelection selection = wsdlList.getSelection();
        Object selected = selection.head();
        return (selected instanceof WsdlFileListItem) ? ((WsdlFileListItem) selected).file : null;
    }

    private KongaList createList() {
        KongaListFactory listFactory = ComponentFactories.newKongaListFactory();
View Full Code Here

        editorList.setSelectedEditor(e);
    }

    public Editor getSelectedEditor() {
        IndexedSelection sel = editorList.getSelection();
        return sel.isEmpty() ? null : (Editor) sel.head();
    }

    public void setIncludeSearchField(boolean value) {
        includeSearchField = value;
    }
View Full Code Here

        @Override
        public void selectionChanged(SelectionChangedEvent evt) {
            IndexedSelection sel = (IndexedSelection) evt.getSelection();
            if (!sel.isEmpty()) {
                Editor editor = (Editor) sel.head();
                fireTemporarySelection(editor);
            }
        }
    }
View Full Code Here

        });
    }
   
    public DriverDescriptor getSelectedDriver() {
        IndexedSelection selection = list.getSelection();
        Object o = selection.head();
        if (o instanceof DriverDescriptorUi) {
            return ((DriverDescriptorUi) o).getDriver();
        }
        return null;
    }
View Full Code Here

    }

    private void ensureSingleSelection() {
        IndexedSelection sel = selSource.getSelection();
        if (sel.size() > 1) {
            selSource.setSelection(SelectionFactory.newIndexedSelection(sel.head(), sel.headIndex()));
        }
    }

    /**
     * Sets the initial selection state for the displayed objects.
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.