#UI_ENHANCEMENT by cg
class: Tools::NewSystemBrowser
changed: #selectorMenuMoveToProtocol
better default
--- a/Tools__NewSystemBrowser.st Tue Sep 27 22:26:42 2016 +0200
+++ b/Tools__NewSystemBrowser.st Thu Sep 29 13:41:26 2016 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 2000 by eXept Software AG
All Rights Reserved
@@ -46976,7 +46978,7 @@
self activityNotification:nil.
browser := (UserPreferences current changeSetBrowserClass) openOn:previousMethods.
- browser window label:(resources string:'Revisions of %1 » %2' with:mclass name with:mselector).
+ browser window label:(resources string:'Revisions of %1 » %2' with:mclass name with:mselector).
browser readOnly:true.
].
@@ -48072,7 +48074,8 @@
(methodSelection contains:[:method | |sel|
sel := method selector.
((sel startsWith:'has') and:[sel size > 3 and:[ (sel at:4) isUppercase ]])
- or:[ ((sel startsWith:'can') and:[sel size > 3 and:[ (sel at:4) isUppercase ]]) ]]) ifTrue:[
+ or:[ ((sel startsWith:'can') and:[sel size > 3 and:[ (sel at:4) isUppercase ]])
+ or:[ ((sel startsWith:'is') and:[sel size > 2 and:[ (sel at:3) isUppercase ]]) ]]]) ifTrue:[
someCategories add:'queries'.
goodCandidates add:'queries'.
].
@@ -48080,6 +48083,10 @@
someCategories add:'enumeration'.
goodCandidates add:'enumeration'.
].
+ (methodSelection contains:[:method | method selector startsWith:'init']) ifTrue:[
+ someCategories add:'initialization'.
+ goodCandidates add:'initialization'.
+ ].
goodCandidates size == 1 ifTrue:[
initialAnswer := goodCandidates anElement
@@ -48126,7 +48133,7 @@
].
someCategories := someCategories asOrderedCollection sort.
-
+
newCategory := self
askForMethodCategory:'Move to which protocol ?'
title:'Change MethodCategory'
@@ -51552,7 +51559,7 @@
label:[:chg |
|lbl|
"/ lbl := chg printString
- lbl := (chg className ? '???') , ' » ' , (chg selector ? '???') allBold.
+ lbl := (chg className ? '???') , ' » ' , (chg selector ? '???') allBold.
(chg isMethodChange and:[chg changeMethod isNil]) ifTrue:[
lbl := lbl asText allStrikedOut,' ','(removed)' allItalic.
].
@@ -58903,7 +58910,6 @@
^ selectorCompletion
! !
-
!NewSystemBrowser methodsFor:'private-semantic checks'!
checkAcceptedMethod:aMethod inClass:aClass