Procházet zdrojové kódy

Class comment for HLInspectorModel

Nicolas Petton před 10 roky
rodič
revize
c42aec489e
2 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 1 0
      src/Helios-Inspector.js
  2. 6 0
      src/Helios-Inspector.st

+ 1 - 0
src/Helios-Inspector.js

@@ -79,6 +79,7 @@ globals.HLInspectorDisplayWidget);
 
 
 smalltalk.addClass('HLInspectorModel', globals.HLModel, ['inspectee', 'code', 'variables', 'label', 'selection'], 'Helios-Inspector');
+globals.HLInspectorModel.comment="I am the model of the Helios inspector `HLInspectorWidget`.\x0a\x0a## API\x0a\x0aUse the method `inspect:on:` to inspect an object on an inspector.";
 smalltalk.addMethod(
 smalltalk.method({
 selector: "code",

+ 6 - 0
src/Helios-Inspector.st

@@ -33,6 +33,12 @@ selectionDisplayString
 HLModel subclass: #HLInspectorModel
 	instanceVariableNames: 'inspectee code variables label selection'
 	package: 'Helios-Inspector'!
+!HLInspectorModel commentStamp!
+I am the model of the Helios inspector `HLInspectorWidget`.
+
+## API
+
+Use the method `inspect:on:` to inspect an object on an inspector.!
 
 !HLInspectorModel methodsFor: 'accessing'!