Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.IntegrationEntity


        return true;
    }

    @Override
    public final boolean importData(TransferSupport support) {
        IntegrationEntity entity = getDraggedEntity(support);
        return entity != null && handleDrop(entity, support);
    }
View Full Code Here


    private void processDisplayedEntities(ProjectUiState state, EditorService editorService) {
        Editor activeEditor = editorService.getActiveEditor();
        List<IntegrationEntity> displayedObjects = Lists.newArrayList();
        for (Editor p : editorService.getOpenEditors()) {
            if (p instanceof IntegrationEntityPage) {
                IntegrationEntity e = ((IntegrationEntityPage) p).getObject();
                displayedObjects.add(e);
                if (p == activeEditor) {
                    state.setActiveEntityOnStartUp(e);
                }
            }
View Full Code Here

        // Not applicable (?)
    }

    @Override
    public void setSelectedEntity(IntegrationEntityId id) {
        IntegrationEntity item = explorer.getProject().getItemLookup().getEntity(id);
        comboBox.setSelectedItem(item);
    }
View Full Code Here

            }
        });
    }

    private void highlightSearchResultImpl() {
        IntegrationEntity selected = resultList.getSelectedEntity();
        if (selected != null) {
            selectedEntityDisplayer.openPage(selected);
        }
    }
View Full Code Here

    }

    private boolean isMatch(KongaTreeNode node) {
        Object o = node.getUserObject();
        if (o instanceof IntegrationEntity) {
            IntegrationEntity e = (IntegrationEntity) o;
            return entityFilter.apply(e);
        }
        return false;
    }
View Full Code Here

    private final class NonProjectItemDeleteListener implements PropertyChangeListener {

        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            assert IntegrationEntity.PROPERTY_DELETED.equals(evt.getPropertyName());
            final IntegrationEntity item = (IntegrationEntity) evt.getSource();
            EventQueue.invokeLater(new Runnable() {

                @Override
                public void run() {
                    removeNonProjectItem(item);
View Full Code Here

            DefaultIntegrationEntityFactoryCallback cb = new DefaultIntegrationEntityFactoryCallback(view, view.getProject(),
                            new CallbackResultAdapter() {

                                @Override
                                public void succeeded(Object o) {
                                    IntegrationEntity e = (IntegrationEntity) o;
                                    doPostProjectInsertionProcessing(e, externalCallback, openEditor);
                                }

                            });
            if (externalCallback != null) {
View Full Code Here

    }

    private boolean isImportantDependency(IntegrationEntity toBeDeleted, EntityLink link) {
        // If the dependent object is also selected for deletion we do not have to
        // report it as a dependency.
        IntegrationEntity other = link.getOtherObject(toBeDeleted);
        return !collectionOfItemsToDelete.contains(other);
    }
View Full Code Here

    private void addDependency(EntityLink link, Set<EntityLink> cyclicGuard) {
        if (!cyclicGuard.add(link)) {
            return;
        }
        IntegrationEntity depObj = link.getDependantObject();
        add(new Dependency(depObj, link.isStrong()));
        // If the link is strong we continue down the dependency chain, otherwise we stop here.
        if (link.isStrong()) {
            for (EntityLink link2 : dependencyStore.getLinksFrom(depObj)) {
                addDependency(link2, cyclicGuard);
View Full Code Here

        project = IntegrationProject.createNewProject("Test");
    }
   
    @Test
    public void testEntityAdded() {
        IntegrationEntity schedule = new Schedule("Test Schedule");
        Listener lst = new EntityAddedListener(schedule);
        project.addProjectListener(lst);
        project.insertEntity(schedule, project.getRootFolder(EntityType.Schedule));
        lst.verify();
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.IntegrationEntity

Copyright © 2018 www.massapicom. 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.