CodeView.st
author Claus Gittinger <cg@exept.de>
Fri, 24 Apr 2020 12:05:44 +0200
changeset 6847 22dc78cb5436
parent 6672 8fa34ec6f874
permissions -rw-r--r--
#FEATURE by cg class: TextView changed: #editMenu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6617
129dbcededf3 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6601
diff changeset
     1
"{ Encoding: utf8 }"
129dbcededf3 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6601
diff changeset
     2
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     3
"
4
88eb91574867 *** empty log message ***
claus
parents: 2
diff changeset
     4
 COPYRIGHT (c) 1989 by Claus Gittinger
70
14443a9ea4ec *** empty log message ***
claus
parents: 59
diff changeset
     5
	      All Rights Reserved
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     6
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     7
 This software is furnished under a license and may be used
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    12
 hereby transferred.
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    13
"
2300
68fc714627e8 Remove leading and trailing whitwpsace when accepting a method.
Stefan Vogel <sv@exept.de>
parents: 2097
diff changeset
    14
"{ Package: 'stx:libwidg' }"
68fc714627e8 Remove leading and trailing whitwpsace when accepting a method.
Stefan Vogel <sv@exept.de>
parents: 2097
diff changeset
    15
5530
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
    16
"{ NameSpace: Smalltalk }"
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
    17
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    18
Workspace subclass:#CodeView
1749
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
    19
	instanceVariableNames:'explainAction formatAction pointerOverWordAction'
3022
1b6d4d75a3d0 autoIndent
Claus Gittinger <cg@exept.de>
parents: 3021
diff changeset
    20
	classVariableNames:''
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    21
	poolDictionaries:''
2097
66d564e3752a category change
Claus Gittinger <cg@exept.de>
parents: 2046
diff changeset
    22
	category:'Views-Text'
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    23
!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    24
32
b6c23dfd5663 *** empty log message ***
claus
parents: 27
diff changeset
    25
!CodeView class methodsFor:'documentation'!
b6c23dfd5663 *** empty log message ***
claus
parents: 27
diff changeset
    26
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    27
copyright
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    28
"
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    29
 COPYRIGHT (c) 1989 by Claus Gittinger
70
14443a9ea4ec *** empty log message ***
claus
parents: 59
diff changeset
    30
	      All Rights Reserved
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    31
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    32
 This software is furnished under a license and may be used
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    33
 only in accordance with the terms of that license and with the
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    35
 be provided or otherwise made available to, or used by, any
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    36
 other person.  No title to or ownership of the software is
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    37
 hereby transferred.
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    38
"
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    39
!
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
    40
32
b6c23dfd5663 *** empty log message ***
claus
parents: 27
diff changeset
    41
documentation
b6c23dfd5663 *** empty log message ***
claus
parents: 27
diff changeset
    42
"
125
claus
parents: 123
diff changeset
    43
    a view for text which is known to be smalltalk code. 
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    44
    It adds 'explain' to the menu, and defines another action: 
125
claus
parents: 123
diff changeset
    45
      explainAction to be performed for explain.
32
b6c23dfd5663 *** empty log message ***
claus
parents: 27
diff changeset
    46
125
claus
parents: 123
diff changeset
    47
    This action is to be defined by the user of this view 
917
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    48
    (i.e. usually the owning browser)
121
claus
parents: 118
diff changeset
    49
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    50
    In addition, uncomment/comment are added to the controlMenu.
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    51
    These are smalltalk specific - if you plan to edit other language code,
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    52
    you need a different kind of CodeView for that.
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    53
125
claus
parents: 123
diff changeset
    54
    If used with a model, accept sends the changeMsg to it (as defined in EditTextView).
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    55
    (however, it is possible to define both changeMsg and acceptAction)
123
claus
parents: 121
diff changeset
    56
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    57
    See how doIt/printIt/inspectIt are handled in the superclass: Workspace.
123
claus
parents: 121
diff changeset
    58
claus
parents: 121
diff changeset
    59
    Caveat:
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    60
        in this version, CodeView does not yet support MVC setups for doIt
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    61
        and explain.
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    62
        If required, simulate this by setting the doItAction and
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
    63
        explainAction, to notify the model manually about whats going on.
583
2ec13b7ceba5 documentation
Claus Gittinger <cg@exept.de>
parents: 489
diff changeset
    64
917
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    65
    [instance variables:]
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    66
        commentStrings          <Array>         an array with 2 entries;
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    67
                                                the first defining the EOL-comment string,
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    68
                                                the 2nd (another array) defining opening
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    69
                                                and closing comment strings.
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    70
                                                Default to ST/X comments,
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    71
                                                can be changed in an instance for other
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    72
                                                programming languages.
7b66af482567 generalized commenting/uncommenting.
Claus Gittinger <cg@exept.de>
parents: 880
diff changeset
    73
583
2ec13b7ceba5 documentation
Claus Gittinger <cg@exept.de>
parents: 489
diff changeset
    74
    [author:]
2ec13b7ceba5 documentation
Claus Gittinger <cg@exept.de>
parents: 489
diff changeset
    75
        Claus Gittinger
2ec13b7ceba5 documentation
Claus Gittinger <cg@exept.de>
parents: 489
diff changeset
    76
2ec13b7ceba5 documentation
Claus Gittinger <cg@exept.de>
parents: 489
diff changeset
    77
    [see also:]
2ec13b7ceba5 documentation
Claus Gittinger <cg@exept.de>
parents: 489
diff changeset
    78
        Workspace EditTextView TextView
32
b6c23dfd5663 *** empty log message ***
claus
parents: 27
diff changeset
    79
"
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    80
! !
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    81
4276
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
    82
!CodeView class methodsFor:'others'!
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
    83
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
    84
version_CVS
5530
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
    85
    ^ '$Header$'
4276
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
    86
! !
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
    87
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    88
!CodeView methodsFor:'accessing'!
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    89
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    90
explainAction:aBlock
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    91
    "set the action to be performed on explain"
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    92
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    93
    explainAction := aBlock
1625
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
    94
!
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
    95
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
    96
formatAction:aBlock
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
    97
    "set the action to be performed on format"
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
    98
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
    99
    formatAction := aBlock
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   100
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   101
    "Created: / 17.2.1998 / 17:05:13 / cg"
1749
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   102
!
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   103
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   104
pointerOverWordAction:aBlock
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   105
    pointerOverWordAction := aBlock.
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   106
    pointerOverWordAction notNil ifTrue:[
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   107
        self enableMotionEvents.
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   108
    ] ifFalse:[
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   109
        self disableMotionEvents
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   110
    ]
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   111
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   112
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   113
! !
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   114
3021
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   115
!CodeView methodsFor:'cursor handling'!
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   116
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   117
cursorReturn
5530
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   118
    self cursorReturn:false
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   119
!
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   120
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   121
cursorReturn:withPossibleAutoindent
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   122
    "added an argument to disable autoindent, because this method is called from other
6672
8fa34ec6f874 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 6664
diff changeset
   123
     places as well (especially: the terminal emulator)..."
5530
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   124
     
6672
8fa34ec6f874 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 6664
diff changeset
   125
    |wasOn newCol|
3021
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   126
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   127
    "/ make Jan's enhancement dependent on
4594
ef0af7d8e4c6 class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4586
diff changeset
   128
    "/ the autoIndent-flag setting - to avoid confusing
3291
ec6a99aad5e8 comments
Stefan Vogel <sv@exept.de>
parents: 3252
diff changeset
   129
    "/ those who are used to the old behavior.
3021
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   130
    "/ for Jan: 
4594
ef0af7d8e4c6 class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4586
diff changeset
   131
    "/     autoIndent is configured in the settings-Editor dialog (for all new editors)
ef0af7d8e4c6 class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4586
diff changeset
   132
    "/     or in the per-editor popup menu (misc)
ef0af7d8e4c6 class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4586
diff changeset
   133
    "/ 
3022
1b6d4d75a3d0 autoIndent
Claus Gittinger <cg@exept.de>
parents: 3021
diff changeset
   134
    "/ and saved/restored with the userPreferences.
1b6d4d75a3d0 autoIndent
Claus Gittinger <cg@exept.de>
parents: 3021
diff changeset
   135
5530
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   136
    (withPossibleAutoindent not
6617
129dbcededf3 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6601
diff changeset
   137
    or:[ self autoIndent not
4594
ef0af7d8e4c6 class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4586
diff changeset
   138
    or:[ cursorLine == 1
5530
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   139
    or:[ self sensor shiftDown]]]) ifTrue:[
6672
8fa34ec6f874 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 6664
diff changeset
   140
        "/ no autoindent
8fa34ec6f874 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 6664
diff changeset
   141
        self basicCursorReturn.
3021
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   142
        ^ self.
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   143
    ].
6672
8fa34ec6f874 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 6664
diff changeset
   144
8fa34ec6f874 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 6664
diff changeset
   145
    "/ do autoIndent
4594
ef0af7d8e4c6 class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4586
diff changeset
   146
4813
938c3cbafe4c class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4594
diff changeset
   147
    wasOn := self hideCursor.
938c3cbafe4c class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4594
diff changeset
   148
6672
8fa34ec6f874 #REFACTORING by exept
Claus Gittinger <cg@exept.de>
parents: 6664
diff changeset
   149
    self basicCursorReturn.
4813
938c3cbafe4c class: CodeView
Claus Gittinger <cg@exept.de>
parents: 4594
diff changeset
   150
    newCol := (self leftIndentForLine:cursorLine)+1.
3021
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   151
3022
1b6d4d75a3d0 autoIndent
Claus Gittinger <cg@exept.de>
parents: 3021
diff changeset
   152
    self setCursorCol:newCol.
1b6d4d75a3d0 autoIndent
Claus Gittinger <cg@exept.de>
parents: 3021
diff changeset
   153
    self makeCursorVisibleAndShowCursor:wasOn
3021
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   154
6617
129dbcededf3 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6601
diff changeset
   155
    "Created: / 08-08-2004 / 18:59:55 / janfrog"
129dbcededf3 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6601
diff changeset
   156
    "Modified: / 08-08-2004 / 20:32:48 / janfrog"
129dbcededf3 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6601
diff changeset
   157
    "Modified: / 26-06-2019 / 23:19:09 / Claus Gittinger"
3021
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   158
! !
31557e9be5ec autoIndent
Claus Gittinger <cg@exept.de>
parents: 2922
diff changeset
   159
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   160
!CodeView methodsFor:'event handling'!
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   161
2382
f47c847636de *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   162
buttonMotion:buttonState x:x y:y
1749
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   163
    |col line word|
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   164
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   165
    pointerOverWordAction notNil ifTrue:[
2382
f47c847636de *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   166
        buttonState == 0 ifTrue:[
1749
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   167
            line := self visibleLineOfY:y.
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   168
            col := self colOfX:x inVisibleLine:line.
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   169
            line := self visibleLineToAbsoluteLine:line.
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   170
3891
e1e2624accf8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3798
diff changeset
   171
            self wordAtLine:line col:col do:[
e1e2624accf8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3798
diff changeset
   172
                :selectLine :beginCol :endLine :endCol :flag |
e1e2624accf8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3798
diff changeset
   173
1749
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   174
                word := self listAt:selectLine from:beginCol to:endCol.
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   175
                word notNil ifTrue:[
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   176
                    pointerOverWordAction value:word value:line value:col
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   177
                ]
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   178
            ].
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   179
            ^ self
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   180
        ].
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   181
    ].
2382
f47c847636de *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2300
diff changeset
   182
    super buttonMotion:buttonState x:x y:y
1749
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   183
!
0d0f27322523 hook for pointerOverWord actions (quick explain)
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
   184
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   185
keyPress:key x:x y:y
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   186
    "catch keyboard shortcuts"
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   187
4586
0678021a7151 code move
Claus Gittinger <cg@exept.de>
parents: 4276
diff changeset
   188
    <resource: #keyboard (#Format #Explain #Help)>
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   189
3798
5c318886e8da code formatting
Claus Gittinger <cg@exept.de>
parents: 3784
diff changeset
   190
    (key == #Format)  ifTrue:[self format. ^ self].
5c318886e8da code formatting
Claus Gittinger <cg@exept.de>
parents: 3784
diff changeset
   191
    (key == #Explain) ifTrue:[self explain. ^ self].
5c318886e8da code formatting
Claus Gittinger <cg@exept.de>
parents: 3784
diff changeset
   192
    (key == #Help)    ifTrue:[self explain. ^ self].
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   193
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   194
    super keyPress:key x:x y:y
922
e6a5e1cf9565 resource spec updated
Claus Gittinger <cg@exept.de>
parents: 918
diff changeset
   195
1625
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   196
    "Modified: / 17.2.1998 / 17:05:23 / cg"
32
b6c23dfd5663 *** empty log message ***
claus
parents: 27
diff changeset
   197
! !
b6c23dfd5663 *** empty log message ***
claus
parents: 27
diff changeset
   198
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   199
!CodeView methodsFor:'menu & menu actions'!
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   200
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   201
accept
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   202
    "redefined accept action;
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   203
     save cursor and selection to allow restore in case of an error
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   204
     (we are typically compiling here ... and the compiler may show
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   205
     errors by highlighting them)"
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   206
1106
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   207
    acceptEnabled == false ifTrue:[
6265
cee20d1e21a8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 6216
diff changeset
   208
        self beepInEditor.
1106
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   209
        ^ self
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   210
    ].
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   211
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   212
    codeStartPosition := 1.
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   213
    [
4866
1c27f7ed2e77 AbortSignal -> AbortOperationRequest
Stefan Vogel <sv@exept.de>
parents: 4813
diff changeset
   214
        AbortOperationRequest handle:[:ex |
1106
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   215
            self cursor:Cursor normal.
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   216
            "redraw selection in normal color"
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   217
            self selectFromLine:selectionStartLine col:selectionStartCol 
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   218
                         toLine:selectionEndLine col:selectionEndCol.
4276
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
   219
            self invalidate.
1106
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   220
            ex return
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   221
        ] do:[
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   222
            super accept.
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   223
        ]
2522
d80496af7eaf #valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents: 2460
diff changeset
   224
    ] ensure:[
4276
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
   225
        self cursor:Cursor normal.
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
   226
        "/ self unselect.
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   227
    ]
1106
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   228
4276
88d3182dc760 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 3891
diff changeset
   229
    "Modified: / 30-06-2011 / 19:41:39 / cg"
419
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   230
!
2bd5f73fffd2 commentary
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   231
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   232
editMenu
121
claus
parents: 118
diff changeset
   233
    "return the popUpMenu;
claus
parents: 118
diff changeset
   234
     to make this independent from what is defined in superclasses,
claus
parents: 118
diff changeset
   235
     get the superclass menu and add my functions."
131
claus
parents: 125
diff changeset
   236
2460
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   237
    <resource: #keyboard ( 
2046
3593143e38e3 added #format.
Claus Gittinger <cg@exept.de>
parents: 1749
diff changeset
   238
                          #Accept #Explain #Format)>
1261
bdb18f73205c resource flag: #menu -> #programMenu
Claus Gittinger <cg@exept.de>
parents: 1106
diff changeset
   239
    <resource: #programMenu>
489
5816aa12fec8 resources
Claus Gittinger <cg@exept.de>
parents: 464
diff changeset
   240
3252
b44361e6b97a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3224
diff changeset
   241
    |m sub subsub sensor|
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 32
diff changeset
   242
97
cbf495fe3b64 *** empty log message ***
claus
parents: 95
diff changeset
   243
    m := super editMenu.
6585
a170fa1a195e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 6411
diff changeset
   244
    
3252
b44361e6b97a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3224
diff changeset
   245
    ((sensor := self sensor) notNil and:[sensor ctrlDown and:[sensor shiftDown not]]) ifTrue:[
2460
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   246
        sub := m.
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   247
        m := nil.
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   248
    ] ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   249
        sub := m subMenuAt:#others.
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   250
    ].
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   251
2460
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   252
    m notNil ifTrue:[
430
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   253
        "
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   254
         codeViews do support #accept
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   255
         ... add it after #inspectIt
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   256
        "
6411
04771f75a742 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 6265
diff changeset
   257
        (m indexOf:#accept) == 0 ifTrue:[
6216
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   258
            m 
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   259
              addItemList:#(
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   260
                    ('-')
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   261
                    ('Accept'       accept          Accept)       
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   262
                )
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   263
              resources:resources  
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   264
              after:#inspectIt.
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   265
        ].
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   266
        
1293
c0806b73dc48 disable accept menuItem, if there is no acceptAction
Claus Gittinger <cg@exept.de>
parents: 1261
diff changeset
   267
        (acceptEnabled == false 
c0806b73dc48 disable accept menuItem, if there is no acceptAction
Claus Gittinger <cg@exept.de>
parents: 1261
diff changeset
   268
        or:[acceptAction isNil]) ifTrue:[
1106
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   269
            m disable:#accept
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   270
        ].
2460
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   271
    ].
1106
7afde7c75396 added #disableAccept interface
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   272
2460
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   273
    sub notNil ifTrue:[
430
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   274
        "
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   275
         and add #explain after $gotoLine in the extra menu
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   276
        "
2867
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   277
        sub 
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   278
          addItemList:#(
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   279
                ('-')
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   280
                ('Explain'       explain          Explain)       
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   281
            )
2922
70e3f3ec7980 oops - doIt and friends were not translated
Claus Gittinger <cg@exept.de>
parents: 2867
diff changeset
   282
          resources:resources  
2867
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   283
          after:#gotoLine.
430
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   284
2460
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   285
        formatAction notNil ifTrue:[
2867
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   286
            subsub := sub subMenuAt:#tools.
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   287
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   288
            subsub notNil ifTrue:[
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   289
                subsub
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   290
                  addItemList:#(
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   291
                        ('Format'       format          Format)       
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   292
                    )
2922
70e3f3ec7980 oops - doIt and friends were not translated
Claus Gittinger <cg@exept.de>
parents: 2867
diff changeset
   293
                  resources:resources  
2867
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   294
                  after:#indent.
4d21f141d0c9 menu reorganized
Claus Gittinger <cg@exept.de>
parents: 2730
diff changeset
   295
            ].
2460
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   296
        ].
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   297
        (self hasSelection not
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   298
        or:[explainAction isNil]) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   299
            sub disable:#explain 
430
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   300
        ].
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
   301
    ].
2460
Claus Gittinger <cg@exept.de>
parents: 2403
diff changeset
   302
    ^ m ? sub.
430
022b667e0d70 added accelerator display
Claus Gittinger <cg@exept.de>
parents: 419
diff changeset
   303
6216
d3bf0f1dec62 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5530
diff changeset
   304
    "Modified: / 20-10-2017 / 11:18:23 / cg"
6411
04771f75a742 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 6265
diff changeset
   305
    "Modified: / 28-08-2018 / 21:56:21 / Claus Gittinger"
6585
a170fa1a195e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 6411
diff changeset
   306
    "Modified (format): / 28-05-2019 / 10:33:21 / Claus Gittinger"
136
claus
parents: 132
diff changeset
   307
!
claus
parents: 132
diff changeset
   308
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   309
explain
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   310
    "explain action;
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   311
     evaluate the explainBlock passing whole contents and 
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   312
     selection as arguments."
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   313
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   314
    |text|
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   315
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   316
    explainAction notNil ifTrue:[
6601
4ccac038bf9b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 6596
diff changeset
   317
        text := self selection.
4ccac038bf9b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 6596
diff changeset
   318
        text notNil ifTrue:[
4ccac038bf9b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 6596
diff changeset
   319
            explainAction value:(self contents string) value:(text asString string)
4ccac038bf9b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 6596
diff changeset
   320
        ]
201
d2888811c664 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   321
    ]
6601
4ccac038bf9b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 6596
diff changeset
   322
4ccac038bf9b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 6596
diff changeset
   323
    "Modified: / 08-06-2019 / 17:33:40 / Claus Gittinger"
1625
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   324
!
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   325
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   326
format
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   327
    "format action;
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   328
     evaluate the formatBlock passing whole contents as argument."
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   329
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   330
    |text|
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   331
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   332
    formatAction notNil ifTrue:[
3128
a800566f5662 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3047
diff changeset
   333
        text := self contents.
a800566f5662 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3047
diff changeset
   334
        text notNil ifTrue:[
a800566f5662 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3047
diff changeset
   335
            self 
a800566f5662 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3047
diff changeset
   336
                undoableDo:[ formatAction value:(text asString) ]
3784
5e8b5e4102af *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3291
diff changeset
   337
                info:'Format'
3128
a800566f5662 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3047
diff changeset
   338
        ]
1625
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   339
    ]
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   340
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   341
    "Created: / 17.2.1998 / 17:06:18 / cg"
2203f9f0d3f3 preps for formatting;
Claus Gittinger <cg@exept.de>
parents: 1516
diff changeset
   342
    "Modified: / 17.2.1998 / 18:25:33 / cg"
6596
38f70b9dbdd9 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6585
diff changeset
   343
!
38f70b9dbdd9 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6585
diff changeset
   344
38f70b9dbdd9 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6585
diff changeset
   345
showLineLimitInMenu
38f70b9dbdd9 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6585
diff changeset
   346
    ^ false.
38f70b9dbdd9 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6585
diff changeset
   347
38f70b9dbdd9 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 6585
diff changeset
   348
    "Created: / 06-06-2019 / 11:23:20 / Claus Gittinger"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   349
! !
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   350
6664
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   351
!CodeView methodsFor:'protocol compatibility'!
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   352
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   353
language
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   354
    "is called in Workflow::ExecutionCodeEditorSmalltalkOrJavaScript #findNodeForInterval:,
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   355
     seams like a Tools::CodeView2 which implements #language was expected,
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   356
     but also this class CodeView has been the receiver"
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   357
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   358
    ^ nil
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   359
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   360
    "Created: / 13-08-2019 / 10:33:59 / Stefan Reise"
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   361
! !
4aac73d9fe64 #BUGFIX by Stefan Reise
sr
parents: 6617
diff changeset
   362
206
2363a64a7c88 version at the end
Claus Gittinger <cg@exept.de>
parents: 201
diff changeset
   363
!CodeView class methodsFor:'documentation'!
2363a64a7c88 version at the end
Claus Gittinger <cg@exept.de>
parents: 201
diff changeset
   364
2363a64a7c88 version at the end
Claus Gittinger <cg@exept.de>
parents: 201
diff changeset
   365
version
5530
6e888d60be5a #FEATURE
Claus Gittinger <cg@exept.de>
parents: 4866
diff changeset
   366
    ^ '$Header$'
206
2363a64a7c88 version at the end
Claus Gittinger <cg@exept.de>
parents: 201
diff changeset
   367
! !
4586
0678021a7151 code move
Claus Gittinger <cg@exept.de>
parents: 4276
diff changeset
   368