|
Added
Link Here
|
| 1 |
package org.eclipse.sapphire.ui.diagram.def; |
| 2 |
|
| 3 |
import org.eclipse.sapphire.modeling.ListProperty; |
| 4 |
import org.eclipse.sapphire.modeling.ModelElementList; |
| 5 |
import org.eclipse.sapphire.modeling.ModelElementType; |
| 6 |
import org.eclipse.sapphire.modeling.Value; |
| 7 |
import org.eclipse.sapphire.modeling.ValueProperty; |
| 8 |
import org.eclipse.sapphire.modeling.annotations.DefaultValue; |
| 9 |
import org.eclipse.sapphire.modeling.annotations.GenerateImpl; |
| 10 |
import org.eclipse.sapphire.modeling.annotations.Label; |
| 11 |
import org.eclipse.sapphire.modeling.annotations.Type; |
| 12 |
import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding; |
| 13 |
import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding; |
| 14 |
import org.eclipse.sapphire.ui.def.ISapphirePartDef; |
| 15 |
|
| 16 |
@GenerateImpl |
| 17 |
|
| 18 |
public interface IDiagramPageDef |
| 19 |
|
| 20 |
extends ISapphirePartDef |
| 21 |
|
| 22 |
{ |
| 23 |
ModelElementType TYPE = new ModelElementType( IDiagramPageDef.class); |
| 24 |
|
| 25 |
// *** Id *** |
| 26 |
|
| 27 |
@Label( standard = "ID" ) |
| 28 |
@XmlBinding( path = "id" ) |
| 29 |
|
| 30 |
ValueProperty PROP_ID = new ValueProperty( TYPE, "Id" ); |
| 31 |
|
| 32 |
Value<String> getId(); |
| 33 |
void setId( String id ); |
| 34 |
|
| 35 |
// *** PageName *** |
| 36 |
|
| 37 |
@Label( standard = "page name" ) |
| 38 |
@DefaultValue( text = "Diagram" ) |
| 39 |
@XmlBinding( path = "page-name" ) |
| 40 |
|
| 41 |
ValueProperty PROP_PAGE_NAME = new ValueProperty( TYPE, "PageName" ); |
| 42 |
|
| 43 |
Value<String> getPageName(); |
| 44 |
void setPageName( String pageName ); |
| 45 |
|
| 46 |
// *** PageHeaderText *** |
| 47 |
|
| 48 |
@Label( standard = "page header text" ) |
| 49 |
@DefaultValue( text = "Diagram View" ) |
| 50 |
@XmlBinding( path = "page-header-text" ) |
| 51 |
|
| 52 |
ValueProperty PROP_PAGE_HEADER_TEXT = new ValueProperty( TYPE, "PageHeaderText" ); |
| 53 |
|
| 54 |
Value<String> getPageHeaderText(); |
| 55 |
void setPageHeaderText( String pageHeaderText ); |
| 56 |
|
| 57 |
// *** DiagramNodeDefs *** |
| 58 |
|
| 59 |
@Type( base = IDiagramNodeDef.class ) |
| 60 |
@XmlListBinding( mappings = @XmlListBinding.Mapping( element = "node", type = IDiagramNodeDef.class ) ) |
| 61 |
|
| 62 |
ListProperty PROP_DIAGRAM_NODE_DEFS = new ListProperty( TYPE, "DiagramNodeDefs" ); |
| 63 |
|
| 64 |
ModelElementList<IDiagramNodeDef> getDiagramNodeDefs(); |
| 65 |
|
| 66 |
// *** DiagramConnectionDefs *** |
| 67 |
|
| 68 |
@Type( base = IDiagramConnectionDef.class ) |
| 69 |
@XmlListBinding( mappings = @XmlListBinding.Mapping( element = "connection", type = IDiagramConnectionDef.class ) ) |
| 70 |
|
| 71 |
ListProperty PROP_DIAGRAM_CONNECTION_DEFS = new ListProperty( TYPE, "DiagramConnectionDefs" ); |
| 72 |
|
| 73 |
ModelElementList<IDiagramConnectionDef> getDiagramConnectionDefs(); |
| 74 |
|
| 75 |
} |