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