AbstractSourceCodeManagementSettingsAppl.st
author Jan Vrany <jan.vrany@labware.com>
Sat, 30 Sep 2023 22:55:25 +0100
branchjv
changeset 19648 5df52d354504
parent 16213 f667b5b42a11
permissions -rw-r--r--
`TestRunner2`: do not use `#keysAndValuesCollect:` ...as semantics differ among smalltalk dialects. This is normally not a problem until we use code that adds this as a "compatibility" method. So to stay on a safe side, avoid using this method.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10057
36e5aa192050 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10056
diff changeset
     1
"
10056
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
10057
36e5aa192050 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10056
diff changeset
     3
	      All Rights Reserved
10030
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
     4
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
     5
 This software is furnished under a license and may be used
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
     6
 only in accordance with the terms of that license and with the
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
     8
 be provided or otherwise made available to, or used by, any
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
     9
 other person.  No title to or ownership of the software is
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    10
 hereby transferred.
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    11
"
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
15758
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
    14
"{ NameSpace: Smalltalk }"
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
    15
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
AbstractSettingsApplication subclass:#AbstractSourceCodeManagementSettingsAppl
16211
6768525558d8 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 16166
diff changeset
    17
	instanceVariableNames:'shownInBrowserMenusHolder sourceCacheDir verboseSourceCodeAccess
6768525558d8 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 16166
diff changeset
    18
		removeEnabled listOfModules'
10057
36e5aa192050 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10056
diff changeset
    19
	classVariableNames:''
36e5aa192050 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10056
diff changeset
    20
	poolDictionaries:''
36e5aa192050 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10056
diff changeset
    21
	category:'System-SourceCodeManagement'
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
!
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
10030
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    24
!AbstractSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    25
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    26
copyright
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    27
"
10056
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    28
 COPYRIGHT (c) 2006 by eXept Software AG
10057
36e5aa192050 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10056
diff changeset
    29
	      All Rights Reserved
10030
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    30
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    31
 This software is furnished under a license and may be used
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    32
 only in accordance with the terms of that license and with the
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    33
 inclusion of the above copyright notice.   This software may not
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    34
 be provided or otherwise made available to, or used by, any
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    35
 other person.  No title to or ownership of the software is
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    36
 hereby transferred.
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    37
"
10056
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    38
!
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    39
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    40
documentation
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    41
"
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    42
    Abstract superclass of all source-code managers.
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    43
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    44
    These should implement an interface similar to what is found in CVSSourceCodeManager,
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    45
    providing methods to checkin/out files from a central repository.
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    46
10144
e32d27a81b87 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 10057
diff changeset
    47
    Not all managers will probably provide the same set of functions; 
10056
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    48
    time will show, if such an abstraction is possible
11820
03ea2577522e changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 11734
diff changeset
    49
    (the way source code management systems organize their code is different, 
03ea2577522e changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 11734
diff changeset
    50
    some keep individual per-class version numbers (CVS, RCS, SVN) 
03ea2577522e changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 11734
diff changeset
    51
    others keep an overall (configuration-) id (SVN, Git and Hg).
10056
309affc75a8c added: #documentation
Claus Gittinger <cg@exept.de>
parents: 10030
diff changeset
    52
"
10030
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
    53
! !
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
11082
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    55
!AbstractSourceCodeManagementSettingsAppl class methodsFor:'help specs'!
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    56
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    57
helpSpec
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    58
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    59
     by the UIHelpTool of ST/X."
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    60
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    61
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    62
     the UIHelpTool may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    63
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    64
    "
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    65
     UIHelpTool openOnClass:CVSSourceCodeManagementSettingsAppl    
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    66
    "
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    67
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    68
    <resource: #help>
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    69
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    70
    ^ super helpSpec addPairsFrom:#(
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    71
11358
f71d9c949f56 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 11345
diff changeset
    72
#workDirectory
f71d9c949f56 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 11345
diff changeset
    73
'Directory where checkin/checkout happens (temporary source directory)'
f71d9c949f56 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 11345
diff changeset
    74
11082
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    75
#shownInBrowserMenus
11734
996ec373f194 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 11418
diff changeset
    76
'If checked, the Systembrowser includes operations for me in its SCM menus'
11082
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    77
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    78
)
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    79
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    80
    "Created: / 11-01-2012 / 15:38:11 / cg"
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    81
! !
Claus Gittinger <cg@exept.de>
parents: 11068
diff changeset
    82
10979
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    83
!AbstractSourceCodeManagementSettingsAppl class methodsFor:'image specs'!
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    84
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    85
defaultIcon
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    86
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    87
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    88
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    89
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    90
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    91
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    92
    "
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    93
     self defaultIcon inspect
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    94
     ImageEditor openOnClass:self andSelector:#defaultIcon
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    95
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    96
    "
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    97
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    98
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
    99
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
   100
    ^Icon
15758
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
   101
        constantNamed:'AbstractSourceCodeManagementSettingsAppl defaultIcon'
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
   102
        ifAbsentPut:[(Depth8Image new) width:22; height:22; bits:(ByteArray fromPackedString:'
10979
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
   103
@@@@@@@@@@@A@PHB@0P@@@@@@@@@@@@@@@@@@@HEA \HA $JB0HD@@@@@@@@@@@@@@HLA04NC0HD@@L@@ P@@@@@@@@@@@@ED@ NDP@@@@@@@@@D@@@@@@@@
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
   104
@@@BA \FAPP@@@@@@@@@@@P@@@@@@@@@AQ@RC0@@@@@@@@@@@@@@@@@@@@@@@@TGA!!DD@@@@@@@@@@@@@@@@@@@D@PDIA08OA@@@@@@@@@@@@@@@@@@@AP S
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
   105
A0XIBPXGC0P@@@@@@@@@@@@@@@@ECAPLBPXOAP@@@@@@EQX@@@@@@@@@@@TIE@XOAP@@@@@@EQ\XE @@@@@@@@@@AP$OAP@@@@@@FQ\ZE!! V@@@@@@@@@@@E
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
   106
F0@@@@@@EQ\ZF!!(VFAX@@@@@@@@@@@@@@@@ZEQ\VE!!(ZF!!XWF @@@@@@@@@@@@@@@@@@@A\ZE!!(@@@@@@@@@@@@@@@@@@@@@@@@XE!!XZ@@@@@@@@@@@@@@@@
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
   107
@@@@@@@@EQ(V@@@@@@@@@@@@@@@@@@@@@@@@EQ\VE @@@@@@@@@@@@@@@@@@@@@@EQ VE @@@@@@@@@@@@@@F @@@@@WEQ VE!!(@@@@@@@@@@@@@@@@@E!!\W
15758
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
   108
EQXVE @@@@@@@@@@@@@@@@@@@@@@@A(Z@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 32 64 0 0 64 0 32 32 0 0 32 0 32 96 32 96 192 128 192 224 192 160 224 160 32 128 64 64 96 64 64 96 32 32 160 64 160 224 192 64 160 96 32 128 32 224 224 224 64 128 64 160 192 160 224 224 192 32 160 96 160 160 160 64 64 64 96 96 96 128 128 128 192 192 192 32 32 32 32 64 32]; mask:((ImageMask new) width:22; height:22; bits:(ByteArray fromPackedString:'@O8@@?>@A??@A?C C<@0C8@PC8@@??@@??F@_>O@O<_ G8?0C1?8A#?<@C?<@@_@H@_@L@?@GC>@C?>@A?<@@_0@') ; yourself); yourself]
10984
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   109
!
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   110
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   111
defaultIconSmall
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   112
    "This resource specification was automatically generated
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   113
     by the ImageEditor of ST/X."
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   114
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   115
    "Do not manually edit this!! If it is corrupted,
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   116
     the ImageEditor may not be able to read the specification."
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   117
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   118
    "
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   119
     self defaultIconSmall inspect
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   120
     ImageEditor openOnClass:self andSelector:#defaultIconSmall
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   121
     Icon flushCachedIcons
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   122
    "
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   123
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   124
    <resource: #image>
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   125
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   126
    ^Icon
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   127
        constantNamed:'AbstractSourceCodeManagementSettingsAppl class defaultIconSmall'
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   128
        ifAbsentPut:[(Depth8Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#(8)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   129
@@@@@@0LAPT@@@@@@@@EC@0LC@T@@@@@@ 0L@@@@@@T@@@@EA T@@@@@@@@EAP0IC@<@@AX@@@@EBP0E@@@VE!!X@@@@EF0@@E!!(ZFAX@@@@@@AXVE1XVE @V
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   130
@@@@@@@VE @@@@@VE!!XVE!!X@@@@@@@@WE!!XV@@@@@@@a') ; colorMapFromArray:#[0 0 0 32 64 0 0 64 0 32 32 0 0 32 0 32 96 32 96 192 128 192 224 192 160 224 160 32 128 64 64 96 64 64 96 32 32 160 64 160 224 192 64 160 96 32 128 32 224 224 224 64 128 64 160 192 160 224 224 192 32 160 96 160 160 160 64 64 64 96 96 96 128 128 128 192 192 192 32 32 32 32 64 32]; mask:((ImageMask new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C0@_ C!!@N@C< G''@L>@G8DF@O8@_@@@a') ; yourself); yourself]
10979
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
   131
! !
Claus Gittinger <cg@exept.de>
parents: 10144
diff changeset
   132
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
!AbstractSourceCodeManagementSettingsAppl class methodsFor:'queries'!
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
11345
dda5899bdb12 added: #isAbstract
Claus Gittinger <cg@exept.de>
parents: 11326
diff changeset
   135
isAbstract
dda5899bdb12 added: #isAbstract
Claus Gittinger <cg@exept.de>
parents: 11326
diff changeset
   136
    ^ self == AbstractSourceCodeManagementSettingsAppl
dda5899bdb12 added: #isAbstract
Claus Gittinger <cg@exept.de>
parents: 11326
diff changeset
   137
dda5899bdb12 added: #isAbstract
Claus Gittinger <cg@exept.de>
parents: 11326
diff changeset
   138
    "Created: / 02-03-2012 / 15:55:41 / cg"
dda5899bdb12 added: #isAbstract
Claus Gittinger <cg@exept.de>
parents: 11326
diff changeset
   139
!
dda5899bdb12 added: #isAbstract
Claus Gittinger <cg@exept.de>
parents: 11326
diff changeset
   140
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
managerClass
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
    "backlink to my manager class (needed by the settings app)"
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
    self subclassResponsibility
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
    "Created: / 19-04-2011 / 12:47:28 / cg"
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
!
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
managerTypeName
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    ^ self managerClass managerTypeName
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
    "Created: / 19-04-2011 / 12:48:37 / cg"
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
! !
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
11125
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   155
!AbstractSourceCodeManagementSettingsAppl methodsFor:'actions'!
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   156
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   157
condenseSourceCache
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   158
    self withWaitCursorDo:[ AbstractSourceCodeManager condenseSourceCache ].
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   159
    Method flushSourceStreamCache.
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   160
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   161
    "Modified: / 28-11-2006 / 12:21:33 / cg"
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   162
!
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   163
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   164
flushSourceCache
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   165
    self withWaitCursorDo:[ AbstractSourceCodeManager flushSourceCache ].
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   166
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   167
    "Modified: / 30-09-2011 / 13:33:47 / cg"
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   168
! !
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   169
11063
bae37a424fa8 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 10984
diff changeset
   170
!AbstractSourceCodeManagementSettingsAppl methodsFor:'aspects'!
bae37a424fa8 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 10984
diff changeset
   171
11125
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   172
acceptChannel
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   173
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   174
    acceptChannel isNil ifTrue:[
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   175
        acceptChannel := TriggerValue new.
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   176
    ].
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   177
    ^ acceptChannel.
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   178
!
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   179
11326
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   180
initialListOfModules
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   181
    "raise an error: must be redefined in concrete subclass(es)"
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   182
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   183
    ^ self subclassResponsibility
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   184
!
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   185
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   186
listOfModules
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   187
    listOfModules isNil ifTrue:[
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   188
        listOfModules := self initialListOfModules.
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   189
        listOfModules onChangeSend:#updateModifiedChannel to:self
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   190
    ].
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   191
    ^ listOfModules.
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   192
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   193
    "Modified: / 02-03-2012 / 14:42:53 / cg"
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   194
!
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   195
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   196
removeEnabled
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   197
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   198
    removeEnabled isNil ifTrue:[
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   199
        removeEnabled := false asValue.
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   200
    ].
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   201
    ^ removeEnabled.
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   202
!
61ffc8481d3c refactored common code
Claus Gittinger <cg@exept.de>
parents: 11324
diff changeset
   203
11405
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   204
sampleModuleList
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   205
    <resource: #uiAspect>
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   206
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   207
    |modules|
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   208
16211
6768525558d8 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 16166
diff changeset
   209
    modules := Smalltalk allPackageIDs 
11405
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   210
                collect:[:packageId | packageId asPackageId module ]
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   211
                as:Set.
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   212
11418
a31188aa05fe changed: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11405
diff changeset
   213
    modules remove:(PackageId noProjectID) ifAbsent:[].
11405
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   214
    ^ modules asSortedCollection
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   215
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   216
    "Created: / 12-03-2012 / 11:54:25 / cg"
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   217
!
4738cbb078ce added: #sampleModuleList
Claus Gittinger <cg@exept.de>
parents: 11358
diff changeset
   218
11068
dcd5bc8ed585 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11063
diff changeset
   219
shownInBrowserMenusHolder
dcd5bc8ed585 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11063
diff changeset
   220
    shownInBrowserMenusHolder isNil ifTrue:[
dcd5bc8ed585 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11063
diff changeset
   221
        shownInBrowserMenusHolder := true asValue.
dcd5bc8ed585 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11063
diff changeset
   222
        shownInBrowserMenusHolder onChangeSend:#updateModifiedChannel to:self
11063
bae37a424fa8 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 10984
diff changeset
   223
    ].
11068
dcd5bc8ed585 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11063
diff changeset
   224
    ^ shownInBrowserMenusHolder.
11063
bae37a424fa8 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 10984
diff changeset
   225
11068
dcd5bc8ed585 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 11063
diff changeset
   226
    "Created: / 10-01-2012 / 00:16:13 / cg"
11125
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   227
!
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   228
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   229
sourceCacheDir
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   230
    sourceCacheDir isNil ifTrue:[
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   231
        sourceCacheDir := ValueHolder new.
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   232
        sourceCacheDir onChangeSend:#updateModifiedChannel to:self
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   233
    ].
59ee0c157f3c refactored
Claus Gittinger <cg@exept.de>
parents: 11085
diff changeset
   234
    ^ sourceCacheDir.
11324
15caf5cc5f9c refactored
Claus Gittinger <cg@exept.de>
parents: 11125
diff changeset
   235
!
15caf5cc5f9c refactored
Claus Gittinger <cg@exept.de>
parents: 11125
diff changeset
   236
15caf5cc5f9c refactored
Claus Gittinger <cg@exept.de>
parents: 11125
diff changeset
   237
verboseSourceCodeAccess
15caf5cc5f9c refactored
Claus Gittinger <cg@exept.de>
parents: 11125
diff changeset
   238
    verboseSourceCodeAccess isNil ifTrue:[
15caf5cc5f9c refactored
Claus Gittinger <cg@exept.de>
parents: 11125
diff changeset
   239
        verboseSourceCodeAccess := false asValue.
15caf5cc5f9c refactored
Claus Gittinger <cg@exept.de>
parents: 11125
diff changeset
   240
        verboseSourceCodeAccess onChangeSend:#updateModifiedChannel to:self
15caf5cc5f9c refactored
Claus Gittinger <cg@exept.de>
parents: 11125
diff changeset
   241
    ].
15caf5cc5f9c refactored
Claus Gittinger <cg@exept.de>
parents: 11125
diff changeset
   242
    ^ verboseSourceCodeAccess.
11063
bae37a424fa8 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 10984
diff changeset
   243
! !
bae37a424fa8 preps for \"showInBrowserMenus\"
Claus Gittinger <cg@exept.de>
parents: 10984
diff changeset
   244
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
!AbstractSourceCodeManagementSettingsAppl class methodsFor:'documentation'!
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
10984
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   247
version
15758
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
   248
    ^ '$Header$'
10984
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   249
!
f460c387f2b8 added: #defaultIconSmall
Claus Gittinger <cg@exept.de>
parents: 10979
diff changeset
   250
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
version_CVS
15758
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
   252
    ^ '$Header$'
10030
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
   253
!
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
   254
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   255
version_HG
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   256
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   257
    ^ '$Changeset: <not expanded> $'
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   258
!
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   259
10030
486922eb13e0 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 9849
diff changeset
   260
version_SVN
15758
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
   261
    ^ '$Id$'
9849
68ad7519769a initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
! !
15758
f8410463bfde class: AbstractSourceCodeManagementSettingsAppl
Claus Gittinger <cg@exept.de>
parents: 11820
diff changeset
   263