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

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


    protected void processNewValue(GraphNodeEditor editor) {
        String oldName = entity.getName();
        String newName = (String) editor.getCellEditorValue();
        if (!oldName.equals(newName)) {
            UndoableEdit edit = new EntityRenameEdit(getController(), entity, newName);
            EntityRenamer renamer = getController().getView().getEntityRenamer(entity);
            if (renamer.setNewName(newName)) {
                getController().fireGraphDataEdit(edit);
            }
        }
    }
View Full Code Here


    }

    private void setName(String name) {
        IntegrationEntity entity = controller.getProject().getItemLookup().getEntity(entityId);
        if (entity != null) {
            EntityRenamer renamer = controller.getView().getEntityRenamer(entity);
            renamer.setNewName(name);
        } else {
            Alert.error("This change cannot be undone/redone.", "Not Undoable/Redoable");
        }
    }
View Full Code Here

        EmailMessage email = getNode().getDataObject().getActivity();
        String oldName = email.getName();
        String newName = (String) editor.getCellEditorValue();
        if (!oldName.equals(newName)) {
            UndoableEdit edit = new EntityRenameEdit(getController(), email, newName);
            EntityRenamer renamer = getController().getView().getEntityRenamer(email);
            if (renamer.setNewName(newName)) {
                getController().fireGraphDataEdit(edit);
            }
        }
    }
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

TOP

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

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.