WorkspaceApplication.st
author Stefan Vogel <sv@exept.de>
Fri, 06 Feb 2004 18:56:34 +0100
changeset 5490 722da73f31ed
parent 5358 b122ec142dba
child 5547 65af7af97085
permissions -rw-r--r--
Handle file open errors
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5140
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     1
"
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     2
 COPYRIGHT (c) 2001 by eXept Software AG
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     3
              All Rights Reserved
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     4
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     5
 This software is furnished under a license and may be used
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     6
 only in accordance with the terms of that license and with the
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     8
 be provided or otherwise made available to, or used by, any
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
     9
 other person.  No title to or ownership of the software is
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    10
 hereby transferred.
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    11
"
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    12
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"{ Package: 'stx:libtool' }"
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
5303
fe0d2165b716 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5295
diff changeset
    15
MultiViewToolApplication subclass:#WorkspaceApplication
5295
e3c5a7b20d9d refactored (added abstract superclass)
Claus Gittinger <cg@exept.de>
parents: 5262
diff changeset
    16
	instanceVariableNames:'autoDefineWorkspaceVariables autoDefineVariables'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
    17
	classVariableNames:'LastFilterBlockString LastProcessingBlockString'
3222
b95c86b3b511 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3214
diff changeset
    18
	poolDictionaries:''
b95c86b3b511 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3214
diff changeset
    19
	category:'Interface-Smalltalk'
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
3191
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    22
!WorkspaceApplication class methodsFor:'documentation'!
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    23
5140
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    24
copyright
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    25
"
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    26
 COPYRIGHT (c) 2001 by eXept Software AG
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    27
              All Rights Reserved
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    28
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    29
 This software is furnished under a license and may be used
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    30
 only in accordance with the terms of that license and with the
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    32
 be provided or otherwise made available to, or used by, any
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    33
 other person.  No title to or ownership of the software is
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    34
 hereby transferred.
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    35
"
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    36
!
36c7da05d814 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5098
diff changeset
    37
3191
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    38
documentation
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    39
"
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    40
    A simple wrapper around a WorkSpace-View, adding a pullDown menu.
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    41
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    42
    [author:]
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    43
        Claus Gittinger
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    44
"
52879128b8a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
    45
! !
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
!WorkspaceApplication class methodsFor:'interface specs'!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
windowSpec
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    "This resource specification was automatically generated
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
     by the UIPainter of ST/X."
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    "Do not manually edit this!! If it is corrupted,
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
     the UIPainter may not be able to read the specification."
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    "
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
     UIPainter new openOnClass:WorkspaceApplication andSelector:#windowSpec
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
     WorkspaceApplication new openInterface:#windowSpec
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
     WorkspaceApplication open
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    "
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    <resource: #canvas>
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    ^ 
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
     #(#FullSpec
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
        #name: #windowSpec
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
        #window: 
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
       #(#WindowSpec
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
          #label: 'Workspace'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
          #name: 'Workspace'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
          #min: #(#Point 10 10)
3845
b4baee71ee18 no max size
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    72
          #bounds: #(#Rectangle 13 23 445 264)
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
          #menu: #mainMenu
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
        )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
        #component: 
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
       #(#SpecCollection
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
          #collection: #(
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    78
           #(#NoteBookViewSpec
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    79
              #name: 'NoteBook1'
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    80
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    81
              #model: #selectedWorkspaceIndexHolder
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    82
              #menu: #tabList
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    83
              #useIndex: true
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    84
              #accessTabMenuAction: #tabMenuAt:
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    85
              #canvas: #workspaceHolder
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    86
              #canvasInset: 0
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    87
              #canvasFrameLevel: 0
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    88
              #keepCanvasAlive: true
4369
9b496f6aa2a1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4359
diff changeset
    89
              #tabLevel: 1
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
    90
            )
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
           )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
         
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
        )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
      )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
! !
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
!WorkspaceApplication class methodsFor:'menu specs'!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
mainMenu
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    "This resource specification was automatically generated
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
     by the MenuEditor of ST/X."
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
    "Do not manually edit this!! If it is corrupted,
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
     the MenuEditor may not be able to read the specification."
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    "
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
     MenuEditor new openOnClass:WorkspaceApplication andSelector:#mainMenu
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
     (Menu new fromLiteralArrayEncoding:(WorkspaceApplication mainMenu)) startUp
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
    "
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    <resource: #menu>
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
    ^ 
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
     #(#Menu
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
        #(
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
         #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
            #label: 'File'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
            #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
            #submenu: 
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
           #(#Menu
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
              #(
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
               #(#MenuItem
3651
65c74ea6803b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3648
diff changeset
   123
                  #label: 'New Workspace'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   124
                  #itemValue: #newWorkspace
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
                  #translateLabel: true
3651
65c74ea6803b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3648
diff changeset
   126
                )
65c74ea6803b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3648
diff changeset
   127
               #(#MenuItem
65c74ea6803b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3648
diff changeset
   128
                  #label: 'New SystemWorkspace'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   129
                  #itemValue: #newSystemWorkspace
3651
65c74ea6803b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3648
diff changeset
   130
                  #translateLabel: true
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
                  #label: '-'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
                  #label: 'Load File...'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   137
                  #itemValue: #menuLoad
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
                  #label: '-'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
                  #label: 'Save As...'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   145
                  #itemValue: #menuSaveAs
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
               #(#MenuItem
4474
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   149
                  #enabled: #hasMultipleBuffersHolder
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   150
                  #label: 'Save all As...'
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   151
                  #itemValue: #menuSaveAllAs
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   152
                  #translateLabel: true
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   153
                )
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   154
               #(#MenuItem
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
                  #label: '-'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
                  #label: 'Exit'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   159
                  #itemValue: #closeRequest
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
               )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
              nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
              nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
            )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
          )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
         #(#MenuItem
3736
687a0a8de66c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3722
diff changeset
   168
            #label: 'Buffers'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   169
            #nameKey: #Buffer
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   170
            #translateLabel: true
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   171
            #submenu: 
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   172
           #(#Menu
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   173
              #(
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   174
               #(#MenuItem
3222
b95c86b3b511 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3214
diff changeset
   175
                  #label: 'Add Buffer'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   176
                  #itemValue: #addWorkspace
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   177
                  #translateLabel: true
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   178
                )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   179
               #(#MenuItem
4098
aadc513a6f37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4096
diff changeset
   180
                  #enabled: #anyWorkspaceVariableIsDefined
aadc513a6f37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4096
diff changeset
   181
                  #label: 'Add Buffer on Workspace Variables'
aadc513a6f37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4096
diff changeset
   182
                  #itemValue: #addWorkspaceVariableInspector
aadc513a6f37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4096
diff changeset
   183
                  #translateLabel: true
aadc513a6f37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4096
diff changeset
   184
                )
aadc513a6f37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4096
diff changeset
   185
               #(#MenuItem
4099
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   186
                  #label: 'Add Buffer on Global Variables'
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   187
                  #itemValue: #addGlobalVariableInspector
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   188
                  #translateLabel: true
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   189
                )
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   190
               #(#MenuItem
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   191
                  #label: 'Rename...'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   192
                  #itemValue: #renameWorkspace
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   193
                  #translateLabel: true
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   194
                )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   195
               #(#MenuItem
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   196
                  #label: '-'
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   197
                )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   198
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   199
                  #enabled: #canRemoveWorkspace
3222
b95c86b3b511 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3214
diff changeset
   200
                  #label: 'Remove Buffer'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   201
                  #itemValue: #removeWorkspace
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   202
                  #translateLabel: true
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   203
                )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   204
               )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   205
              nil
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   206
              nil
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   207
            )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   208
          )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   209
         #(#MenuItem
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
            #label: 'Edit'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
            #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
            #submenu: 
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
           #(#Menu
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
              #(
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   216
                  #enabled: #hasSelectionInActiveWorkspace
4591
083328c16498 editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents: 4542
diff changeset
   217
                  #label: 'Cut'
083328c16498 editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents: 4542
diff changeset
   218
                  #itemValue: #cutSelection
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   222
                  #enabled: #hasSelectionInActiveWorkspace
4591
083328c16498 editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents: 4542
diff changeset
   223
                  #label: 'Copy'
083328c16498 editMenu: order is cut-copy-paste (as in windows)
Claus Gittinger <cg@exept.de>
parents: 4542
diff changeset
   224
                  #itemValue: #copySelection
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
                  #label: 'Paste'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   229
                  #itemValue: #paste
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
                )
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   232
               #(#MenuItem
4790
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   233
                  #enabled: #hasHistory
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   234
                  #label: 'Paste Last'
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   235
                  #itemValue: #pasteLastDoIt
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   236
                  #translateLabel: true
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   237
                  #submenuChannel: #pasteRecentDoItMenu
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   238
                )
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   239
               #(#MenuItem
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   240
                  #label: '-'
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   241
                )
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   242
               #(#MenuItem
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   243
                  #label: 'Select All'
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   244
                  #itemValue: #selectAll
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   245
                  #translateLabel: true
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   246
                )
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   247
               #(#MenuItem
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   248
                  #label: '-'
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   249
                )
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   250
               #(#MenuItem
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   251
                  #label: 'Filter Text...'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   252
                  #itemValue: #filterText
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   253
                  #translateLabel: true
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   254
                )
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   255
               #(#MenuItem
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   256
                  #label: 'Process Text...'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   257
                  #itemValue: #processText
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   258
                  #translateLabel: true
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   259
                )
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   260
               #(#MenuItem
5261
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   261
                  #label: '-'
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   262
                )
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   263
               #(#MenuItem
4829
1ba6f569e4dd menu label
Claus Gittinger <cg@exept.de>
parents: 4790
diff changeset
   264
                  #label: 'Web Services'
4480
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   265
                  #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   266
                  #submenu: 
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   267
                 #(#Menu
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   268
                    #(
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   269
                     #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   270
                        #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   271
                        #label: 'Google Spell'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   272
                        #itemValue: #googleSpellingSuggestion
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   273
                        #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   274
                      )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   275
                     #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   276
                        #label: 'Translate'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   277
                        #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   278
                        #submenu: 
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   279
                       #(#Menu
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   280
                          #(
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   281
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   282
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   283
                              #label: 'English -> German'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   284
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   285
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   286
                              #argument: 'en_de'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   287
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   288
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   289
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   290
                              #label: 'English -> French'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   291
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   292
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   293
                              #argument: 'en_fr'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   294
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   295
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   296
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   297
                              #label: 'English -> Spanish'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   298
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   299
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   300
                              #argument: 'en_es'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   301
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   302
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   303
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   304
                              #label: 'English -> Portuguese'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   305
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   306
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   307
                              #argument: 'en_pt'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   308
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   309
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   310
                              #label: '-'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   311
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   312
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   313
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   314
                              #label: 'German -> English'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   315
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   316
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   317
                              #argument: 'de_en'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   318
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   319
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   320
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   321
                              #label: 'French -> English'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   322
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   323
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   324
                              #argument: 'fr_en'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   325
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   326
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   327
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   328
                              #label: 'Spanish -> English'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   329
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   330
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   331
                              #argument: 'es_en'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   332
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   333
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   334
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   335
                              #label: 'Portuguese -> English'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   336
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   337
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   338
                              #argument: 'pt_en'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   339
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   340
                           #(#MenuItem
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   341
                              #enabled: #hasSelectionInActiveWorkspace
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   342
                              #label: 'Russian -> English'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   343
                              #itemValue: #babelFishTranslate:
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   344
                              #translateLabel: true
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   345
                              #argument: 'ru_en'
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   346
                            )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   347
                           )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   348
                          nil
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   349
                          nil
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   350
                        )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   351
                      )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   352
                     )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   353
                    nil
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   354
                    nil
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   355
                  )
defa79bbdaaa translation service
Claus Gittinger <cg@exept.de>
parents: 4474
diff changeset
   356
                )
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
               )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
              nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
              nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
            )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
          )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
         #(#MenuItem
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   363
            #label: 'Workspace'
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   364
            #translateLabel: true
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   365
            #submenu: 
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   366
           #(#Menu
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   367
              #(
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   368
               #(#MenuItem
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   369
                  #label: 'Add Workspace Variable...'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   370
                  #itemValue: #addWorkspaceVariable
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   371
                  #translateLabel: true
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   372
                )
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   373
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   374
                  #enabled: #anyWorkspaceVariableIsDefined
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   375
                  #label: 'Remove Workspace Variable...'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   376
                  #itemValue: #removeWorkspaceVariable
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   377
                  #translateLabel: true
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   378
                )
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   379
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   380
                  #enabled: #anyWorkspaceVariableIsDefined
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   381
                  #label: 'Remove all Workspace Variables...'
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   382
                  #itemValue: #removeAllWorkspaceVariables
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   383
                  #translateLabel: true
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   384
                )
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   385
               #(#MenuItem
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   386
                  #label: '-'
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   387
                )
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   388
               #(#MenuItem
3812
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   389
                  #enabled: #anyWorkspaceVariableIsDefined
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   390
                  #label: 'Inspect Workspace Variables'
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   391
                  #itemValue: #inspectWorkspaceVariables
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   392
                  #translateLabel: true
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   393
                )
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   394
               #(#MenuItem
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   395
                  #label: '-'
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   396
                )
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   397
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   398
                  #label: 'Settings'
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   399
                  #translateLabel: true
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   400
                  #submenu: 
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   401
                 #(#Menu
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   402
                    #(
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   403
                     #(#MenuItem
4474
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   404
                        #label: 'Autodefine as Workspace Variable'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   405
                        #translateLabel: true
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   406
                        #hideMenuOnActivated: false
4474
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   407
                        #choice: #autoDefineVariables
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   408
                        #choiceValue: #workspace
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   409
                      )
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   410
                     #(#MenuItem
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   411
                        #label: 'Autodefine as DoIt Variable'
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   412
                        #translateLabel: true
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   413
                        #hideMenuOnActivated: false
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   414
                        #choice: #autoDefineVariables
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   415
                        #choiceValue: #doIt
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   416
                      )
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   417
                     #(#MenuItem
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   418
                        #label: 'Autodefine off'
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   419
                        #translateLabel: true
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   420
                        #hideMenuOnActivated: false
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   421
                        #choice: #autoDefineVariables
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   422
                      )
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   423
                     )
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   424
                    nil
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   425
                    nil
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   426
                  )
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   427
                )
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   428
               )
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   429
              nil
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   430
              nil
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   431
            )
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   432
          )
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   433
         #(#MenuItem
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
            #label: 'Smalltalk'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
            #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
            #submenu: 
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
           #(#Menu
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
              #(
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   440
                  #enabled: #hasSelectionInActiveWorkspace
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
                  #label: 'DoIt'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   442
                  #itemValue: #doIt
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   446
                  #enabled: #hasSelectionInActiveWorkspace
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
                  #label: 'PrintIt'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   448
                  #itemValue: #printIt
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   452
                  #enabled: #hasSelectionInActiveWorkspace
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
                  #label: 'InspectIt'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   454
                  #itemValue: #inspectIt
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
                  #label: '-'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
               #(#MenuItem
4790
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   461
                  #enabled: #hasHistory
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   462
                  #label: 'Redo Last'
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   463
                  #itemValue: #redoLastDoIt
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   464
                  #translateLabel: true
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   465
                  #submenuChannel: #redoRecentDoItMenu
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   466
                )
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   467
               #(#MenuItem
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   468
                  #label: '-'
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   469
                )
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
   470
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   471
                  #enabled: #hasSelectionInActiveWorkspace
3384
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   472
                  #label: 'TimeIt'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   473
                  #itemValue: #timeIt
3384
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   474
                  #translateLabel: true
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   475
                )
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   476
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   477
                  #enabled: #hasSelectionInActiveWorkspace
3384
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   478
                  #label: 'SpyOnIt'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   479
                  #itemValue: #spyOnIt
3384
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   480
                  #translateLabel: true
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   481
                )
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   482
               #(#MenuItem
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   483
                  #label: '-'
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   484
                )
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
   485
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   486
                  #enabled: #hasSelectionInActiveWorkspace
3383
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   487
                  #label: 'Browse Class'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   488
                  #itemValue: #browseIt
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
                )
3383
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   491
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   492
                  #enabled: #hasSelectionInActiveWorkspace
3710
Claus Gittinger <cg@exept.de>
parents: 3667
diff changeset
   493
                  #label: 'Browse Implementors of It'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   494
                  #itemValue: #browseImplementorsOfIt
3383
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   495
                  #translateLabel: true
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   496
                )
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   497
               #(#MenuItem
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   498
                  #enabled: #hasSelectionInActiveWorkspace
3710
Claus Gittinger <cg@exept.de>
parents: 3667
diff changeset
   499
                  #label: 'Browse References to It'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   500
                  #itemValue: #browseReferencesToIt
3383
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   501
                  #translateLabel: true
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   502
                )
4154
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   503
               #(#MenuItem
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   504
                  #label: '-'
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   505
                )
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   506
               #(#MenuItem
5262
99d5c5f7e4b8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5261
diff changeset
   507
                  #label: 'FileIn Text'
5261
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   508
                  #itemValue: #fileInText
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   509
                  #translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   510
                )
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   511
               #(#MenuItem
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   512
                  #label: '-'
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   513
                )
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
   514
               #(#MenuItem
4154
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   515
                  #label: 'Add Global Variable...'
4284
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
   516
                  #itemValue: #addGlobalVariable
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
   517
                  #translateLabel: true
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
   518
                )
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
   519
               #(#MenuItem
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
   520
                  #label: 'Remove Global Variable...'
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
   521
                  #itemValue: #removeGlobalVariable
4154
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   522
                  #translateLabel: true
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   523
                )
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
               )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
              nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
              nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
            )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
          )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
         #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
            #label: 'Help'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
            #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
            #startGroup: #right
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
            #submenu: 
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
           #(#Menu
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
              #(
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
                  #label: 'Documentation'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   538
                  #itemValue: #openDocumentation
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
               #(#MenuItem
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
                  #label: '-'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
               #(#MenuItem
3282
c871f7928ff2 menu label
Claus Gittinger <cg@exept.de>
parents: 3236
diff changeset
   545
                  #label: 'About this Application...'
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   546
                  #itemValue: #openAboutThisApplication
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
                  #translateLabel: true
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
                )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
               )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
              nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
              nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
            )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
          )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
         )
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
        nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
        nil
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
      )
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   558
!
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   559
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   560
tabMenu
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   561
    "This resource specification was automatically generated
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   562
     by the MenuEditor of ST/X."
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   563
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   564
    "Do not manually edit this!! If it is corrupted,
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   565
     the MenuEditor may not be able to read the specification."
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   566
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   567
    "
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   568
     MenuEditor new openOnClass:WorkspaceApplication andSelector:#tabMenu
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   569
     (Menu new fromLiteralArrayEncoding:(WorkspaceApplication tabMenu)) startUp
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   570
    "
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   571
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   572
    <resource: #menu>
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   573
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   574
    ^ 
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   575
     #(#Menu
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   576
        #(
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   577
         #(#MenuItem
3222
b95c86b3b511 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3214
diff changeset
   578
            #label: 'Add Buffer'
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   579
            #translateLabel: true
3651
65c74ea6803b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3648
diff changeset
   580
            "/ #triggerOnDown: true
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   581
            #value: #addWorkspace
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   582
          )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   583
         #(#MenuItem
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   584
            #label: 'Rename...'
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   585
            #translateLabel: true
3651
65c74ea6803b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3648
diff changeset
   586
            "/ #triggerOnDown: true
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   587
            #value: #renameWorkspace:
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   588
          )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   589
         #(#MenuItem
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   590
            #label: '-'
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   591
          )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   592
         #(#MenuItem
3222
b95c86b3b511 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3214
diff changeset
   593
            #label: 'Remove Buffer'
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   594
            #translateLabel: true
3651
65c74ea6803b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3648
diff changeset
   595
            "/ #triggerOnDown: true
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   596
            #value: #removeWorkspace:
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   597
            #enabled: #canRemoveWorkspace:
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   598
          )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   599
         )
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   600
        nil
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   601
        nil
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   602
      )
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
! !
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   605
!WorkspaceApplication class methodsFor:'special startup'!
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   606
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   607
openSystemWorkspace
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   608
    |wsApp path needRemove|
3345
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   609
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   610
    needRemove := true.
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   611
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   612
    wsApp := self new.
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   613
    wsApp allButOpen.
3337
46dd799d3446 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3336
diff changeset
   614
    wsApp window extent:640@400.
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   615
3345
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   616
    path := (Smalltalk getSystemFileName:'README') ?  '../../README'.
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   617
    path := path asFilename.
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   618
    path isReadable ifTrue:[
3345
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   619
        wsApp addWindow:(HVScrollableView for:Workspace) named:'README' asFirst:false.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   620
        wsApp loadFile:path.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   621
        wsApp removeWorkspace:1.  "/ the original Workspace
4183
029eae063c6e another info view
Claus Gittinger <cg@exept.de>
parents: 4154
diff changeset
   622
        wsApp renameWorkspace:1 to:'LICENCE README'.
3345
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   623
        needRemove := false.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   624
    ].
3334
3c6e88d38b59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   625
3346
Claus Gittinger <cg@exept.de>
parents: 3345
diff changeset
   626
"/    path := (Smalltalk getSystemFileName:'doc/online/english/LICENCE_STX.html') ?  '../../doc/online/english/LICENCE_STX.html'.
Claus Gittinger <cg@exept.de>
parents: 3345
diff changeset
   627
"/    path asFilename exists ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3345
diff changeset
   628
"/        wsApp addWindow:(licenceView := HVScrollableView for:HTMLDocumentView) named:'License' asFirst:false.
Claus Gittinger <cg@exept.de>
parents: 3345
diff changeset
   629
"/        licenceView homeDocument:'../../doc/online/english/LICENCE_STX.html'.
Claus Gittinger <cg@exept.de>
parents: 3345
diff changeset
   630
"/        licenceView updateLabelFlag:false.
Claus Gittinger <cg@exept.de>
parents: 3345
diff changeset
   631
"/        needRemove ifTrue:[wsApp removeWorkspace:1].  "/ the original Workspace
Claus Gittinger <cg@exept.de>
parents: 3345
diff changeset
   632
"/        needRemove := false.
Claus Gittinger <cg@exept.de>
parents: 3345
diff changeset
   633
"/    ].
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   634
4985
8d39e69b91c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4829
diff changeset
   635
    path := (Smalltalk getSystemFileName:'GettingStarted.wsp').
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   636
    (path notNil and:[path asFilename isReadable]) ifTrue:[
4985
8d39e69b91c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4829
diff changeset
   637
        wsApp addWindow:(HVScrollableView for:Workspace) named:'Getting Started' asFirst:false.
8d39e69b91c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4829
diff changeset
   638
        wsApp loadFile:path.
8d39e69b91c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4829
diff changeset
   639
        needRemove ifTrue:[wsApp removeWorkspace:1].  "/ the original Workspace
8d39e69b91c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4829
diff changeset
   640
        needRemove := false.
8d39e69b91c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4829
diff changeset
   641
    ].
8d39e69b91c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4829
diff changeset
   642
3347
ee907655178a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3346
diff changeset
   643
    path := (Smalltalk getSystemFileName:'Keyboard.wsp').
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   644
    (path notNil and:[path asFilename isReadable]) ifTrue:[
3345
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   645
        wsApp addWindow:(HVScrollableView for:Workspace) named:'Keyboard' asFirst:false.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   646
        wsApp loadFile:path.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   647
        needRemove ifTrue:[wsApp removeWorkspace:1].  "/ the original Workspace
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   648
        needRemove := false.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   649
    ].
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   650
4183
029eae063c6e another info view
Claus Gittinger <cg@exept.de>
parents: 4154
diff changeset
   651
    path := (Smalltalk getSystemFileName:'Setup.wsp').
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   652
    (path notNil and:[path asFilename isReadable]) ifTrue:[
4183
029eae063c6e another info view
Claus Gittinger <cg@exept.de>
parents: 4154
diff changeset
   653
        wsApp addWindow:(HVScrollableView for:Workspace) named:'Setup' asFirst:false.
029eae063c6e another info view
Claus Gittinger <cg@exept.de>
parents: 4154
diff changeset
   654
        wsApp loadFile:path.
029eae063c6e another info view
Claus Gittinger <cg@exept.de>
parents: 4154
diff changeset
   655
        needRemove ifTrue:[wsApp removeWorkspace:1].  "/ the original Workspace
029eae063c6e another info view
Claus Gittinger <cg@exept.de>
parents: 4154
diff changeset
   656
        needRemove := false.
029eae063c6e another info view
Claus Gittinger <cg@exept.de>
parents: 4154
diff changeset
   657
    ].
029eae063c6e another info view
Claus Gittinger <cg@exept.de>
parents: 4154
diff changeset
   658
3347
ee907655178a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3346
diff changeset
   659
    path := (Smalltalk getSystemFileName:'Hello.wsp').
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   660
    (path notNil and:[path asFilename isReadable]) ifTrue:[
3345
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   661
        wsApp addWindow:(HVScrollableView for:Workspace) named:'Welcome' asFirst:false.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   662
        wsApp loadFile:path.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   663
        needRemove ifTrue:[wsApp removeWorkspace:1].  "/ the original Workspace
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   664
        needRemove := false.
7ddc24baa0b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3337
diff changeset
   665
    ].
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   666
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   667
    wsApp openWindow
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   668
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   669
    "
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   670
     self openSystemWorkspace
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   671
    "
4542
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   672
!
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   673
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   674
openWith:initialText
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   675
    "launch a new workspace with some initial contents"
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   676
5098
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   677
    ^ self openWith:initialText selected:false
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   678
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   679
    "
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   680
     WorkspaceApplication openWith:'Transcript showCR:''hello world'''
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   681
    "
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   682
!
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   683
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   684
openWith:initialText selected:selectedBoolean
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   685
    "launch a new workspace with some initial contents"
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   686
4542
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   687
    |workspace|
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   688
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   689
    workspace := self new.
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   690
    workspace open.
5098
663519a20afd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4985
diff changeset
   691
    workspace selectedWorkspace contents:initialText selected:selectedBoolean.
4542
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   692
    ^ workspace
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   693
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   694
    "
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   695
     WorkspaceApplication openWith:'Transcript showCR:''hello world'''
1881967c7262 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4509
diff changeset
   696
    "
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   697
! !
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   698
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   699
!WorkspaceApplication methodsFor:'aspects'!
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   700
4474
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   701
autoDefineVariables
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   702
    autoDefineVariables isNil ifTrue:[
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   703
        autoDefineVariables := ValueHolder new.
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   704
        (UserPreferences current autoDefineWorkspaceVariables) ifTrue:[
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   705
            autoDefineVariables value:#workspace
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   706
        ].
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   707
        autoDefineVariables onChangeSend:#autoDefineVariablesChanged to:self.
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   708
    ].
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   709
    ^ autoDefineVariables.
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   710
!
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   711
3667
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   712
autoDefineWorkspaceVariables
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   713
    "does not work yet - needs more interaction with parser"
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   714
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   715
    autoDefineWorkspaceVariables isNil ifTrue:[
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   716
        autoDefineWorkspaceVariables := UserPreferences current autoDefineWorkspaceVariables asValue.
3667
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   717
        autoDefineWorkspaceVariables onChangeSend:#autoDefineWorkspaceVariablesChanged to:self.
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   718
    ].
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   719
    ^ autoDefineWorkspaceVariables.
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   720
!
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   721
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   722
hasHistory
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   723
    ^ Workspace doItHistory size > 0.
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   724
! !
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   725
4358
b0023a5ca3b8 category change
Claus Gittinger <cg@exept.de>
parents: 4313
diff changeset
   726
!WorkspaceApplication methodsFor:'aspects-queries'!
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   727
3812
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   728
anyWorkspaceVariableIsDefined
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   729
    ^ Workspace workspaceVariables size > 0
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
! !
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
!WorkspaceApplication methodsFor:'initialization & release'!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
closeRequest
4031
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
   735
    (self askIfAnyModified:'Text was not saved. Close anyway ?' yesButton:'Close') ifFalse:[
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   736
        ^ self
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   737
    ].
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   738
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
    ^ super closeRequest
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
! !
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
4359
35995cc972f7 category change
Claus Gittinger <cg@exept.de>
parents: 4358
diff changeset
   742
!WorkspaceApplication methodsFor:'menu-actions'!
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
4154
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   744
addGlobalVariable
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   745
    |name nameKey selection|
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   746
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   747
    selection := self selectedWorkspacesTextView selection ? ''.
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   748
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   749
    name := Dialog 
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   750
                request:'Name of new Global Variable:'
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   751
                initialAnswer:(selection asString string)
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   752
                okLabel:'Add'
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   753
                title:'Enter Variable Name'.
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   754
    name size == 0 ifTrue:[
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   755
        ^ self
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   756
    ].
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   757
    nameKey := name asSymbol.
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   758
4284
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
   759
    (Smalltalk includesKey:nameKey) ifTrue:[
4154
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   760
        self warn:'Global named ''' , name , ''' already exists.'.
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   761
        ^ self.
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   762
    ].
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   763
    Smalltalk at:nameKey put:nil.
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   764
!
d243b609e104 +addGlobal in menu
Claus Gittinger <cg@exept.de>
parents: 4141
diff changeset
   765
4099
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   766
addGlobalVariableInspector
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   767
    |v|
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   768
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   769
    v := self addInspectorOn:(Smalltalk) basic:false suppressPseudoSlots:true.
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   770
    v fieldListLabel:'Name'.
4208
84260a3d6e20 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4183
diff changeset
   771
    self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Globals (Smalltalk)'.
4099
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   772
!
a7967641f3d7 global variables
Claus Gittinger <cg@exept.de>
parents: 4098
diff changeset
   773
4096
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   774
addInspectorOn:aValue basic:isBasicInspector suppressPseudoSlots:suppressPseudoSlots
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   775
    |view cls resultString|
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   776
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   777
    isBasicInspector ifFalse:[
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   778
        cls := aValue inspectorClass.
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   779
    ].
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   780
    cls isNil ifTrue:[
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   781
        cls := InspectorView
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   782
    ].
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   783
    view := cls new.
4096
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   784
    view suppressPseudoSlots:suppressPseudoSlots.
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   785
    view inspect:aValue.
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   786
    "/ v allowFollow:true.
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   787
    aValue isBehavior ifTrue:[
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   788
        resultString := aValue name
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   789
    ] ifFalse:[
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   790
        resultString := aValue classNameWithArticle
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   791
    ].
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   792
    self addWindow:view named:('Inspecting: ' , resultString).
4096
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   793
    ^ view
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   794
!
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   795
3196
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   796
addWorkspace
5295
e3c5a7b20d9d refactored (added abstract superclass)
Claus Gittinger <cg@exept.de>
parents: 5262
diff changeset
   797
    self addWindow:(self createWorkspace) named:'Workspace%1'
3196
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   798
!
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   799
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   800
addWorkspaceVariable
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   801
    |name selection|
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   802
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   803
    selection := self selectedWorkspacesTextView selection ? ''.
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   804
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   805
    name := Dialog 
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   806
                request:'Name of new Workspace Variable:'
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   807
                initialAnswer:(selection asString string)
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   808
                okLabel:'Add'
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   809
                title:'Enter Variable Name'.
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   810
    name size == 0 ifTrue:[
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   811
        ^ self
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   812
    ].
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   813
    Workspace addWorkspaceVariable:name.
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   814
!
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
   815
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   816
addWorkspaceVariableInspector
4096
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   817
    |v|
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   818
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   819
    v := self addInspectorOn:(Workspace workspaceVariables) basic:false suppressPseudoSlots:true.
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   820
    v dereferenceValueHolders:true.
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   821
    v fieldListLabel:'Name'.
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   822
    self renameWorkspace:(self selectedWorkspaceIndexHolder value) to:'Variables'.
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   823
!
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   824
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   825
askForFilterBlock:message template:template rememberIn:nameOfClassVar
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   826
    |filterBlockString filterBlock dialog textHolder classVarValue|
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   827
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   828
    classVarValue := self class classVarAt:nameOfClassVar ifAbsent:nil.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   829
    classVarValue isNil ifTrue:[
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   830
        self class classVarAt:nameOfClassVar put:template. 
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   831
        classVarValue := template.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   832
    ].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   833
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   834
    textHolder := ValueHolder new.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   835
    dialog := Dialog 
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   836
                 forRequestText:(resources string:message)
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   837
                 lines:25 
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   838
                 columns:70
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   839
                 initialAnswer:classVarValue
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   840
                 model:textHolder.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   841
    dialog addButton:(Button label:'Template' action:[textHolder value:template. textHolder changed:#value.]).
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   842
    dialog open.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   843
    dialog accepted ifFalse:[^ nil].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   844
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   845
    filterBlockString := textHolder value.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   846
    self class classVarAt:nameOfClassVar put:filterBlockString. 
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   847
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   848
    filterBlock := Parser evaluate:filterBlockString.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   849
    filterBlock isBlock ifFalse:[
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   850
        self error:'bad input for filterBlock' mayProceed:true.
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   851
        ^ nil
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   852
    ].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   853
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   854
    ^ filterBlock
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   855
!
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   856
4474
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   857
autoDefineVariablesChanged
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   858
    |autoDefine|
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   859
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   860
    autoDefine := autoDefineVariables value.
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   861
    UserPreferences current autoDefineWorkspaceVariables:(autoDefine == #workspace).
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   862
    workspaces do:[:each |
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   863
        each autoDefineVariables:autoDefine
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   864
    ].
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   865
!
92facdb5ecc4 autoDefine as doIt added
Claus Gittinger <cg@exept.de>
parents: 4369
diff changeset
   866
3667
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   867
autoDefineWorkspaceVariablesChanged
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   868
    "does not work yet - needs more interaction with parser"
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   869
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   870
    |doAutoDefine|
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   871
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   872
    doAutoDefine := autoDefineWorkspaceVariables value.
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   873
    UserPreferences current autoDefineWorkspaceVariables:doAutoDefine.
3667
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   874
    workspaces do:[:each |
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   875
        each autoDefineWorkspaceVariables:doAutoDefine
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   876
    ].
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   877
!
12a7d71a6d3e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3651
diff changeset
   878
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   879
basicInspectIt
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   880
    self inspectIt:true
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   881
!
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   882
3383
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   883
browseImplementorsOfIt
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   884
    self selectedWorkspacesTextView browseImplementorsOfIt
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   885
!
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   886
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   887
browseIt
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   888
    self selectedWorkspacesTextView browseIt
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
3383
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   891
browseReferencesToIt
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   892
    self selectedWorkspacesTextView browseReferencesToIt
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   893
!
fb3b6909bd1a + browseReferencesToIt & browserImplementorsOfIt
Claus Gittinger <cg@exept.de>
parents: 3347
diff changeset
   894
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   895
clearHistory
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   896
    Workspace clearDoItHistory
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   897
!
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   898
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
doIt
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   900
    self selectedWorkspacesTextView doIt
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   903
inspectIt
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   904
    self inspectIt:false
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   905
!
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   906
4086
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   907
inspectIt:isBasicInspector
9f685ed7ad3f autodefine workspace variables
Claus Gittinger <cg@exept.de>
parents: 4031
diff changeset
   908
    |ws|
3196
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   909
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   910
    ws := self selectedWorkspacesTextView.
3196
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   911
    ws
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   912
        do:(ws selection) 
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   913
        withValueDo:[:result | 
4096
1c393b3edbcd Workspace-Variable inspector
Claus Gittinger <cg@exept.de>
parents: 4086
diff changeset
   914
                        self addInspectorOn:result basic:isBasicInspector suppressPseudoSlots:false
3196
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   915
                    ]
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   916
86540e27b2e0 inspecting
Claus Gittinger <cg@exept.de>
parents: 3195
diff changeset
   917
"/    self selectedWorkspace inspectIt
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   918
!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
3812
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   920
inspectWorkspaceVariables
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   921
    |wsvars|
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   922
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   923
    wsvars := Workspace workspaceVariables.
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   924
    wsvars size == 0 ifTrue:[
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   925
        Dialog information:'No Workspace Variables are defined'.
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   926
        ^ self
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   927
    ].
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   928
    wsvars inspect
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   929
!
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
   930
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   931
loadFile:aFileName 
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   932
    |file ws lbl|
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   933
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   934
    file := aFileName asFilename.
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   935
    ws := self selectedWorkspacesTextView.
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   936
    [
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   937
        ws contents:file contents.
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   938
    ] on:StreamError do:[:ex|
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   939
        Dialog warn:(resources string:'Cannot open %1: %2' with:file asString with:ex description).
5196
13f6e4eaac91 fix #loadFile: check if file exists
Michael Beyl <mb@exept.de>
parents: 5140
diff changeset
   940
        ^ self
13f6e4eaac91 fix #loadFile: check if file exists
Michael Beyl <mb@exept.de>
parents: 5140
diff changeset
   941
    ].
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   942
    ws modified:false.
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   943
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   944
    lbl := file withoutSuffix baseName.
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   945
    tabList size <= 1 ifTrue:[
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   946
        self window label:lbl.
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   947
    ] ifFalse:[
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   948
        tabList at:self selectedWorkspaceIndexHolder value put:lbl
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   949
    ]
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   950
!
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   951
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
menuLoad
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   953
    |file|
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   955
    (self askIfModified:'Text was modified. Load anyway ?' yesButton:'Load') ifFalse:[ ^ self].
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   956
4602
a961c37bd041 better save file dialog (use new dialog vs. use old dialog)
Claus Gittinger <cg@exept.de>
parents: 4591
diff changeset
   957
    file := Dialog requestFileName:'Load file' default:'file.wsp' pattern:'*.wsp'.
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
   958
    file size ~~ 0 ifTrue:[
3332
91e39add4561 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3282
diff changeset
   959
        self loadFile:file
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
    ]
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
3334
3c6e88d38b59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   963
newSystemWorkspace
3c6e88d38b59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   964
    self class openSystemWorkspace
3c6e88d38b59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   965
!
3c6e88d38b59 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 3332
diff changeset
   966
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
openDocumentation
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
    "opens the documentation file"
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
    self openHTMLDocument: 'tools/misc/TOP.html#WORKSPACE'
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   973
pasteAndExecute:aString
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
   974
    self paste:aString.
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   975
    self printIt
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   976
!
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
   977
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
printIt
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
   979
    self selectedWorkspacesTextView printIt
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   980
!
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
   981
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   982
processText
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   983
    |template filterBlock newList oldList answer nChanged changedLines flags|
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   984
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   985
    template :=
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   986
'"/ general text processor;
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   987
"/ the following block should evaluate to a new line, 
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   988
"/ given the original line as argument.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   989
"/ Beginner warning: Smalltalk know-how is useful here.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   990
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   991
[:line |
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   992
     "/ any processing on line.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   993
     "/ Notice, that line might be a Text object (i.e. non-string),
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   994
     "/ 
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   995
     "/ Useful operations on the line are:
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   996
     "/     - '' .... '' ,                      concatenation of any prefix/suffix
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   997
     "/     - leftPaddedTo:size                 padding
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   998
     "/     - rightPaddedTo:size                padding
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
   999
     "/     - copyTo:(size min:N)               
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1000
     "/     - asUppercase 
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1001
     "/     - asLowercase
4141
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1002
     "/     - withoutSeparators                 remove whiteSpace
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1003
     "/     - asCollectionOfWords               words
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1004
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1005
     "/ makes everything bold
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1006
     "/
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1007
     "/ line allBold
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1008
4141
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1009
     "/ first word only
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1010
     "/
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1011
     "/ line withoutSeparators asCollectionOfWords first
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1012
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1013
     "/ dummy filter (keeps all lines as-is)
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1014
     "/
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1015
     line
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1016
]
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1017
'.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1018
    filterBlock := self askForFilterBlock:'Processing block:'
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1019
                        template:template
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1020
                        rememberIn:#LastProcessingBlockString.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1021
    filterBlock isNil ifTrue:[^ self].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1022
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1023
    oldList := self selectedWorkspacesTextView list.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1024
    oldList := oldList collect:[:lineOrNil | lineOrNil ? ''].
4141
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1025
    newList := oldList collect:[:line | |newLine|
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1026
                newLine := line.
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1027
                Error handle:[:ex |
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1028
                ] do:[
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1029
                    newLine := filterBlock value:line
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1030
                ].
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1031
                newLine
31db488780da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4136
diff changeset
  1032
               ].
3752
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1033
    newList := newList collect:[:line | (line isString and:[line size == 0]) ifTrue:[nil] ifFalse:[line]].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1034
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1035
    flags := (1 to:oldList size) collect:[:i | (oldList at:i) ~= (newList at:i)].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1036
    flags := flags select:[:flag | flag].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1037
    nChanged := flags size.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1038
    nChanged == 0 ifTrue:[
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1039
        self information:'No lines were changed.'.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1040
        ^ self
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1041
    ].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1042
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1043
    answer := Dialog confirmWithCancel:(resources 
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1044
                        string:'%1 lines changed. Change text ?'
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1045
                        with:nChanged)
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1046
                labels:#( 'Cancel' 'No, Show Changed' 'Yes').
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1047
    answer isNil ifTrue:[^ self].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1048
    answer ifFalse:[
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1049
        changedLines := (1 to:oldList size) select:[:i | (oldList at:i) ~= (newList at:i)].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1050
        changedLines := changedLines collect:[:i | (newList at:i)].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1051
        TextBox openOn:(changedLines asStringCollection) title:'Changed lines'.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1052
        ^ self.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1053
    ].
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1054
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1055
    self selectedWorkspacesTextView list:newList.
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1056
!
79378c1f0faf filters and processors
Claus Gittinger <cg@exept.de>
parents: 3736
diff changeset
  1057
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1058
redoLastDoIt
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1059
    |s|
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1060
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1061
    s := self lastDoItsString.
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1062
    s notNil ifTrue:[
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1063
        self pasteAndExecute:s
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1064
    ]
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1065
!
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1066
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1067
removeAllWorkspaceVariables
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1068
    (Dialog confirm:'Do you really want to remove all Workspace Variables ?')
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1069
    ifTrue:[
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1070
        Workspace removeAllWorkspaceVariables
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1071
   ].
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1072
!
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1073
4284
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1074
removeGlobalVariable
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1075
    |name nameKey selection value|
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1076
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1077
    selection := self selectedWorkspacesTextView selection ? ''.
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1078
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1079
    name := Dialog 
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1080
                request:'Remove Global Variable:'
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1081
                initialAnswer:(selection asString string)
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1082
                okLabel:'Remove'
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1083
                title:'Remove Global'.
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1084
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1085
    name size == 0 ifTrue:[^ self].
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1086
    nameKey := name asSymbolIfInterned.
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1087
    nameKey isNil ifTrue:[^ self].
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1088
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1089
    (Smalltalk includesKey:nameKey) ifFalse:[
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1090
        self warn:('No such Global Binding: ''%1''.' bindWith:name).
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1091
        ^ self.
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1092
    ].
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1093
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1094
    value := Smalltalk at:nameKey.
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1095
    value notNil ifTrue:[
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1096
        (self confirm:('Global ''%1'' is currently bound to %2\\Remove Binding ?' bindWith:name with:value) withCRs)
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1097
        ifFalse:[
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1098
            ^ self.
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1099
        ].
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1100
    ].
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1101
    Smalltalk at:nameKey put:nil.
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1102
    Smalltalk removeKey:nameKey
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1103
!
1fd90359b703 addGlobal fixed;
Claus Gittinger <cg@exept.de>
parents: 4267
diff changeset
  1104
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1105
removeWorkspaceVariable
3812
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
  1106
    |name selection wsvars|
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
  1107
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
  1108
    wsvars := Workspace workspaceVariables.
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
  1109
    wsvars size == 0 ifTrue:[
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
  1110
        Dialog information:'No Workspace Variables are defined'.
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
  1111
        ^ self
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
  1112
    ].
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1113
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1114
    selection := self selectedWorkspacesTextView selection ? ''.
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1115
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1116
    name := Dialog 
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1117
                request:'Variable to remove:'
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1118
                initialAnswer:(selection asString string)
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1119
                okLabel:'Remove'
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1120
                title:'Enter Variable Name'
3812
fef8f2db9662 menu item enablement
Claus Gittinger <cg@exept.de>
parents: 3752
diff changeset
  1121
                list:(wsvars keys asOrderedCollection sort).      
3722
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1122
    name size == 0 ifTrue:[
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1123
        ^ self
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1124
    ].
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1125
    Workspace removeWorkspaceVariable:name.
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1126
!
0a1edec5d83b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3710
diff changeset
  1127
3384
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
  1128
spyOnIt
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
  1129
    self selectedWorkspacesTextView spyOnIt
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
  1130
!
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
  1131
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
  1132
timeIt
2be2f7e2a417 + timeIt & spyOnIt
Claus Gittinger <cg@exept.de>
parents: 3383
diff changeset
  1133
    self selectedWorkspacesTextView timeIt
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1134
! !
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1135
4790
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1136
!WorkspaceApplication methodsFor:'menu-actions-editing'!
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1137
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1138
babelFishTranslate:fromToModeString
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1139
    "translate the selected text and paste it after the selection"
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1140
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1141
    self selectedWorkspace babelFishTranslate:fromToModeString
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1142
!
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1143
5261
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1144
fileInText
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1145
    self selectedWorkspacesTextView contentsAsString readStream fileIn
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1146
!
Claus Gittinger <cg@exept.de>
parents: 5196
diff changeset
  1147
4790
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1148
filterText
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1149
    |template filterBlock newList oldList answer nDeleted deletedLines|
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1150
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1151
    template :=
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1152
'"/ general text filter;
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1153
"/ the following block should evaluate to true for all lines
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1154
"/ you want to keep - lines for which the block returns false will be removed.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1155
"/ Beginner warning: Smalltalk know-how is useful here.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1156
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1157
[:line |
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1158
     "/ any condition on line.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1159
     "/ Notice, that line might be a Text object (i.e. non-string),
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1160
     "/ so you may want to use line string.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1161
     "/ 
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1162
     "/ Useful queries on the line are:
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1163
     "/     - size                   the length of the line
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1164
     "/     - hasChangeOfEmphasis    any bold, italic etc.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1165
     "/     - startsWith:someString
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1166
     "/     - endsWith:someString
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1167
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1168
     "/ example filter (removes all empty lines)
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1169
     "/
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1170
     "/ line size > 0
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1171
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1172
     "/ example filter (removes all lines which do not end with some suffix)
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1173
     "/
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1174
     "/ (line asLowercase endsWith:''foo'') not
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1175
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1176
     "/ dummy filter (keeps all lines)
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1177
     "/
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1178
     true
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1179
]
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1180
'.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1181
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1182
    filterBlock := self askForFilterBlock:'Filter block:'
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1183
                        template:template
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1184
                        rememberIn:#LastFilterBlockString.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1185
    filterBlock isNil ifTrue:[^ self].
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1186
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1187
    oldList := self selectedWorkspacesTextView list.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1188
    oldList := oldList collect:[:lineOrNil | lineOrNil ? ''].
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1189
    newList := oldList select:filterBlock.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1190
    newList := newList collect:[:line | (line isString and:[line size == 0]) ifTrue:[nil] ifFalse:[line]].
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1191
    nDeleted := oldList size - newList size.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1192
    nDeleted == 0 ifTrue:[
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1193
        self information:'No lines were deleted.'.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1194
        ^ self
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1195
    ].
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1196
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1197
    answer := Dialog confirmWithCancel:(resources 
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1198
                        string:'%1 lines remain (%2 deleted). Change text ?'
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1199
                        with:newList size
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1200
                        with:nDeleted)
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1201
                labels:#( 'Cancel' 'No, Show Deleted' 'Yes').
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1202
    answer isNil ifTrue:[^ self].
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1203
    answer ifFalse:[
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1204
        deletedLines := oldList reject:filterBlock.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1205
        TextBox openOn:(deletedLines asStringCollection) title:'Filtered lines'.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1206
        ^ self.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1207
    ].
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1208
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1209
    self selectedWorkspacesTextView list:newList.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1210
!
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1211
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1212
googleSpellingSuggestion
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1213
    self selectedWorkspacesTextView googleSpellingSuggestion
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1214
!
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1215
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1216
pasteLastDoIt
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1217
    |s|
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1218
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1219
    s := self lastDoItsString.
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1220
    s notNil ifTrue:[
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1221
        self paste:s
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1222
    ]
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1223
! !
2fb9c342be6f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4602
diff changeset
  1224
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1225
!WorkspaceApplication methodsFor:'menu-dynamic'!
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1226
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1227
pasteRecentDoItMenu
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1228
    <resource: #programMenu >
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1229
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1230
    ^ self recentDoItsMenuFor:#'paste:'
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1231
!
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1232
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1233
recentDoItsMenuFor:aSelector
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1234
    <resource: #programMenu >
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1235
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1236
    ^ [
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1237
        |doIts m classHistory currentClass|
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1238
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1239
        doIts := Workspace doItHistory.
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1240
        doIts size > 0 ifTrue:[
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1241
            m := Menu new.
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1242
            doIts do:[:doItEntry |
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1243
                |lines label item|
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1244
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1245
                label := doItEntry withoutLeadingSeparators asStringCollection first.
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1246
                (label size > 20) ifTrue:[
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1247
                    label := (label contractTo:20)
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1248
                ] ifFalse:[
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1249
                    (lines size > 1) ifTrue:[
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1250
                        label := label , '...'
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1251
                    ].
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1252
                ].
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1253
                label := '''' , label , ''''.
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1254
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1255
                item := MenuItem label:label.
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1256
                m addItem:item.
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1257
                item value:aSelector.
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1258
                item argument:doItEntry.
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1259
            ].
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1260
            m addItem: (MenuItem new label:'-').
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1261
            m addItem: (MenuItem new 
5358
b122ec142dba checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5303
diff changeset
  1262
                        label: (resources string:'Clear History'); 
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1263
                        value: #clearHistory; 
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1264
                        activeHelpKey: #historyEmptyMenu;
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1265
                        translateLabel:true).
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1266
       ].
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1267
        m
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1268
    ].
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1269
!
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1270
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1271
redoRecentDoItMenu
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1272
    <resource: #programMenu >
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1273
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1274
    ^ self recentDoItsMenuFor:#'pasteAndExecute:'
4136
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1275
! !
6af9b93453c3 doIt history
Claus Gittinger <cg@exept.de>
parents: 4099
diff changeset
  1276
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1277
!WorkspaceApplication methodsFor:'private'!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1278
4031
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1279
askIfAnyModified:question yesButton:yesButtonText
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1280
    (workspaces contains:[:aView | self isModifiedWorkspace:aView]) ifFalse:[^ true].
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1281
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1282
    (Dialog 
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1283
        confirm:(resources string:question) withCRs
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1284
        yesLabel:(resources at:yesButtonText)
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1285
        noLabel:(resources at:'Cancel'))
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1286
    ifTrue:[
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1287
        "/ reset modified flag so question is asked only once
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1288
        (workspaces select:[:aView | (self isModifiedWorkspace:aView)])
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1289
        do:[:eachModifiedTextView |
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1290
                eachModifiedTextView modified:false.
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1291
        ].
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1292
        ^ true
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1293
    ].
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1294
    ^ false
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1295
!
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1296
5295
e3c5a7b20d9d refactored (added abstract superclass)
Claus Gittinger <cg@exept.de>
parents: 5262
diff changeset
  1297
createWorkspace
e3c5a7b20d9d refactored (added abstract superclass)
Claus Gittinger <cg@exept.de>
parents: 5262
diff changeset
  1298
    ^ (HVScrollableView for:Workspace)
3193
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
  1299
!
e35a94b5c2a0 multiple tabs
Claus Gittinger <cg@exept.de>
parents: 3191
diff changeset
  1300
4031
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1301
isModifiedWorkspace:aView
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1302
    |view|
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1303
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1304
    view := self workspaceViewOfView:aView.
4031
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1305
4313
a8553b7a090e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4284
diff changeset
  1306
    (view isNil
a8553b7a090e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4284
diff changeset
  1307
    or:[view modified not 
4031
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1308
    or:[view contentsWasSaved
4313
a8553b7a090e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4284
diff changeset
  1309
    or:[view contents withoutSeparators isEmpty]]]) ifTrue:[
4031
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1310
        ^ false
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1311
    ].
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1312
    ^ true
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1313
!
4ace4ff5fbbd look for unsaved text in ANY workspace
Claus Gittinger <cg@exept.de>
parents: 3845
diff changeset
  1314
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1315
lastDoItsString
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1316
    |history|
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
  1317
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1318
    history := Workspace doItHistory.
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1319
    history size > 0 ifFalse:[
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1320
        self selectedWorkspacesTextView flash.
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1321
        ^ nil
3198
1c34cd12b80b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3196
diff changeset
  1322
    ].
4267
bc454d3f6ca5 more convenient functions
Claus Gittinger <cg@exept.de>
parents: 4208
diff changeset
  1323
    ^ history first
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1324
! !
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1325
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1326
!WorkspaceApplication class methodsFor:'documentation'!
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1327
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1328
version
5490
722da73f31ed Handle file open errors
Stefan Vogel <sv@exept.de>
parents: 5358
diff changeset
  1329
    ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.71 2004-02-06 17:56:34 stefan Exp $'
3154
859688212191 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1330
! !