Package org.jitterbit.integration.client.ui.interchange.entity

Examples of org.jitterbit.integration.client.ui.interchange.entity.EntityConfig


            return editor;
        }
    }
   
    private EntityPageFactory getPageFactory(IntegrationEntity entity) {
        EntityConfig config = view.getEntityConfig(entity.getEntityType());
        return config.getPageFactory();
    }
View Full Code Here


        }
        return f.createPage(entity);
    }

    private EntityPageFactory getPageFactory(IntegrationEntity entity) {
        EntityConfig config = view.getEntityConfig(entity.getEntityType());
        return config.getPageFactory();
    }
View Full Code Here

            // First we check if the integration entity to be displayed already
            // have an open page in the view:
            Editor page = getPageForEntity(entity);
            if (page == null) {
                // The entity is not currently displayed. Create a new page.
                EntityConfig config = view.getEntityConfig(entity.getEntityType());
                EntityPageFactory pageFactory = config.getPageFactory();
                page = pageFactory.createPage(entity);
            }
            return page;
        }
View Full Code Here

        }
        return false;
    }

    private boolean renameImpl(IntegrationEntity item, String newName) {
        EntityConfig config = configs.getEntityConfig(item.getEntityType());
        EntityRenamer renamer = config.getRenamer(item);
        return renamer.setNewName(newName);
    }
View Full Code Here

    }

    public void loadAdditionalEntityConfigs() {
        Map configs = Application.getAppContext().getBeansOfType(EntityConfig.class);
        for (Object o : configs.values()) {
            EntityConfig config = (EntityConfig) o;
            entityConfigs.put(config.getType(), config);
        }
        Map contextMenus = Application.getAppContext().getBeansOfType(SectionFactories.class);
        for (Object o : contextMenus.values()) {
            popupMenuManager.addFactories((SectionFactories) o);
        }
View Full Code Here

        }
    }

    @Override
    public EntityConfig getEntityConfig(EntityType type) {
        EntityConfig config = entityConfigs.get(type);
        return (config != null) ? config : EntityConfig.UNCONFIGURED;
    }
View Full Code Here

    /**
     * Returns an <code>EntityRenamer</code> for renaming the given project item.
     */
    public EntityRenamer getEntityRenamer(IntegrationEntity e) {
        EntityConfig config = getEntityConfig(e.getEntityType());
        return config.getRenamer(e);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.EntityConfig

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.