![]() |
Smalltalk/X WebserverDocumentation of class 'CodeView': |
|
Class: CodeViewInheritance:Object | +--GraphicsMedium | +--DisplaySurface | +--SimpleView | +--View | +--ListView | +--TextView | +--EditTextView | +--TextCollector | +--Workspace | +--CodeView | +--Tools::CodeView2::TextView | +--Tools::NewSystemBrowserCodeView
Description:a view for text which is known to be smalltalk code. It adds 'explain' to the menu, and defines another action: explainAction to be performed for explain. This action is to be defined by the user of this view (i.e. usually the owning browser) In addition, uncomment/comment are added to the controlMenu. These are smalltalk specific - if you plan to edit other language code, you need a different kind of CodeView for that. If used with a model, accept sends the changeMsg to it (as defined in EditTextView). (however, it is possible to define both changeMsg and acceptAction) See how doIt/printIt/inspectIt are handled in the superclass: Workspace. Caveat: in this version, CodeView does not yet support MVC setups for doIt and explain. If required, simulate this by setting the doItAction and explainAction, to notify the model manually about whats going on. [instance variables:] commentStrings <Array> an array with 2 entries; the first defining the EOL-comment string, the 2nd (another array) defining opening and closing comment strings. Default to ST/X comments, can be changed in an instance for other programming languages. Related information:Workspace EditTextView TextView Class protocol:othersInstance protocol:accessing
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 08 Dec 2023 02:42:30 GMT
|