Search in sources :

Example 1 with CopyOperation

use of org.springsource.ide.eclipse.commons.internal.configurator.operations.CopyOperation in project eclipse-integration-commons by spring-projects.

the class InstallableItem method getInstallOperations.

public List<AbstractInstallOperation> getInstallOperations() {
    IConfigurationElement[] elements = element.getChildren();
    List<AbstractInstallOperation> operations = new ArrayList<AbstractInstallOperation>(elements.length);
    for (IConfigurationElement element : elements) {
        if (element.getName().equals(ELEMENT_COPY)) {
            operations.add(new CopyOperation(element));
        } else if (element.getName().equals(ELEMENT_CHMOD)) {
            operations.add(new ChmodOperation(element));
        }
    }
    return operations;
}
Also used : CopyOperation(org.springsource.ide.eclipse.commons.internal.configurator.operations.CopyOperation) AbstractInstallOperation(org.springsource.ide.eclipse.commons.internal.configurator.operations.AbstractInstallOperation) ArrayList(java.util.ArrayList) ChmodOperation(org.springsource.ide.eclipse.commons.internal.configurator.operations.ChmodOperation) IConfigurationElement(org.eclipse.core.runtime.IConfigurationElement)

Aggregations

ArrayList (java.util.ArrayList)1 IConfigurationElement (org.eclipse.core.runtime.IConfigurationElement)1 AbstractInstallOperation (org.springsource.ide.eclipse.commons.internal.configurator.operations.AbstractInstallOperation)1 ChmodOperation (org.springsource.ide.eclipse.commons.internal.configurator.operations.ChmodOperation)1 CopyOperation (org.springsource.ide.eclipse.commons.internal.configurator.operations.CopyOperation)1