user friendly names
authortz
Mon, 09 Mar 1998 21:41:42 +0100
changeset 712 bf8aa59e82b6
parent 711 e88e6d2e2809
child 713 f94e58bb44ac
user friendly names
UIPainterView.st
--- a/UIPainterView.st	Mon Mar 09 21:40:30 1998 +0100
+++ b/UIPainterView.st	Mon Mar 09 21:41:42 1998 +0100
@@ -897,14 +897,13 @@
     "setup attributes
     "
     super initialize.
-
     superclassName := 'ApplicationModel'.
     className      := 'NewApplication'.
     methodName     := 'windowSpec'.
     categoryName   := 'Applications'.
     HandCursor     := Cursor leftHand.
 
-    self backgroundColor: self class defaultViewBackgroundColor
+    self backgroundColor: self class defaultViewBackgroundColor.
 !
 
 setupFromSpec:specOrSpecArray
@@ -1092,14 +1091,9 @@
     "
     |next name size|
 
-    aSpecOrString isString ifFalse:[name := aSpecOrString className asString]
+    aSpecOrString isString ifFalse:[name := aSpecOrString userFriendlyName]
                             ifTrue:[name := aSpecOrString].
 
-    (name endsWith:'Spec') ifTrue:[
-        name := name copyFrom:1 to:(name size - 4).
-    ] ifFalse:[
-        name := name copy
-    ].
     size  := name size + 1.
     next  := 0.