ProjectView.st
author Claus Gittinger <cg@exept.de>
Thu, 16 Jan 1997 11:08:16 +0100
changeset 963 3d9083fde09f
parent 955 31a5221235f1
child 1001 b7dc91d2499d
permissions -rw-r--r--
provide Smalltalk as homeNameSpace, when defining the projects nameSpace
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
88
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     1
"
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     2
 COPYRIGHT (c) 1994 by Claus Gittinger
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     3
	      All Rights Reserved
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     4
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     5
 This software is furnished under a license and may be used
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     6
 only in accordance with the terms of that license and with the
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     8
 be provided or otherwise made available to, or used by, any
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
     9
 other person.  No title to or ownership of the software is
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    10
 hereby transferred.
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    11
"
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    12
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    13
StandardSystemView subclass:#ProjectView
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    14
	instanceVariableNames:'myProject toggle'
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    15
	classVariableNames:'ActiveProjectView'
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    16
	poolDictionaries:''
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    17
	category:'Interface-Smalltalk'
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    18
!
571fd5eee315 Initial revision
claus
parents:
diff changeset
    19
796
b8edcbceaa18 XtHTML is no longer there ...
Claus Gittinger <cg@exept.de>
parents: 692
diff changeset
    20
!ProjectView class methodsFor:'documentation'!
88
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    21
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    22
copyright
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    23
"
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    24
 COPYRIGHT (c) 1994 by Claus Gittinger
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    25
	      All Rights Reserved
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    26
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    27
 This software is furnished under a license and may be used
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    28
 only in accordance with the terms of that license and with the
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    29
 inclusion of the above copyright notice.   This software may not
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    30
 be provided or otherwise made available to, or used by, any
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    31
 other person.  No title to or ownership of the software is
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    32
 hereby transferred.
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    33
"
272
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    34
!
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    35
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    36
documentation
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    37
"
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    38
    ProjectViews basically offer two functionalities:
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    39
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    40
      - keep a group of windows in order to organize the desktop
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    41
        (I am not sure, if this is really a useful feature, now that we
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    42
         have modern windowManagers which have multiple desktops as well).
272
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    43
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    44
        All views as created while a project is active are remembered
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    45
        and can be hidden/shown altogether.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    46
        (this has nothing to do with windowGroups)
272
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    47
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    48
        Also, it is possible to close down all those windows (by destroying the project).
272
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    49
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    50
      - keep defaults for various system activities:
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    51
                - the fileOut directory (i.e. where the SystemBrowser creates fileOut sources)
272
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    52
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    53
                - keep the source module/package
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    54
                    thats the default offered when classes are checkedIn the very first time
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    55
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    56
                - keep a default package-identifier assigned when classes/methods are created/modified.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    57
                    thats mostly useful to browse all classes/methods that have been touched
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    58
                    in a projects context
272
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    59
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    60
                - keep a per-project changeList
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    61
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    62
      - allow opening a browser on all classes/methods which were created or modified
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    63
        while a project was active.
272
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    64
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    65
      - allow opening a browser on this projects changeList (which contains the subset of changes
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    66
         which were done while this project was active)
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    67
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    68
      - allow removal of all classes/methods which have the current projects packageIdentifier
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    69
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    70
    [author:]
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    71
        Claus Gittinger
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    72
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    73
    [see also:]
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    74
        Project
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    75
        Namespace
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    76
        CVSSourceCodemanager
272
9eeb8aa5d1d7 commentary
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
    77
"
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    78
88
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    79
! !
a38a2e87687b *** empty log message ***
claus
parents: 85
diff changeset
    80
796
b8edcbceaa18 XtHTML is no longer there ...
Claus Gittinger <cg@exept.de>
parents: 692
diff changeset
    81
!ProjectView class methodsFor:'instance creation'!
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    82
571fd5eee315 Initial revision
claus
parents:
diff changeset
    83
for:aProject
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    84
    "create & open a new projectView on some project"
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    85
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    86
    |newView|
571fd5eee315 Initial revision
claus
parents:
diff changeset
    87
571fd5eee315 Initial revision
claus
parents:
diff changeset
    88
    newView := super new.
571fd5eee315 Initial revision
claus
parents:
diff changeset
    89
    newView setProject:aProject.
571fd5eee315 Initial revision
claus
parents:
diff changeset
    90
    ^ newView
571fd5eee315 Initial revision
claus
parents:
diff changeset
    91
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    92
    "
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    93
     ProjectView for:(Project new)
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    94
    "
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    95
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
    96
    "Modified: 14.2.1997 / 13:46:07 / cg"
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
    97
! !
571fd5eee315 Initial revision
claus
parents:
diff changeset
    98
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
    99
!ProjectView methodsFor:'initialization'!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   100
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   101
addToCurrentProject
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   102
    "add this view to the current projects set of views.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   103
     Ignored here - ProjectViews are global."
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   104
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   105
    ^ self
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   106
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   107
    "Modified: 14.2.1997 / 13:35:58 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   108
!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   109
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   110
initialize
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   111
    super initialize.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   112
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   113
    "/
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   114
    "/ create the toggle ...
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   115
    "/
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   116
    toggle := Toggle in:self.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   117
    toggle borderWidth:0.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   118
    toggle pressAction:[self showProject].
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   119
    toggle releaseAction:[self hideProject].
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   120
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   121
    "/
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   122
    "/ and give it a menu
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   123
    "/
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   124
265
3b1d5710e4a5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 259
diff changeset
   125
    self initializeMenu
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   126
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   127
    "Created: 25.11.1995 / 18:06:32 / cg"
265
3b1d5710e4a5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 259
diff changeset
   128
    "Modified: 10.12.1995 / 00:04:12 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   129
!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   130
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   131
initializeMenu
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   132
    |labels selectors m|
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   133
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   134
    labels := #(
513
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   135
                    'class documentation'
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   136
                    '-'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   137
                    'show'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   138
                    'hide'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   139
                    '-'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   140
                    'changes'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   141
                    'browse'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   142
                    'fileOut classes'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   143
                    '-'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   144
                    'fileOut directory ...'
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   145
                    'repository defaults ...'
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   146
                    'package name ...'
893
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   147
                    'default nameSpace ...'
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   148
"/                        '-'
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   149
"/                        'save project code'
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   150
"/                        'build'
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   151
                    '-'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   152
                    'remove package code'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   153
                    'remove project'
513
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   154
                    '-'
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   155
                    'rename ...'
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   156
               ).
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   157
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   158
     selectors := #(        
513
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   159
                    showClassDocumentation
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   160
                    nil
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   161
                    showProject
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   162
                    hideProject
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   163
                    nil
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   164
                    browseChanges
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   165
                    browsePackage
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   166
                    fileOutClasses
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   167
                    nil
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   168
                    projectDirectory
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   169
                    projectRepositoryAndModule
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   170
                    projectPackage
893
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   171
                    projectNameSpace
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   172
"/                        nil
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   173
"/                        saveProjectFiles
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   174
"/                        buildProject
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   175
                    nil
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   176
                    removePackage
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   177
                    destroy
513
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   178
                    nil
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   179
                    renameProject
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   180
                ).
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   181
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   182
    m := PopUpMenu
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   183
                labels:(resources array:labels)
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   184
                selectors:selectors
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   185
                receiver:self.
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   186
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   187
    SourceCodeManager isNil ifTrue:[
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   188
        m disableAll:#(#projectRepository #projectPackage).
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   189
    ].
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   190
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   191
    toggle middleButtonMenu:m
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   192
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   193
    "Created: 25.11.1995 / 18:06:32 / cg"
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   194
    "Modified: 14.2.1997 / 13:42:22 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   195
! !
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   196
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   197
!ProjectView methodsFor:'menu actions'!
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   198
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   199
browseChanges
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   200
    "open a changeBrowser showing all changes made in this project
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   201
     (i.e. while this project was the active project)"
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   202
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   203
    |changes b|
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   204
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   205
    changes := myProject changeSet.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   206
    changes size == 0 ifTrue:[
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   207
        self warn:(resources string:'no changes made in this project (yet)').
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   208
        ^ self
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   209
    ].
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   210
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   211
    b := ChangeSetBrowser openOn:(myProject changeSet).
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   212
    b label:(resources string:'Changes in %1' with:myProject name)
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   213
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   214
    "Modified: 14.2.1997 / 13:36:40 / cg"
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   215
!
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   216
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   217
browsePackage
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   218
    "launch browsers for all classes/methods which are defined in this package
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   219
     (i.e. whose packageIdentifier is the same as my Projects packageIdentifier)"
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   220
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   221
    self topView withWaitCursorDo:[
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   222
        |classes packageName methods methodList anyClasses anyMethods ignoredClasses|
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   223
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   224
        anyMethods := anyClasses := false.
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   225
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   226
        packageName := myProject packageName.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   227
        classes := myProject classes.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   228
        (classes notNil and:[classes notEmpty]) ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   229
            anyClasses := true.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   230
        ].
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   231
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   232
        methods := myProject individualMethods.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   233
        methods notEmpty ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   234
            anyMethods := true.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   235
            SystemBrowser browseMethods:methods
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   236
                                  title:(resources string:'individual methods in package %1' with:packageName).
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   237
        ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   238
        anyClasses ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   239
            SystemBrowser browseClasses:classes
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   240
                                  title:(resources string:'classes in package %1' with:packageName).
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   241
        ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   242
        (anyClasses or:[anyMethods]) ifFalse:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   243
            self information:(resources string:'no classes or methods in this project (yet)')
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   244
        ]
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   245
    ]
265
3b1d5710e4a5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 259
diff changeset
   246
3b1d5710e4a5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 259
diff changeset
   247
    "Created: 10.12.1995 / 00:08:58 / cg"
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   248
    "Modified: 12.12.1995 / 16:35:07 / cg"
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   249
!
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   250
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   251
browseProps
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   252
    "show the projects properties.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   253
     This is not yet finished ...
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   254
     ... and will look better, once property inspector runs ..."
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   255
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   256
    myProject properties inspect
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   257
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   258
    "Modified: 14.2.1997 / 13:37:15 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   259
!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   260
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   261
buildProject
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   262
    "build the project; this is not yet finished ...
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   263
     ... and will eventually create all sources, makefile and
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   264
     build what is to be built: either a classLibrary or an application"
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   265
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   266
    self topView withWaitCursorDo:[
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   267
        |dir|
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   268
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   269
        self saveProjectFiles.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   270
        (self confirm:'make object files in: ' ,  dir , ' ?') ifTrue:[
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   271
            myProject buildProject.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   272
        ]
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   273
    ].
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   274
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   275
    "Modified: 14.2.1997 / 13:38:06 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   276
!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   277
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   278
destroy
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   279
    "Let user confirm, then close all of my views, and get rid of the changeList.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   280
     However, methods and classes are not restored to their
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   281
     previous state."
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   282
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   283
    (myProject views notNil
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   284
    and:[myProject views notEmpty]) ifTrue:[
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   285
        |box|
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   286
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   287
        box := YesNoBox new.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   288
        box title:(resources string:'PROJECT_DESTROY') withCRs.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   289
        box okText:(resources string:'yes').
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   290
        (box confirm) ifFalse:[^ self]
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   291
    ].
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   292
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   293
    self doDestroy
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   294
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   295
    "Modified: 14.2.1997 / 13:39:03 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   296
!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   297
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   298
doDestroy
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   299
    "close all of my views, and get rid of the changeList.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   300
     However, methods and classes are not restored to their
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   301
     previous state.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   302
     No confiramtion here."
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   303
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   304
    self hideProject.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   305
    myProject := nil.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   306
    super destroy
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   307
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   308
    "Modified: 14.2.1997 / 13:39:18 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   309
!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   310
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   311
fileOutClasses
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   312
    "fileout all classes belonging to that package.
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   313
     CAVEAT: individual methods are not yet supported."
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   314
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   315
    self topView withWaitCursorDo:[
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   316
        |classes packageName methods methodList anyClasses anyMethods ignoredClasses|
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   317
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   318
        anyMethods := anyClasses := false.
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   319
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   320
        packageName := myProject packageName.
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   321
        classes := myProject classes.
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   322
        (classes notNil and:[classes notEmpty]) ifTrue:[
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   323
            anyClasses := true.
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   324
        ].
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   325
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   326
        methods := myProject individualMethods.
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   327
        methods notEmpty ifTrue:[
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   328
            anyMethods := true.
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   329
            self warn:'individual methods are currently not handled'
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   330
        ].
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   331
        anyClasses ifTrue:[
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   332
            classes do:[:aClass |
553
b67caadfe334 showCr: -> showCR:
Claus Gittinger <cg@exept.de>
parents: 516
diff changeset
   333
                Transcript showCR:'fileOut: ' , aClass name , ' ...'.
468
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   334
                aClass fileOut
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   335
            ].
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   336
        ].
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   337
        (anyClasses or:[anyMethods]) ifFalse:[
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   338
            self information:(resources string:'no classes or methods in this project (yet)')
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   339
        ]
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   340
    ]
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   341
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   342
    "Created: 11.4.1996 / 19:29:50 / cg"
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   343
!
66637cf315a5 added fileOutClasses menu entry
Claus Gittinger <cg@exept.de>
parents: 278
diff changeset
   344
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   345
hideProject
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   346
    "hide all views belonging to that project and switch
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   347
     to the default project"
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   348
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   349
    myProject hideViews.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   350
    ActiveProjectView := nil.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   351
    toggle turnOff.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   352
    Project setDefaultProject.
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   353
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   354
    "Modified: 14.2.1997 / 13:39:43 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   355
!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   356
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   357
projectDirectory
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   358
    "ask for the default directory, where fileOut will write
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   359
     its files. Will eventually also be the place, where makefiles
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   360
     and additional stuff is saved, for project building."
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   361
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   362
    |box d|
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   363
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   364
    box := FilenameEnterBox new.
85
d9713a3ca092 *** empty log message ***
claus
parents: 57
diff changeset
   365
    box directoriesOnly.
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   366
    box title:(resources string:'PROJECT_DIRECTPORY') withCRs.
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   367
    (d := myProject directory) notNil ifTrue:[
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   368
        box initialText:d
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   369
    ].
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   370
    box action:[:dirName |
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   371
        (OperatingSystem isDirectory:dirName) ifFalse:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   372
            (OperatingSystem isValidPath:dirName) ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   373
                self warn:(resources string:'%1 is not a valid directory' with:dirName).
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   374
                ^ self
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   375
            ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   376
            (self confirm:(resources string:'%1 does not exist\\create ?' with:dirName) withCRs) ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   377
                (OperatingSystem recursiveCreateDirectory:dirName) ifFalse:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   378
                    self warn:(resources string:'cannot create %1' with:dirName)
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   379
                ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   380
            ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   381
        ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   382
        "did it work ?"
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   383
        (OperatingSystem isDirectory:dirName) ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   384
            myProject directory:dirName
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   385
        ].
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   386
    ].
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   387
    box showAtPointer
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   388
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   389
    "Modified: 14.2.1997 / 13:44:59 / cg"
265
3b1d5710e4a5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 259
diff changeset
   390
!
3b1d5710e4a5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 259
diff changeset
   391
893
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   392
projectNameSpace
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   393
    "ask for the default nameSpace, into which new classes
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   394
     are loaded while this project is active.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   395
     Useful before filing in alien code, to make certain that loaded
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   396
     classes do not conflict with existing ones ..."
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   397
893
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   398
    self topView withWaitCursorDo:[
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   399
        |box allNameSpaces|
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   400
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   401
        allNameSpaces := Namespace allNamespaces collect:[:ns | ns name].
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   402
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   403
        box := ListSelectionBox title:(resources string:'default nameSpace:') withCRs.
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   404
        box list:(allNameSpaces asOrderedCollection sort).
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   405
        box action:[:nsName |
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   406
            |ns|
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   407
963
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   408
            "/ only create topLevel nameSpaces here
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   409
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   410
            Class nameSpaceQuerySignal 
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   411
            answer:Smalltalk
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   412
            do:[
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   413
                ns := Namespace name:nsName.
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   414
            ].    
893
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   415
            myProject defaultNameSpace:ns
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   416
        ].
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   417
        box showAtPointer
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   418
    ]
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   419
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   420
    "Created: 9.12.1995 / 16:50:45 / cg"
963
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   421
    "Modified: 16.1.1997 / 01:00:06 / cg"
893
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   422
!
39307a122c30 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 796
diff changeset
   423
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   424
projectPackage
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   425
    "ask for the package identifier of this project.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   426
     New classes and methods get this identifier, to find them
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   427
     quickly later."
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   428
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   429
    self topView withWaitCursorDo:[
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   430
        |box p existingPackages allClasses|
259
c651fecef457 better defaults when creating a container
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   431
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   432
        existingPackages := Set new.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   433
        (allClasses := Smalltalk allClasses) do:[:aClass |
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   434
            |p|
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   435
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   436
            (p := aClass package) notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   437
                existingPackages add:(p asString)
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   438
            ].
692
59a7cd5ff1b5 fixes for methodDictionary
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
   439
            aClass methodDictionary do:[:aMethod |
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   440
                (p := aMethod package) notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   441
                    existingPackages add:(p asString)
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   442
                ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   443
            ].
692
59a7cd5ff1b5 fixes for methodDictionary
Claus Gittinger <cg@exept.de>
parents: 553
diff changeset
   444
            aClass class methodDictionary do:[:aMethod |
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   445
                (p := aMethod package) notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   446
                    existingPackages add:(p asString)
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   447
                ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   448
            ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   449
        ].
259
c651fecef457 better defaults when creating a container
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   450
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   451
        box := ListSelectionBox title:(resources string:'PROJECT_PACKAGENAME') withCRs.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   452
        box list:(existingPackages asOrderedCollection sort).
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   453
        (p := myProject packageName) notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   454
            box initialText:p
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   455
        ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   456
        box action:[:packageName |
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   457
            |someClass module directory|
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   458
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   459
            "/ (try) to extract the module & repository directory from someClass which
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   460
            "/ is already contained in that package
259
c651fecef457 better defaults when creating a container
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   461
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   462
            Smalltalk allClasses 
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   463
                detect:[:cls | 
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   464
                                |info|
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   465
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   466
                                (cls package = packageName) ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   467
                                    (info := cls packageSourceCodeInfo) notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   468
                                        module := info at:#module ifAbsent:nil.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   469
                                        directory := info at:#directory ifAbsent:nil.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   470
                                    ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   471
                                ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   472
                                module notNil and:[directory notNil].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   473
                        ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   474
                ifNone:nil.
259
c651fecef457 better defaults when creating a container
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   475
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   476
            module notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   477
                myProject repositoryModule:module
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   478
            ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   479
            directory notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   480
                myProject repositoryDirectory:directory
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   481
            ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   482
            myProject packageName:packageName.
259
c651fecef457 better defaults when creating a container
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   483
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   484
        ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   485
        box showAtPointer
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   486
    ]
259
c651fecef457 better defaults when creating a container
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   487
c651fecef457 better defaults when creating a container
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   488
    "Created: 9.12.1995 / 16:50:45 / cg"
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   489
    "Modified: 14.2.1997 / 13:43:02 / cg"
110
claus
parents: 106
diff changeset
   490
!
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   491
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   492
projectRepositoryAndModule
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   493
    "ask for a default module and package directory.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   494
     This is offered as default, when new containers are
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   495
     created. However, when creating, these can still be changed"
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   496
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   497
    |box d moduleHolder dirHolder|
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   498
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   499
    box := DialogBox new.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   500
    (box addTextLabel:(resources string:'PROJECT_MODULEANDDIR') withCRs)
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   501
        adjust:#left.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   502
    box addHorizontalLine.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   503
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   504
    moduleHolder := myProject repositoryModule asValue.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   505
    dirHolder := myProject repositoryDirectory asValue.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   506
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   507
    (box addTextLabel:(resources string:'PROJECT_MODULEDIR') withCRs)
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   508
        adjust:#left.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   509
    box addFilenameInputFieldOn:moduleHolder in:nil tabable:true.
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   510
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   511
    box addVerticalSpace.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   512
    box addHorizontalLine.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   513
    box addVerticalSpace.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   514
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   515
    (box addTextLabel:(resources string:'PROJECT_PACKAGEDIR') withCRs)
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   516
        adjust:#left.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   517
    box addFilenameInputFieldOn:dirHolder in:nil tabable:true.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   518
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   519
    box addAbortButton; addOkButton.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   520
    box showAtPointer.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   521
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   522
    box accepted ifTrue:[
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   523
        myProject repositoryModule:moduleHolder value.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   524
        myProject repositoryDirectory:dirHolder value.
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   525
    ].
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   526
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   527
    box destroy.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   528
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   529
    "Modified: 14.2.1997 / 13:42:05 / cg"
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   530
!
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   531
110
claus
parents: 106
diff changeset
   532
removePackage
claus
parents: 106
diff changeset
   533
    "remove all classes and individual methods from the system.
claus
parents: 106
diff changeset
   534
     Currently, this cannot fully restore the state to before
claus
parents: 106
diff changeset
   535
     the time the package was loaded (redefined methods are lost).
claus
parents: 106
diff changeset
   536
     In the future, we may keep a backref of overwritten methods
claus
parents: 106
diff changeset
   537
     and restore them from their source ..."
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   538
110
claus
parents: 106
diff changeset
   539
    |classesToRemove methodsToRemove theProject|
claus
parents: 106
diff changeset
   540
claus
parents: 106
diff changeset
   541
    (myProject isNil
claus
parents: 106
diff changeset
   542
    or:[(theProject := myProject packageName) isNil]) ifTrue:[
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   543
        self warn:(resources string:'No current package.').
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   544
        ^ self
110
claus
parents: 106
diff changeset
   545
    ].
claus
parents: 106
diff changeset
   546
claus
parents: 106
diff changeset
   547
    classesToRemove := IdentitySet new.
claus
parents: 106
diff changeset
   548
    methodsToRemove := IdentitySet new.
claus
parents: 106
diff changeset
   549
claus
parents: 106
diff changeset
   550
    Smalltalk allClassesDo:[:aClass |
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   551
        |p|
110
claus
parents: 106
diff changeset
   552
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   553
        (p := aClass package) notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   554
            p = theProject  ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   555
                classesToRemove add:aClass
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   556
            ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   557
        ].
110
claus
parents: 106
diff changeset
   558
    ].
claus
parents: 106
diff changeset
   559
    Smalltalk allClassesDo:[:aClass |
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   560
        |p|
110
claus
parents: 106
diff changeset
   561
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   562
        (classesToRemove includes:aClass) ifFalse:[
904
df0b2ed7a462 access methodDictionary instead of the old methodArray
Claus Gittinger <cg@exept.de>
parents: 893
diff changeset
   563
            aClass methodDictionary keysAndValuesDo:[:sel :aMethod |
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   564
                (p := aMethod package) notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   565
                    p = theProject  ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   566
                        methodsToRemove add:aMethod
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   567
                    ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   568
                ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   569
            ].
904
df0b2ed7a462 access methodDictionary instead of the old methodArray
Claus Gittinger <cg@exept.de>
parents: 893
diff changeset
   570
            aClass class methodDictionary keysAndValuesDo:[:sel :aMethod |
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   571
                (p := aMethod package) notNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   572
                    p = theProject  ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   573
                        methodsToRemove add:aMethod
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   574
                    ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   575
                ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   576
            ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   577
        ].
110
claus
parents: 106
diff changeset
   578
    ].
claus
parents: 106
diff changeset
   579
claus
parents: 106
diff changeset
   580
    (classesToRemove isEmpty
claus
parents: 106
diff changeset
   581
    and:[methodsToRemove isEmpty]) ifTrue:[
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   582
        self warn:(resources string:'No classes or methods found in %1' with:theProject).
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   583
        ^ self
110
claus
parents: 106
diff changeset
   584
    ].
claus
parents: 106
diff changeset
   585
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   586
    (self confirm:(resources
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   587
                        string:'About to remove %1 classes and %2 additional methods.\\Are you certain you want this ?'
516
f007fd40377a examples
Claus Gittinger <cg@exept.de>
parents: 515
diff changeset
   588
                        with:classesToRemove size
f007fd40377a examples
Claus Gittinger <cg@exept.de>
parents: 515
diff changeset
   589
                        with:methodsToRemove size) withCRs)
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   590
        ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   591
            classesToRemove do:[:aClass |
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   592
                ('PROJECT: removing ' , aClass name) infoPrintNL.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   593
                Smalltalk removeClass:aClass.   
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   594
            ].
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   595
            methodsToRemove do:[:aMethod |
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   596
                |where|
110
claus
parents: 106
diff changeset
   597
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   598
                ('PROJECT: removing ' , aMethod displayString) infoPrintNL.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   599
                where := aMethod who.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   600
                where isNil ifTrue:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   601
                    'PROJECT: oops, some method is gone' infoPrintNL.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   602
                ] ifFalse:[
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   603
                    (where at:1) removeSelector:(where at:2)
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   604
                ]
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   605
            ]
110
claus
parents: 106
diff changeset
   606
    ].
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   607
!
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   608
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   609
renameProject
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   610
    "give that project another name - has no semantic meaning,
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   611
     and does not affect any class/method"
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   612
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   613
    |box|
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   614
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   615
    box := EnterBox new.
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   616
    box title:(resources string:'new name of project:').
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   617
    box okText:(resources string:'rename').
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   618
    box initialText:(myProject name).
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   619
    box action:[:newName |
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   620
        myProject name:newName.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   621
        self setProject:myProject.
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   622
        self windowGroup process name:'Project: ' , newName.
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   623
    ].
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   624
    box showAtPointer
278
9d33deca396c better message (nationalized)
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
   625
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   626
    "Modified: 14.2.1997 / 13:41:15 / cg"
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   627
!
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   628
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   629
saveProjectFiles
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   630
    "create the projects files.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   631
     This is not yet finished."
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   632
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   633
    self topView withWaitCursorDo:[
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   634
        |dir|
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   635
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   636
        dir := myProject directory.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   637
        (self confirm:'create source files in: ' ,  dir , ' ?') ifTrue:[
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   638
            myProject createProjectFiles.
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   639
        ]
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   640
    ].
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   641
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   642
    "Modified: 14.2.1997 / 13:40:40 / cg"
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   643
!
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   644
513
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   645
showClassDocumentation
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   646
    "open a documentViewer on the projects classes documentation only"
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   647
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   648
    self topView withWaitCursorDo:[
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   649
        |classes packageName methods methodList anyClasses anyMethods 
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   650
         html|
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   651
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   652
        anyMethods := anyClasses := false.
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   653
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   654
        packageName := myProject packageName.
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   655
        classes := myProject classes.
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   656
        (classes notNil and:[classes notEmpty]) ifTrue:[
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   657
            anyClasses := true.
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   658
        ].
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   659
        (anyClasses or:[anyMethods]) ifFalse:[
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   660
            self information:(resources string:'no classes or methods in this project (yet)').
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   661
            ^ self.
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   662
        ].
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   663
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   664
        methods := myProject individualMethods.
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   665
        methods notEmpty ifTrue:[
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   666
            anyMethods := true.
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   667
            "/ not yet shown ...
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   668
        ].
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   669
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   670
        anyClasses ifFalse:[ ^ self].
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   671
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   672
        html := HTMLDocGenerator 
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   673
                        htmlClasses:classes 
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   674
                        title:'project classes' 
515
3f2035620126 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 513
diff changeset
   675
                        backTo:#none.
513
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   676
796
b8edcbceaa18 XtHTML is no longer there ...
Claus Gittinger <cg@exept.de>
parents: 692
diff changeset
   677
        HTMLDocumentView openFullOnText:html
513
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   678
    ]
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   679
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   680
    "Created: 11.4.1996 / 19:29:50 / cg"
515
3f2035620126 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 513
diff changeset
   681
    "Modified: 26.4.1996 / 17:48:33 / cg"
513
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   682
!
4c5b95c8c520 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 468
diff changeset
   683
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   684
showProject
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   685
    "show all views belonging to that project and hide
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   686
     the active projects views (except for those opened before)"
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   687
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   688
    ActiveProjectView notNil ifTrue:[
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   689
        ActiveProjectView hideProject
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   690
    ].
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   691
    ActiveProjectView := self.
110
claus
parents: 106
diff changeset
   692
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   693
    myProject showViews.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   694
    Project current:myProject.
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   695
    toggle turnOn
955
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   696
31a5221235f1 commentary;
Claus Gittinger <cg@exept.de>
parents: 904
diff changeset
   697
    "Modified: 14.2.1997 / 13:40:10 / cg"
57
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   698
! !
36e13831b62d *** empty log message ***
claus
parents: 52
diff changeset
   699
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   700
!ProjectView methodsFor:'private accessing'!
571fd5eee315 Initial revision
claus
parents:
diff changeset
   701
571fd5eee315 Initial revision
claus
parents:
diff changeset
   702
setProject:aProject
571fd5eee315 Initial revision
claus
parents:
diff changeset
   703
    |name e|
571fd5eee315 Initial revision
claus
parents:
diff changeset
   704
571fd5eee315 Initial revision
claus
parents:
diff changeset
   705
    name := aProject name.
571fd5eee315 Initial revision
claus
parents:
diff changeset
   706
    self label:name.
17
58c360f199be *** empty log message ***
claus
parents: 9
diff changeset
   707
    self iconLabel:name.
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   708
    toggle label:'Project: ' , name.
571fd5eee315 Initial revision
claus
parents:
diff changeset
   709
    toggle resize.
571fd5eee315 Initial revision
claus
parents:
diff changeset
   710
    myProject := aProject.
571fd5eee315 Initial revision
claus
parents:
diff changeset
   711
    e := (toggle width @ toggle height).
29
8a72e10043f6 *** empty log message ***
claus
parents: 17
diff changeset
   712
    drawableId isNil ifTrue:[
45
950b84ba89e6 *** empty log message ***
claus
parents: 40
diff changeset
   713
	self minExtent:e.
950b84ba89e6 *** empty log message ***
claus
parents: 40
diff changeset
   714
	self maxExtent:e.
950b84ba89e6 *** empty log message ***
claus
parents: 40
diff changeset
   715
	self open
29
8a72e10043f6 *** empty log message ***
claus
parents: 17
diff changeset
   716
    ] ifFalse:[
45
950b84ba89e6 *** empty log message ***
claus
parents: 40
diff changeset
   717
	self unrealize.
950b84ba89e6 *** empty log message ***
claus
parents: 40
diff changeset
   718
	self minExtent:e.
950b84ba89e6 *** empty log message ***
claus
parents: 40
diff changeset
   719
	self maxExtent:e.
950b84ba89e6 *** empty log message ***
claus
parents: 40
diff changeset
   720
	self extent:e.
950b84ba89e6 *** empty log message ***
claus
parents: 40
diff changeset
   721
	self rerealize
29
8a72e10043f6 *** empty log message ***
claus
parents: 17
diff changeset
   722
    ]
0
571fd5eee315 Initial revision
claus
parents:
diff changeset
   723
! !
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   724
796
b8edcbceaa18 XtHTML is no longer there ...
Claus Gittinger <cg@exept.de>
parents: 692
diff changeset
   725
!ProjectView class methodsFor:'documentation'!
217
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   726
a4b6b0d44c3b repository added
Claus Gittinger <cg@exept.de>
parents: 175
diff changeset
   727
version
963
3d9083fde09f provide Smalltalk as homeNameSpace, when defining the projects
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   728
    ^ '$Header: /cvs/stx/stx/libtool/ProjectView.st,v 1.36 1997-01-16 10:08:16 cg Exp $'
515
3f2035620126 per project class docu added
Claus Gittinger <cg@exept.de>
parents: 513
diff changeset
   729
! !