/******************************************************************************* * Copyright (c) 2008 * The code, documentation and other materials contained herein have been * licensed under the Eclipse Public License - v 1.0 by the individual * copyright holders listed below, as Initial Contributors under such license. * The text of such license is available at * http://www.eclipse.org/legal/epl-v10.html. * * Contributors: * Henrik Lindberg *******************************************************************************/ package org.eclipse.equinox.p2.authoring.internal.touchpoints; import org.eclipse.equinox.p2.authoring.spi.ITouchpointActionDescriptor; import org.eclipse.equinox.p2.authoring.spi.ITouchpointTypeDescriptor; import org.eclipse.equinox.p2.authoring.spi.TouchpointActionDescriptor; import org.eclipse.equinox.p2.authoring.spi.TouchpointActionParameterDescriptor; import org.eclipse.equinox.p2.authoring.spi.TouchpointTypeDescriptor; /** * Descriptor class for the p2 Native touchpoint version 1.0.0. The description is used by * p2 meta data authoring to configure forms, provide validation and lookup. * * @author Henrik Lindberg * */ public final class NativeTouchpoint_1_0 extends TouchpointTypeDescriptor implements ITouchpointTypeDescriptor { public static ITouchpointActionDescriptor[] s_types = new TouchpointActionDescriptor[] { new TouchpointActionDescriptor("cleanupzip", //$NON-NLS-1$ "Cleanup Zip", new TouchpointActionParameterDescriptor[] { // new TouchpointActionParameterDescriptor("source", //$NON-NLS-1$ "Source Path", "", TYPE_PATH, true), // new TouchpointActionParameterDescriptor("target", //$NON-NLS-1$ "Target Path", "", TYPE_PATH, true) }), // new TouchpointActionDescriptor("unzip", //$NON-NLS-1$ "Unzip", new TouchpointActionParameterDescriptor[] { // new TouchpointActionParameterDescriptor("source", //$NON-NLS-1$ "Source Path", "", TYPE_PATH, true), // new TouchpointActionParameterDescriptor("target", //$NON-NLS-1$ "Target Path", "", TYPE_PATH, true) }), new TouchpointActionDescriptor("link", //$NON-NLS-1$ "Create Symbolic Link", new TouchpointActionParameterDescriptor[] // { new TouchpointActionParameterDescriptor("targetDir", //$NON-NLS-1$ "Create In", "", TYPE_IMPLIED_PATH, true), // new TouchpointActionParameterDescriptor("linkTarget", //$NON-NLS-1$ "Source Path", "", TYPE_PATH, true), // new TouchpointActionParameterDescriptor("linkName", //$NON-NLS-1$ "Link Name", "", TYPE_FILENAME, true), // new TouchpointActionParameterDescriptor("force", //$NON-NLS-1$ "Force", "false", TYPE_BOOLEAN, true), }), // //$NON-NLS-2$ new TouchpointActionDescriptor("chmod", //$NON-NLS-1$ "Change Permissions", new TouchpointActionParameterDescriptor[] // { new TouchpointActionParameterDescriptor("targetDir", //$NON-NLS-1$ "Directory", "", TYPE_PATH, true), // new TouchpointActionParameterDescriptor("targetFile", //$NON-NLS-1$ "File Name", "", TYPE_FILENAME, true), // new TouchpointActionParameterDescriptor("permissions", //$NON-NLS-1$ "Permissions", "755", TYPE_STRING, true), }), // // The following instruction is created by the engine and should not be used when editing. // collect () }; /** * Returns the instructions for the native touchpoint version 1.0.0 */ public ITouchpointActionDescriptor[] getActions() { return s_types; } /** * Returns "org.eclipse.equinox.p2.native" - the id string for the native touchpoint. */ public String getTypeId() { return "org.eclipse.equinox.p2.native"; //$NON-NLS-1$ } /** * Returns "1.0.0". */ public String getVersionString() { return "1.0.0"; //$NON-NLS-1$ } }