eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ChangeSetBrowser':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ChangeSetBrowser


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--TopView
                  |
                  +--StandardSystemView
                     |
                     +--ChangesBrowser
                        |
                        +--ChangeSetBrowser

Package:
stx:libtool
Category:
Interface-Browsers
Version:
rev: 1.80 date: 2019/07/31 15:47:17
user: cg
file: ChangeSetBrowser.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


like a changesBrowser, but manipulates the per-project change-lists.

This is operating on changes as a list of Change-instances 
as opposed to the ChangesBrowser which is doing it completely non-object oriented,
as a list of text-chunks.

ChangeSetBrowser is going to completely replace the ChangesBrowser class in the near
future.


Class protocol:

defaults
o  defaultLabel

instance creation
o  open
open a changes browser on the current change set

usage example(s):

     ChangeSetBrowser open

o  openOn: aChangeSet
open a changes browser on a given change set

o  openOnFile: fileNameOrString
open a changes browser on a file (or cypress folder)

usage example(s):

     self openOnFile:'st.chg'
     self openOnFile:'c:\Users\cg\work\stx\goodies\soap\spray5.2\Steve Waring\Spray WebServices\Spray\Auth\SWT Spray Auth Tests.pac'
     ChangeSet fromFile:'c:\Users\cg\work\stx\goodies\soap\spray5.2\Steve Waring\Spray WebServices\Spray\Auth\SWT Spray Auth Tests.pac'

menu specs
o  menuSpec
This resource specification was automatically generated
by the MenuEditor of ST/X.

usage example(s):

     MenuEditor new openOnClass:ChangeSetBrowser andSelector:#menuSpec
     (Menu new fromLiteralArrayEncoding:(ChangeSetBrowser menuSpec)) startUp


Instance protocol:

aspects
o  canDeleteChanges
makes the delete buttons in the toolbar visible

initialization & release
o  askIfChangesAreToBeWrittenBack

o  changeListMenu
('Compress' doCompress)

menu aspects
o  hasNotUndoableChangeSelected

o  hasUndoableMethodChangeSelected

o  hasUndoableRemoveMethodChangeSelected

private
o  applyChange: changeNr
fileIn a change

o  applyPossiblyModifiedChange: aChange
Class nameSpaceQuerySignal answer:enforcedNameSpace do:[

o  changeIsFollowupMethodChange: changeNr
(comment from inherited method)
return true, if a change is a followup change (i.e. a followup change
in a bunch of methodsFor-changes)

o  changeSet: aChangeSet

o  checkIfFileHasChanged
self newLabel:''

o  fullClassNameOfChange: nr
(comment from inherited method)
return the full classname of a change
(for classChanges (i.e. xxx class), a string ending in ' class' is returned.

o  isChangeSetBrowser

o  numberOfChanges

o  queryCloseText

o  readChangesFileInBackground: dummy
read the changeSet, create a list of header-lines

o  realClassNameOfChange: nr
className.

o  saveBackChanges
save back the change set

o  selectorOfMethodChange: changeNr
(comment from inherited method)
return a method-change's selector,
or nil if it's not a methodChange

o  silentDeleteChange: changeNr
delete a change do not update changeListView

o  silentDeleteInternalChange: changeNr
delete a change do not update changeListView

o  sourceOfChange: changeNr
answer a changes source

o  streamForChange: changeNr
answer a stream for change

user actions
o  compareChange: changeNr showResult: doShowResult

o  doInspectChange

o  doSaveBack

o  doUpdate
(comment from inherited method)
reread the changes-file

o  updateDiffViewFor: changeNr



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 25 Apr 2024 11:03:59 GMT