added: #isMethodCodeChange
authorClaus Gittinger <cg@exept.de>
Tue, 22 Sep 2009 19:03:32 +0200
changeset 2130 1f2df83288c7
parent 2129 9d5c146df780
child 2131 0feb8bbb287d
added: #isMethodCodeChange changed: #isMethodChange
MethodChange.st
--- a/MethodChange.st	Tue Sep 22 19:02:50 2009 +0200
+++ b/MethodChange.st	Tue Sep 22 19:03:32 2009 +0200
@@ -255,12 +255,20 @@
     "Created: / 09-10-2006 / 13:58:09 / cg"
 ! !
 
-!MethodChange methodsFor:'queries'!
+!MethodChange methodsFor:'testing'!
 
 isMethodChange
+    "true if this is a method related change"
+
     ^ true
 
     "Created: / 7.2.1998 / 19:26:59 / cg"
+!
+
+isMethodCodeChange
+    "true if this is a method's code change (not package, category etc.)"
+
+    ^ self class == MethodChange
 ! !
 
 !MethodChange::NamedMethodChange class methodsFor:'instance creation'!
@@ -288,5 +296,5 @@
 !MethodChange class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic3/MethodChange.st,v 1.48 2009-09-18 12:43:56 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic3/MethodChange.st,v 1.49 2009-09-22 17:03:32 cg Exp $'
 ! !