This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 62617
Collapse All | Expand All

(-)apichanges.xml (+17 lines)
Lines 183-188 Link Here
183
        <class package="org.netbeans.spi.viewmodel" name="ModelEvent" />
183
        <class package="org.netbeans.spi.viewmodel" name="ModelEvent" />
184
        <issue number="60499"/>
184
        <issue number="60499"/>
185
    </change>
185
    </change>
186
    <change>
187
        <api name="ViewModelAPI"/>
188
        <summary>CompoundModel enhanced with a possibility to set help ID.</summary>
189
        <version major="1" minor="7"/>
190
        <date day="18" month="8" year="2005"/>
191
        <author login="mentlicher"/>
192
        <compatibility binary="compatible" source="compatible" deletion="no" addition="yes" modification="no"/>
193
        <description>
194
            In order to have a help ID defined for the GUI component that is
195
            created from the compound model, it's necessary to be able to set
196
            that help ID on the compound model instance.
197
            Two methods are added for that purpose:
198
            void setHelpId(String) and String getHelpId().
199
        </description>
200
        <class package="org.netbeans.spi.viewmodel" name="Models" />
201
        <issue number="62617"/>
202
    </change>
186
    
203
    
187
204
188
</changes>
205
</changes>
(-)manifest.mf (-1 / +1 lines)
Lines 1-5 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.netbeans.spi.viewmodel/2
2
OpenIDE-Module: org.netbeans.spi.viewmodel/2
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/viewmodel/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/viewmodel/Bundle.properties
4
OpenIDE-Module-Specification-Version: 1.6
4
OpenIDE-Module-Specification-Version: 1.7
5
5
(-)src/org/netbeans/modules/viewmodel/TreeModelNode.java (+10 lines)
Lines 84-89 Link Here
84
        this.model = model;
84
        this.model = model;
85
        this.treeModelRoot = treeModelRoot;
85
        this.treeModelRoot = treeModelRoot;
86
        this.object = object;
86
        this.object = object;
87
        
88
        // <RAVE>
89
        // Use the modified CompoundModel class's field to set the 
90
        // propertiesHelpID for properties sheets if the model's helpID
91
        // has been set
92
        if (model.getHelpId() != null) {
93
            this.setValue("propertiesHelpID", model.getHelpId()); // NOI18N
94
        }
95
        // </RAVE>
96
        
87
        treeModelRoot.registerNode (object, this); 
97
        treeModelRoot.registerNode (object, this); 
88
        refreshNode ();
98
        refreshNode ();
89
        initProperties ();
99
        initProperties ();
(-)src/org/netbeans/spi/viewmodel/Models.java (+26 lines)
Lines 2093-2098 Link Here
2093
        private ColumnModel[]   columnModels;
2093
        private ColumnModel[]   columnModels;
2094
        private TableModel      tableModel;
2094
        private TableModel      tableModel;
2095
        private TreeExpansionModel treeExpansionModel;
2095
        private TreeExpansionModel treeExpansionModel;
2096
        
2097
        // <RAVE>
2098
        // New field, setter/getter for propertiesHelpID, which is used
2099
        // for property sheet help
2100
        private String propertiesHelpID = null;
2101
        
2102
        /**
2103
         * Set a help ID for this model.
2104
         * @param propertiesHelpID The help ID, which is set for the properties
2105
         *        sheets created from this model.
2106
         * @since 1.7
2107
         */
2108
        public void setHelpId(String propertiesHelpID) {
2109
            this.propertiesHelpID = propertiesHelpID;
2110
        }
2111
        
2112
        /**
2113
         * Get a help ID for this model.
2114
         * @return The help ID defined for the properties sheets,
2115
         *         or <code>null</code>.
2116
         * @since 1.7
2117
         */
2118
        public String getHelpId() {
2119
            return propertiesHelpID;
2120
        }
2121
        // </RAVE>
2096
2122
2097
2123
2098
        // init ....................................................................
2124
        // init ....................................................................

Return to bug 62617