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/def/ISapphireUiDef.java (+10 lines)
Lines 26-31 Link Here
26
import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
26
import org.eclipse.sapphire.modeling.xml.annotations.XmlListBinding;
27
import org.eclipse.sapphire.modeling.xml.annotations.XmlRootBinding;
27
import org.eclipse.sapphire.modeling.xml.annotations.XmlRootBinding;
28
import org.eclipse.sapphire.ui.def.internal.SapphireUiDefMethods;
28
import org.eclipse.sapphire.ui.def.internal.SapphireUiDefMethods;
29
import org.eclipse.sapphire.ui.diagram.def.IDiagramPageDef;
29
30
30
/**
31
/**
31
 * @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a>
32
 * @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a>
Lines 129-134 Link Here
129
    
130
    
130
    ModelElementList<IEditorPageDef> getEditorPageDefs();
131
    ModelElementList<IEditorPageDef> getEditorPageDefs();
131
    
132
    
133
    // *** DiagramPageDefs ***
134
    
135
    @Type( base = IDiagramPageDef.class )
136
    @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "diagram-page", type = IDiagramPageDef.class ) )
137
    
138
    ListProperty PROP_DIAGRAM_PAGE_DEFS = new ListProperty( TYPE, "DiagramPageDefs" );
139
    
140
    ModelElementList<IDiagramPageDef> getDiagramPageDefs();
141
    
132
    // *** DialogDefs ***
142
    // *** DialogDefs ***
133
    
143
    
134
    @Type( base = ISapphireDialogDef.class )
144
    @Type( base = ISapphireDialogDef.class )
(-)src/org/eclipse/sapphire/ui/diagram/def/IDiagramConnectionDef.java (+69 lines)
Added Link Here
1
package org.eclipse.sapphire.ui.diagram.def;
2
3
import org.eclipse.sapphire.modeling.ModelElementType;
4
import org.eclipse.sapphire.modeling.Value;
5
import org.eclipse.sapphire.modeling.ValueProperty;
6
import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
7
import org.eclipse.sapphire.modeling.annotations.Label;
8
import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
9
import org.eclipse.sapphire.ui.def.ISapphirePartDef;
10
11
@GenerateImpl
12
13
public interface IDiagramConnectionDef 
14
	
15
	extends ISapphirePartDef 
16
	
17
{
18
	ModelElementType TYPE = new ModelElementType( IDiagramConnectionDef.class );
19
	
20
    // *** Id ***
21
    
22
    @Label( standard = "ID" )
23
    @XmlBinding( path = "id" )
24
    
25
    ValueProperty PROP_ID = new ValueProperty( TYPE, "Id" );
26
    
27
    Value<String> getId();
28
    void setId( String id );
29
    
30
    // *** Property ***
31
    
32
    @Label( standard = "property" )
33
    @XmlBinding( path = "property" )
34
    
35
    ValueProperty PROP_PROPERTY = new ValueProperty( TYPE, "Property" );
36
    
37
    Value<String> getProperty();
38
    void setProperty( String property );
39
        
40
    // *** DynamicLabelProperty ***
41
    
42
    @Label( standard = "dynamic label property" )
43
    @XmlBinding( path = "dynamic-label/property" )
44
    
45
    ValueProperty PROP_DYNAMIC_LABEL_PROPERTY = new ValueProperty( TYPE, "DynamicLabelProperty" );
46
    
47
    Value<String> getDynamicLabelProperty();
48
    void setDynamicLabelProperty( String dynamicLabelProperty );
49
	
50
    // *** SourceProperty ***
51
    
52
    @Label( standard = "source property" )
53
    @XmlBinding( path = "source/property" )
54
55
    ValueProperty PROP_SOURCE_PROPERTY = new ValueProperty( TYPE, "SourceProperty" );
56
    
57
    Value<String> getSourceProperty();
58
    void setSourceProperty( String sourceProperty );
59
60
    // *** TargetProperty ***
61
    
62
    @Label( standard = "target property" )
63
    @XmlBinding( path = "target/property" )
64
65
    ValueProperty PROP_TARGET_PROPERTY = new ValueProperty( TYPE, "TargetProperty" );
66
    
67
    Value<String> getTargetProperty();
68
    void setTargetProperty( String targetProperty );
69
}
(-)src/org/eclipse/sapphire/ui/diagram/def/IDiagramNodeDef.java (+70 lines)
Added Link Here
1
package org.eclipse.sapphire.ui.diagram.def;
2
3
import org.eclipse.sapphire.modeling.ModelElementType;
4
import org.eclipse.sapphire.modeling.Value;
5
import org.eclipse.sapphire.modeling.ValueProperty;
6
import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
7
import org.eclipse.sapphire.modeling.annotations.Label;
8
import org.eclipse.sapphire.modeling.xml.annotations.XmlBinding;
9
import org.eclipse.sapphire.ui.def.ISapphirePartDef;
10
11
@GenerateImpl
12
13
public interface IDiagramNodeDef 
14
15
	extends ISapphirePartDef
16
	
17
{
18
	ModelElementType TYPE = new ModelElementType( IDiagramNodeDef.class );
19
	
20
    // *** Id ***
21
    
22
    @Label( standard = "ID" )
23
    @XmlBinding( path = "id" )
24
    
25
    ValueProperty PROP_ID = new ValueProperty( TYPE, "Id" );
26
    
27
    Value<String> getId();
28
    void setId( String id );
29
    
30
    // *** ToolPaletteLabel ***
31
    
32
    @Label( standard = "tool palette label" )
33
    @XmlBinding( path = "toolPaletteLabel" )
34
    
35
    ValueProperty PROP_TOOL_PALETTE_LABEL = new ValueProperty( TYPE, "ToolPaletteLabel" );
36
    
37
    Value<String> getToolPaletteLabel();
38
    void setToolPaletteLabel( String paletteLabel );
39
    
40
    // *** ToolPaletteDesc ***
41
    
42
    @Label( standard = "tool palette description" )
43
    @XmlBinding( path = "toolPaletteDesc" )
44
    
45
    ValueProperty PROP_TOOL_PALETTE_DESC = new ValueProperty( TYPE, "ToolPaletteDesc" );
46
    
47
    Value<String> getToolPaletteDesc();
48
    void setToolPaletteDesc( String paletteDesc );
49
50
    // *** Property ***
51
    
52
    @Label( standard = "property" )
53
    @XmlBinding( path = "property" )
54
    
55
    ValueProperty PROP_PROPERTY = new ValueProperty( TYPE, "Property" );
56
    
57
    Value<String> getProperty();
58
    void setProperty( String property );
59
        
60
    // *** DynamicLabelProperty ***
61
    
62
    @Label( standard = "dynamic label property" )
63
    @XmlBinding( path = "dynamic-label/property" )
64
    
65
    ValueProperty PROP_DYNAMIC_LABEL_PROPERTY = new ValueProperty( TYPE, "DynamicLabelProperty" );
66
    
67
    Value<String> getDynamicLabelProperty();
68
    void setDynamicLabelProperty( String dynamicLabelProperty );
69
	
70
}
(-)src/org/eclipse/sapphire/ui/diagram/def/IDiagramPageDef.java (+75 lines)
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
}

Return to bug 330482