SourceCodeManagerUtilities.st
changeset 1907 30ca5aea5a7a
parent 1886 434d9a185058
child 1911 d4088b5ba0ac
equal deleted inserted replaced
1906:6e9312011620 1907:30ca5aea5a7a
  1003             labels := #('Cancel' 'Load'). 
  1003             labels := #('Cancel' 'Load'). 
  1004             values := #(nil #load). 
  1004             values := #(nil #load). 
  1005             default := askForRevision 
  1005             default := askForRevision 
  1006                             ifTrue:[2. "i.e. load"]
  1006                             ifTrue:[2. "i.e. load"]
  1007                             ifFalse:[1. "i.e. cancel"].
  1007                             ifFalse:[1. "i.e. cancel"].
       
  1008             default := 2. 
  1008         ] ifFalse:[
  1009         ] ifFalse:[
  1009             changed isEmpty ifTrue:[
  1010             changed isEmpty ifTrue:[
  1010                 msg := msg , '\Attention:\Load will load methods which are not present in ''%4''.'.
  1011                 msg := msg , '\Attention:\Load will load methods which are not present in ''%4''.'.
  1011                 labels := #('Cancel' 'Load'). 
  1012                 labels := #('Cancel' 'Load'). 
  1012                 values := #(nil #load). 
  1013                 values := #(nil #load). 
  1013                 default := askForRevision 
  1014                 default := askForRevision 
  1014                                 ifTrue:[2. "i.e. load"]
  1015                                 ifTrue:[2. "i.e. load"]
  1015                                 ifFalse:[1. "i.e. cancel"].
  1016                                 ifFalse:[1. "i.e. cancel"].
       
  1017                 default := 2. 
  1016             ] ifFalse:[
  1018             ] ifFalse:[
  1017                 inChangeSet ifTrue:[
  1019                 inChangeSet ifTrue:[
  1018                     msg := msg , '\Attention:\Load will undo your changes made to ''%4'' (if any were made);'.
  1020                     msg := msg , '\Attention:\Load will undo your changes made to ''%4'' (if any were made);'.
  1019                 ].
  1021                 ].
  1020                 msg := msg , '\Merge will only load methods which are not present in ''%4'' (i.e. undo removals but preserve changes).'.
  1022                 msg := msg , '\Merge will only load methods which are not present in ''%4'' (i.e. undo removals but preserve changes).'.
  1029             labels := #('Cancel' 'Load'). 
  1031             labels := #('Cancel' 'Load'). 
  1030             values := #(nil #load). 
  1032             values := #(nil #load). 
  1031             default := askForRevision 
  1033             default := askForRevision 
  1032                             ifTrue:[2. "i.e. load"]
  1034                             ifTrue:[2. "i.e. load"]
  1033                             ifFalse:[1. "i.e. cancel"].
  1035                             ifFalse:[1. "i.e. cancel"].
       
  1036             default := 2. 
  1034         ] ifFalse:[
  1037         ] ifFalse:[
  1035             inChangeSet ifTrue:[
  1038             inChangeSet ifTrue:[
  1036                 msg := msg , '\Attention:\Load will undo your changes made to ''%4'' (if any were made);'.
  1039                 msg := msg , '\Attention:\Load will undo your changes made to ''%4'' (if any were made);'.
  1037                 msg := msg , '\Merge will only load methods which are not present in ''%4'' (i.e. undo removals but preserve changes).'.
  1040                 msg := msg , '\Merge will only load methods which are not present in ''%4'' (i.e. undo removals but preserve changes).'.
  1038             ]
  1041             ]
  2850 ! !
  2853 ! !
  2851 
  2854 
  2852 !SourceCodeManagerUtilities class methodsFor:'documentation'!
  2855 !SourceCodeManagerUtilities class methodsFor:'documentation'!
  2853 
  2856 
  2854 version
  2857 version
  2855     ^ '$Header: /cvs/stx/stx/libbasic3/SourceCodeManagerUtilities.st,v 1.151 2006-10-25 16:09:14 cg Exp $'
  2858     ^ '$Header: /cvs/stx/stx/libbasic3/SourceCodeManagerUtilities.st,v 1.152 2006-11-16 11:12:33 fm Exp $'
  2856 ! !
  2859 ! !