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