Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 330482 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/sapphire/ui/diagram/def/IDiagramDef.java (+40 lines)
Added Link Here
1
package org.eclipse.sapphire.ui.diagram.def;
2
3
import org.eclipse.sapphire.modeling.IModelElement;
4
import org.eclipse.sapphire.modeling.ListProperty;
5
import org.eclipse.sapphire.modeling.ModelElementList;
6
import org.eclipse.sapphire.modeling.ModelElementType;
7
import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
8
import org.eclipse.sapphire.modeling.annotations.Type;
9
import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
10
import org.eclipse.sapphire.modeling.xml.annotations.XmlRootBinding;
11
12
@GenerateImpl
13
@XmlRootBinding( elementName = "definition" )
14
15
public interface IDiagramDef 
16
	
17
	extends IModelElement
18
	
19
{
20
	ModelElementType TYPE = new ModelElementType( IDiagramDef.class);
21
	
22
	// *** DiagramNodeDefs ***
23
    
24
    @Type( base = IDiagramNodeDef.class )
25
    @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "node", type = IDiagramNodeDef.class ) )
26
                             
27
    ListProperty PROP_DIAGRAM_NODE_DEFS = new ListProperty( TYPE, "DiagramNodeDefs" );
28
    
29
    ModelElementList<IDiagramNodeDef> getDiagramNodeDefs();
30
    
31
	// *** DiagramLinkDefs ***
32
    
33
    @Type( base = IDiagramLinkDef.class )
34
    @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "link", type = IDiagramLinkDef.class ) )
35
                             
36
    ListProperty PROP_DIAGRAM_LINK_DEFS = new ListProperty( TYPE, "DiagramLinkDefs" );
37
    
38
    ModelElementList<IDiagramLinkDef> getDiagramLinkDefs();
39
	
40
}
(-)src/org/eclipse/sapphire/ui/diagram/def/IDiagramLinkDef.java (+66 lines)
Added Link Here
1
package org.eclipse.sapphire.ui.diagram.def;
2
3
import org.eclipse.sapphire.modeling.IModelElement;
4
import org.eclipse.sapphire.modeling.ModelElementType;
5
import org.eclipse.sapphire.modeling.Value;
6
import org.eclipse.sapphire.modeling.ValueProperty;
7
import org.eclipse.sapphire.modeling.annotations.Label;
8
import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
9
10
public interface IDiagramLinkDef 
11
	
12
	extends IModelElement 
13
	
14
{
15
	ModelElementType TYPE = new ModelElementType( IDiagramLinkDef.class );
16
	
17
    // *** Id ***
18
    
19
    @Label( standard = "ID" )
20
    @XmlBinding( path = "id" )
21
    
22
    ValueProperty PROP_ID = new ValueProperty( TYPE, "Id" );
23
    
24
    Value<String> getId();
25
    void setId( String id );
26
    
27
    // *** Property ***
28
    
29
    @Label( standard = "property" )
30
    @XmlBinding( path = "property" )
31
    
32
    ValueProperty PROP_PROPERTY = new ValueProperty( TYPE, "Property" );
33
    
34
    Value<String> getProperty();
35
    void setProperty( String property );
36
        
37
    // *** DynamicLabelProperty ***
38
    
39
    @Label( standard = "dynamic label property" )
40
    @XmlBinding( path = "dynamic-label/property" )
41
    
42
    ValueProperty PROP_DYNAMIC_LABEL_PROPERTY = new ValueProperty( TYPE, "DynamicLabelProperty" );
43
    
44
    Value<String> getDynamicLabelProperty();
45
    void setDynamicLabelProperty( String dynamicLabelProperty );
46
	
47
    // *** SourceProperty ***
48
    
49
    @Label( standard = "source property" )
50
    @XmlBinding( path = "source/property" )
51
52
    ValueProperty PROP_SOURCE_PROPERTY = new ValueProperty( TYPE, "SourceProperty" );
53
    
54
    Value<String> getSourceProperty();
55
    void setSourceProperty( String sourceProperty );
56
57
    // *** TargetProperty ***
58
    
59
    @Label( standard = "target property" )
60
    @XmlBinding( path = "target/property" )
61
62
    ValueProperty PROP_TARGET_PROPERTY = new ValueProperty( TYPE, "TargetProperty" );
63
    
64
    Value<String> getTargetProperty();
65
    void setTargetProperty( String targetProperty );
66
}
(-)src/org/eclipse/sapphire/ui/diagram/def/IDiagramNodeDef.java (+71 lines)
Added Link Here
1
package org.eclipse.sapphire.ui.diagram.def;
2
3
import org.eclipse.sapphire.modeling.IModelElement;
4
import org.eclipse.sapphire.modeling.ModelElementType;
5
import org.eclipse.sapphire.modeling.Value;
6
import org.eclipse.sapphire.modeling.ValueProperty;
7
import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
8
import org.eclipse.sapphire.modeling.annotations.Label;
9
import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
10
import org.eclipse.sapphire.ui.def.ISapphirePartDef;
11
12
@GenerateImpl
13
14
public interface IDiagramNodeDef 
15
16
	extends IModelElement, ISapphirePartDef
17
	
18
{
19
	ModelElementType TYPE = new ModelElementType( IDiagramNodeDef.class );
20
	
21
    // *** Id ***
22
    
23
    @Label( standard = "ID" )
24
    @XmlBinding( path = "id" )
25
    
26
    ValueProperty PROP_ID = new ValueProperty( TYPE, "Id" );
27
    
28
    Value<String> getId();
29
    void setId( String id );
30
    
31
    // *** ToolPaletteLabel ***
32
    
33
    @Label( standard = "tool palette label" )
34
    @XmlBinding( path = "toolPaletteLabel" )
35
    
36
    ValueProperty PROP_TOOL_PALETTE_LABEL = new ValueProperty( TYPE, "ToolPaletteLabel" );
37
    
38
    Value<String> getToolPaletteLabel();
39
    void setToolPaletteLabel( String paletteLabel );
40
    
41
    // *** ToolPaletteDesc ***
42
    
43
    @Label( standard = "tool palette description" )
44
    @XmlBinding( path = "toolPaletteDesc" )
45
    
46
    ValueProperty PROP_TOOL_PALETTE_DESC = new ValueProperty( TYPE, "ToolPaletteDesc" );
47
    
48
    Value<String> getToolPaletteDesc();
49
    void setToolPaletteDesc( String paletteDesc );
50
51
    // *** Property ***
52
    
53
    @Label( standard = "property" )
54
    @XmlBinding( path = "property" )
55
    
56
    ValueProperty PROP_PROPERTY = new ValueProperty( TYPE, "Property" );
57
    
58
    Value<String> getProperty();
59
    void setProperty( String property );
60
        
61
    // *** DynamicLabelProperty ***
62
    
63
    @Label( standard = "dynamic label property" )
64
    @XmlBinding( path = "dynamic-label/property" )
65
    
66
    ValueProperty PROP_DYNAMIC_LABEL_PROPERTY = new ValueProperty( TYPE, "DynamicLabelProperty" );
67
    
68
    Value<String> getDynamicLabelProperty();
69
    void setDynamicLabelProperty( String dynamicLabelProperty );
70
	
71
}

Return to bug 330482