|
|
Class: SourceCodeManagerUtilities
Object
|
+--SourceCodeManagerUtilities
- Package:
- stx:libbasic3
- Category:
- System-SourceCodeManagement
- Version:
- rev:
1.201
date: 2010/03/21 01:50:27
- user: cg
- file: SourceCodeManagerUtilities.st directory: libbasic3
- module: stx stc-classLibrary: libbasic3
- Author:
- Claus Gittinger (cg@exept)
utility code which is useful at more than one place
(extracted from the browser)
[instance variables:]
[class variables:]
Signal constants
-
yesToAllNotification
-
-
yesToAllQuery
-
accessing
-
lastModule
-
return the value of the static variable 'LastModule' (automatically generated)
-
lastModule: something
-
set the value of the static variable 'LastModule' (automatically generated)
-
lastPackage
-
return the value of the static variable 'LastPackage' (automatically generated)
-
lastPackage: something
-
set the value of the static variable 'LastPackage' (automatically generated)
resources
-
resourcePackage
-
utilities
-
classIsNotYetInRepository: aClass withManager: mgr
-
-
nameOfExtensionsContainer
-
-
setPackageOfAllMethodsIn: aClass to: aPackage
-
make all methods belong to the classes project
-
setPackageOfAllMethodsInChangeSet: aChangeSet to: aPackage
-
make all methods belong to the classes project
-
sourceCodeManagerFor: aClass
-
-
sourceCodeOfClass: aClass
-
utilities-cvs
-
changeSetForExtensionMethodsForPackage: packageToCheckOut askForRevision: askForRevision using: aSourceCodeManager
-
check-out an extension container from the source repository, and return the methods there as a change set.
If askForRevision is false, check-out the newest version.
Return a changeSet or nil (if any error occurred)
-
changeSetForExtensionMethodsForPackage: packageToCheckOut revision: revisionOrNil orAskForRevision: askForRevision using: aSourceCodeManager
-
check-out an extension container from the source repository, and return the methods there as a change set.
If askForRevision is false, check-out the newest version.
Return a changeSet or nil (if any error occurred)
-
checkForExistingModule: module directory: directory container: containerFileName using: mgr allowCreate: allowCreate
-
-
checkForExistingModule: module directory: directory using: mgr allowCreate: allowCreate
-
-
checkForExistingModule: module using: mgr allowCreate: allowCreate
-
-
checkinClass: aClass
-
check a class into the source repository.
Asks interactively for a log-message.
-
checkinClass: aClass withInfo: aLogInfoOrNil
-
check a class into the source repository.
If the argument, aLogInfoOrNil isNil, ask interactively for a log-message.
-
checkinClass: aClass withInfo: aLogInfoNil withCheck: doCheckClass
-
check a class into the source repository.
If the argument, aLogInfoNil isNil, ask interactively for log-message.
If doCheckClass is true, the class is checked for send of halts etc.
-
checkinClasses: aCollectionOfClass
-
check a collection of classes into the source repository.
Asks interactively for log-message.
-
checkinClasses: aCollectionOfClasses withInfo: aLogInfoOrNil
-
check a bunch of classes into the source repository.
If the argument, aLogInfoOrNil isNil, ask interactively for log-message.
-
checkinClasses: aCollectionOfClasses withInfo: aLogInfoOrStringNil withCheck: doCheckClasses
-
check a bunch of classes into the source repository.
If the argument, aLogInfoOrStringNil isNil, ask interactively for log-message.
-
checkinExtensionMethods: aCollectionOfMethods forPackage: aPackageID withInfo: aLogInfoOrStringOrNil
-
checkin a projects extensions into the source repository.
If the argument, aLogInfoOrStringOrNil isNil, ask interactively for log-message.
-
checkoutClass: aClass askForMerge: askForMerge
-
check-out a class from the source repository.
-
checkoutClass: aClass askForRevision: askForRevision askForMerge: askForMerge
-
check-out a class from the source repository.
If askForRevision is false, check-out the newest version.
-
checkoutClass: aClass askForRevision: askForRevision askForMerge: askForMerge askForConfirmation: askForConfirmation
-
check-out a class from the source repository.
If askForRevision is false, check-out the newest version.
-
checkoutExtensionMethodsForPackage: packageToCheckOut askForRevision: askForRevision askForMerge: askForMerge using: aSourceCodeManager
-
check-out a class from the source repository.
If askForRevision is false, check-out the newest version.
-
compareClassWithRepository: aClass
-
open a diff-textView comparing the current (in-image) version
against its orgiginal version found in the repository.
-
compareClassWithRepository: aClass askForRevision: askForRevision
-
open a diff-textView comparing the current (in-image) version
against its orgiginal version found in the repository.
-
compareProject: aProject withRepositoryVersionFrom: aDateOrNilForNewest
-
-
compareProjectWithRepository: aProject
-
-
createSourceContainerForClass: aClass
-
let user specify the source-repository values for aClass
-
defineSourceContainerForClass: aClass title: title text: boxText createDirectories: createDirs createContainer: createContainer
-
let user specify the source-repository values for aClass
-
diffSetOfProject: aProject againstRepositoryVersionFrom: aDateOrNilForNewest
-
-
removeSourceContainerForClass: aClass
-
show container & let user confirm twice.
-
removeSourceContainerForClass: aClass confirm: doConfirm warn: doWarn
-
show container & optionally let user confirm twice.
-
repositoryLogOf: aClass onto: aStream
-
-
repositoryLogOf: aClass short: shortOrNot onto: aStream
-
-
tagClass: aClass as: tag
-
-
tagClasses: aCollectionOfClasses as: tag
-
-
tagPath: aPath as: tag using: aManager
-
utilities-cvs-helpers
-
getMethodVersionsOfClass: aClass selector: selector numberOfRevisions: numberOfRevisionsOrNil
-
check-out all previous versions of aClass and retrieve the history of selector.
Return a dictionary associating revision with a changeList entries for that method.
Unfinished - need a GUI for that.
utilities-cvs-user interaction
-
askForContainer: boxText title: title note: notice initialModule: initialModule initialPackage: initialPackage initialFileName: initialFileName
-
open a dialog asking for a source container;
return a dictionary containing module, package and filename,
or nil if canceled.
-
askForContainer: boxText title: title note: notice initialModule: initialModule initialPackage: initialPackage initialFileName: initialFileName forNewContainer: forNewContainer
-
open a dialog asking for a source container;
return a dictionary containing module, package and filename,
or nil if canceled.
-
askForExistingRevision: boxText title: title class: aClass
-
open a dialog asking for a containers revision;
return a revision number, or nil if canceled.
-
askForExistingRevision: boxText title: title class: clsOrNil manager: aSourceCodeManager module: module package: directory fileName: fileName
-
open a dialog asking for a containers revision;
return a revision number, or nil if canceled.
-
checkAndWarnAboutBadMessagesInClass: aClass checkAgainHolder: checkAgainHolder
-
check if a class contains message-sends to:
#halt , #halt:
#error
#todo , #todo:
(and maybe more in the future)
Only checks in non-extension methods - as this is only called when checking
-
getCheckinInfoFor: aClassNameOrPackageNameString initialAnswer: initialAnswerOrNil
-
get a log message for checking in a class.
Return the message or nil if aborted.
-
getCheckinInfoFor: aClassNameOrPackageNameString initialAnswer: initialAnswerOrNil withQuickOption: withQuickOption
-
get a log message for checking in a class (plus checkinQuick state info).
Return the info-object (actually: the dialog) or nil if aborted.
-
goodInitialLogMessageForCheckinClassOfClass: aClass
-
figure out, if there were any non-comment changes.
Provide a reasonable initial log message (I am tired of typing in 'comment only')
utilities-encoding
-
guessEncodingOfBuffer: buffer
-
look for a string of the form
encoding #name
or:
encoding: name
within the given buffer
(which is usually the first few bytes of a textFile).
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
guessEncodingOfFile: aFilename
-
look for a string
encoding #name
or:
encoding: name
within the given buffer
(which is usually the first few bytes of a textFile).
If thats not found, use heuristics (in CharacterArray) to guess.
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
guessEncodingOfStream: aStream
-
look for a string of the form
encoding #name
or:
encoding: name
in the first few bytes of aStream.
** This is an obsolete interface - do not use it (it may vanish in future versions) **
|