Package org.jitterbit.integration.data.entity

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


        }
        return super.getValidationDecoratedIcon();
    }

    private boolean isValid() {
        IntegrationEntity entity = getUserObject();
        return entity.getValidationStatus() == ValidationStatus.VALID;
    }
View Full Code Here


        return selector;
    }

    private Set<? extends IntegrationEntity> getItemsToDisplay() {
        Set<? extends IntegrationEntity> items = cascade.getAllItems();
        IntegrationEntity startPoint = getStartPoint();
        for (Iterator<? extends IntegrationEntity> it = items.iterator(); it.hasNext(); ) {
            IntegrationEntity item = it.next();
            if (item == startPoint || item instanceof BuiltInIntegrationEntity) {
                it.remove();
            }
        }
        return items;
View Full Code Here

     *
     * @param entity
     *            the entity, or <code>null</code> to clear the page.
     */
    public boolean setAccessedEntity(IntegrationEntity entity) {
        IntegrationEntity old;
        synchronized (lock) {
            if (!checkAllowAccessedEntity(entity)) {
                return false;
            }
            if (entity == null) {
View Full Code Here

        permissionsPanel.setActive(hasSelection);
        buttons.setActive(hasSelection);
    }

    private IntegrationEntity unregisterOldEntity() {
        IntegrationEntity old = displayedEntity;
        if (old != null) {
            old.removePropertyChangeListener(IntegrationEntity.PROPERTY_NAME, entityListener);
            old.removePropertyChangeListener(IntegrationEntity.PROPERTY_DELETED, entityListener);
        }
        return old;
    }
View Full Code Here

    private class TreeRenderer extends IntegrationEntityTreeRenderer {

        @Override
        protected Icon getIcon(IntegrationEntityTreeNode node) {
            IntegrationEntity entity = node.getUserObject();
            ValidationStatus status = model.getStatus(entity, true);
            Category category = Category.fromValidationStatus(status);
            return EntityIcons.forType(entity.getEntityType()).getIcon(category, Size.SMALL);
        }
View Full Code Here

            super(IntegrationEntity.class, ApplicationResources.STRINGS.getString("Edit.Mnemonic"));
        }

        public void setPageDisplayer(EntityPageDisplayer p) {
            this.pageDisplayer = p;
            IntegrationEntity selected = getSelectedEntity();
            setEnabled(selected != null && isEnabledFor(selected));
        }
View Full Code Here

*/
abstract class ConsoleLabelBuilder {

    public static ConsoleLabelBuilder getBuilder(BreakLocation loc, IntegrationEntityLookup debuggeeLookup) {
        if (loc != null) {
            IntegrationEntity item = debuggeeLookup.getEntity(loc.getIntegrationEntityId());
            if (item != null) {
                int lineNumber = loc.getLineNumber();
                if (lineNumber >= 0) {
                    return StringUtils.isNotEmpty(loc.getTargetNodePath())
                                    ? new MappingLineBreakpointLabelBuilder(loc, item)
View Full Code Here

                    }
                }
            }

            private void decorateWithSessionInfo(DebugSession session) {
                IntegrationEntity debuggee = itemLookup.getEntity(session.getDebugeeId());
                if (debuggee != null) {
                    setDebuggee(debuggee);
                    switch (session.getState()) {
                    case PAUSED:
                        writePausedInfo(session);
View Full Code Here

        @Override
        public void replaced(List<IntegrationEntity> chunks) {
            int size = chunks.size();
            if (size > 0) {
                IntegrationEntity last = chunks.get(size - 1);
                String path = new EntityPath(last, false).toString();
                if (path.length() > 50) {
                    int start = path.length() - 50;
                    path = "..." + path.substring(start);
                }
View Full Code Here

*/
public final class ActivityUtilsJUnitTest {

    @Test
    public void ensureIsValidTypeWorksForItems() {
        IntegrationEntity operation = new Operation("Test");
        assertTrue(isValidType(operation));
        IntegrationEntity schedule = new Schedule("Test");
        assertFalse(isValidType(schedule));
    }
View Full Code Here

TOP

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

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.