/****************************************************************************** * 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 and ongoing maintenance ******************************************************************************/ package org.eclipse.sapphire.sdk.extensibility; import java.util.List; import org.eclipse.sapphire.Element; import org.eclipse.sapphire.ElementList; import org.eclipse.sapphire.ElementType; import org.eclipse.sapphire.Filter; import org.eclipse.sapphire.ListProperty; import org.eclipse.sapphire.Type; import org.eclipse.sapphire.Value; import org.eclipse.sapphire.ValueProperty; import org.eclipse.sapphire.modeling.annotations.DefaultValue; import org.eclipse.sapphire.modeling.annotations.DelegateImplementation; import org.eclipse.sapphire.modeling.annotations.Enablement; import org.eclipse.sapphire.modeling.annotations.Label; import org.eclipse.sapphire.sdk.extensibility.internal.ExtensionSummaryExportOpMethods; /** * @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a> */ public interface ExtensionSummaryExportOp extends Element { ElementType TYPE = new ElementType( ExtensionSummaryExportOp.class ); // *** CreateFinishedDocument *** @Type( base = Boolean.class ) @Label( standard = "create finished document" ) @DefaultValue( text = "true" ) ValueProperty PROP_CREATE_FINISHED_DOCUMENT = new ValueProperty( TYPE, "CreateFinishedDocument" ); Value<Boolean> getCreateFinishedDocument(); void setCreateFinishedDocument( String value ); void setCreateFinishedDocument( Boolean value ); // *** DocumentTitle *** @Label( standard = "document title" ) @DefaultValue( text = "Sapphire Extensions" ) @Enablement( expr = "${ CreateFinishedDocument }" ) ValueProperty PROP_DOCUMENT_TITLE = new ValueProperty( TYPE, "DocumentTitle" ); Value<String> getDocumentTitle(); void setDocumentTitle( String value ); // *** DocumentBodyTitle *** @Label( standard = "document body title" ) @Enablement( expr = "${ CreateFinishedDocument }" ) ValueProperty PROP_DOCUMENT_BODY_TITLE = new ValueProperty( TYPE, "DocumentBodyTitle" ); Value<String> getDocumentBodyTitle(); void setDocumentBodyTitle( String value ); // *** EmbedDefaultStyle *** @Type( base = Boolean.class ) @Label( standard = "embed default style" ) @DefaultValue( text = "true" ) @Enablement( expr = "${ CreateFinishedDocument }" ) ValueProperty PROP_EMBED_DEFAULT_STYLE = new ValueProperty( TYPE, "EmbedDefaultStyle" ); Value<Boolean> getEmbedDefaultStyle(); void setEmbedDefaultStyle( String value ); void setEmbedDefaultStyle( Boolean value ); // *** Sections *** @Type( base = ExtensionSummarySectionDef.class ) @Label( standard = "sections" ) ListProperty PROP_SECTIONS = new ListProperty( TYPE, "Sections" ); ElementList<ExtensionSummarySectionDef> getSections(); // *** Method: execute *** @DelegateImplementation( ExtensionSummaryExportOpMethods.class ) String execute( List<SapphireExtensionDef> extensions, Filter<Element> filter ); }