Index: apichanges.xml =================================================================== RCS file: /cvs/debuggercore/viewmodel/apichanges.xml,v retrieving revision 1.14 diff -u -r1.14 apichanges.xml --- apichanges.xml 26 Jul 2005 16:34:46 -0000 1.14 +++ apichanges.xml 18 Aug 2005 17:13:21 -0000 @@ -183,6 +183,23 @@ + + + CompoundModel enhanced with a possibility to set help ID. + + + + + + In order to have a help ID defined for the GUI component that is + created from the compound model, it's necessary to be able to set + that help ID on the compound model instance. + Two methods are added for that purpose: + void setHelpId(String) and String getHelpId(). + + + + Index: manifest.mf =================================================================== RCS file: /cvs/debuggercore/viewmodel/manifest.mf,v retrieving revision 1.12 diff -u -r1.12 manifest.mf --- manifest.mf 26 Jul 2005 16:34:46 -0000 1.12 +++ manifest.mf 18 Aug 2005 17:13:21 -0000 @@ -1,5 +1,5 @@ Manifest-Version: 1.0 OpenIDE-Module: org.netbeans.spi.viewmodel/2 OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/viewmodel/Bundle.properties -OpenIDE-Module-Specification-Version: 1.6 +OpenIDE-Module-Specification-Version: 1.7 Index: src/org/netbeans/modules/viewmodel/TreeModelNode.java =================================================================== RCS file: /cvs/debuggercore/viewmodel/src/org/netbeans/modules/viewmodel/TreeModelNode.java,v retrieving revision 1.38 diff -u -r1.38 TreeModelNode.java --- src/org/netbeans/modules/viewmodel/TreeModelNode.java 16 Aug 2005 09:19:28 -0000 1.38 +++ src/org/netbeans/modules/viewmodel/TreeModelNode.java 18 Aug 2005 17:13:21 -0000 @@ -84,6 +84,16 @@ this.model = model; this.treeModelRoot = treeModelRoot; this.object = object; + + // + // Use the modified CompoundModel class's field to set the + // propertiesHelpID for properties sheets if the model's helpID + // has been set + if (model.getHelpId() != null) { + this.setValue("propertiesHelpID", model.getHelpId()); // NOI18N + } + // + treeModelRoot.registerNode (object, this); refreshNode (); initProperties (); Index: src/org/netbeans/spi/viewmodel/Models.java =================================================================== RCS file: /cvs/debuggercore/viewmodel/src/org/netbeans/spi/viewmodel/Models.java,v retrieving revision 1.23 diff -u -r1.23 Models.java --- src/org/netbeans/spi/viewmodel/Models.java 26 Jul 2005 16:34:49 -0000 1.23 +++ src/org/netbeans/spi/viewmodel/Models.java 18 Aug 2005 17:13:22 -0000 @@ -2093,6 +2093,32 @@ private ColumnModel[] columnModels; private TableModel tableModel; private TreeExpansionModel treeExpansionModel; + + // + // New field, setter/getter for propertiesHelpID, which is used + // for property sheet help + private String propertiesHelpID = null; + + /** + * Set a help ID for this model. + * @param propertiesHelpID The help ID, which is set for the properties + * sheets created from this model. + * @since 1.7 + */ + public void setHelpId(String propertiesHelpID) { + this.propertiesHelpID = propertiesHelpID; + } + + /** + * Get a help ID for this model. + * @return The help ID defined for the properties sheets, + * or null. + * @since 1.7 + */ + public String getHelpId() { + return propertiesHelpID; + } + // // init ....................................................................