/****************************************************************************** * Copyright (c) 2016 Oracle * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Konstantin Komissarchik - initial implementation ******************************************************************************/ package org.eclipse.sapphire.sdk; import org.eclipse.sapphire.ElementType; import org.eclipse.sapphire.PreferDefaultValue; import org.eclipse.sapphire.ValueProperty; import org.eclipse.sapphire.modeling.annotations.DefaultValue; import org.eclipse.sapphire.modeling.annotations.Service; import org.eclipse.sapphire.sdk.extensibility.SapphireExtensionDef; import org.eclipse.sapphire.sdk.internal.CreateExtensionManifestOpServices.FolderInitialValueService; import org.eclipse.sapphire.sdk.internal.CreateExtensionManifestOpServices.FolderValidationService; import org.eclipse.sapphire.workspace.CreateWorkspaceFileOp; import org.eclipse.sapphire.workspace.WorkspaceFileType; /** * @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a> */ @WorkspaceFileType( SapphireExtensionDef.class ) public interface CreateExtensionManifestOp extends CreateWorkspaceFileOp { ElementType TYPE = new ElementType( CreateExtensionManifestOp.class ); // *** Folder *** @Service( impl = FolderValidationService.class ) @Service( impl = FolderInitialValueService.class ) ValueProperty PROP_FOLDER = new ValueProperty( TYPE, CreateWorkspaceFileOp.PROP_FOLDER ); // *** File *** @DefaultValue( text = SapphireExtensionDef.FILE_NAME ) @PreferDefaultValue ValueProperty PROP_FILE = new ValueProperty( TYPE, CreateWorkspaceFileOp.PROP_FILE ); }