/******************************************************************************
* Copyright (c) 2016 Oracle and Accenture
* 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
* Ling Hao - [8447730] rewrite context help binding feature
* Kamesh Sampath - [355751] General improvement of XML root binding API
******************************************************************************/
package org.eclipse.sapphire.ui.def;
import org.eclipse.sapphire.Element;
import org.eclipse.sapphire.ElementList;
import org.eclipse.sapphire.ElementType;
import org.eclipse.sapphire.ListProperty;
import org.eclipse.sapphire.Type;
import org.eclipse.sapphire.modeling.annotations.Documentation;
import org.eclipse.sapphire.modeling.annotations.Label;
import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
/**
* @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a>
* @author <a href="mailto:kamesh.sampath@accenture.com">Kamesh Sampath</a>
*/
@XmlNamespace( uri = "http://www.eclipse.org/sapphire/xmlns/extension" )
@XmlBinding( path = "extension" )
public interface ISapphireUiExtensionDef extends Element
{
ElementType TYPE = new ElementType( ISapphireUiExtensionDef.class );
// *** Actions ***
@Type( base = ActionDef.class )
@Label( standard = "action" )
@Documentation( content = "Actions that have been contributed via the extension point." )
@XmlListBinding( mappings = @XmlListBinding.Mapping( element = "action", type = ActionDef.class ) )
ListProperty PROP_ACTIONS = new ListProperty( TYPE, "Actions" );
ElementList<ActionDef> getActions();
// *** ActionHandlers ***
@Type( base = ActionHandlerDef.class )
@Label( standard = "action handlers" )
@Documentation( content = "Action handlers that have been contributed via the extension point." )
@XmlListBinding( mappings = @XmlListBinding.Mapping( element = "action-handler", type = ActionHandlerDef.class ) )
ListProperty PROP_ACTION_HANDLERS = new ListProperty( TYPE, "ActionHandlers" );
ElementList<ActionHandlerDef> getActionHandlers();
// *** ActionHandlerFactories ***
@Type( base = ActionHandlerFactoryDef.class )
@Label( standard = "action handler factories" )
@XmlListBinding( mappings = @XmlListBinding.Mapping( element = "action-handler-factory", type = ActionHandlerFactoryDef.class ) )
ListProperty PROP_ACTION_HANDLER_FACTORIES = new ListProperty( TYPE, "ActionHandlerFactories" );
ElementList<ActionHandlerFactoryDef> getActionHandlerFactories();
// *** PresentationStyles ***
@Type( base = PresentationStyleDef.class )
@Label( standard = "presentation styles" )
@XmlListBinding( mappings = @XmlListBinding.Mapping( element = "presentation-style", type = PresentationStyleDef.class ) )
ListProperty PROP_PRESENTATION_STYLES = new ListProperty(TYPE, "PresentationStyles");
ElementList<PresentationStyleDef> getPresentationStyles();
}