Browse Source

Changed the class declaration template

Nicolas Petton 13 years ago
parent
commit
1afd7d34e3
3 changed files with 4 additions and 4 deletions
  1. 1 1
      js/IDE.deploy.js
  2. 2 2
      js/IDE.js
  3. 1 1
      st/IDE.st

+ 1 - 1
js/IDE.deploy.js

@@ -1271,7 +1271,7 @@ smalltalk.method({
 selector: 'classDeclarationTemplate',
 fn: function (){
 var self=this;
-return smalltalk.send(smalltalk.send(unescape("Object%20subclass%3A%20%23ClassName%0A%09instanceVariableNames%3A%20%27%0A%09package%3A%20%27"), "__comma", [smalltalk.send(self, "_selectedPackage", [])]), "__comma", [unescape("%27")]);
+return smalltalk.send(smalltalk.send(unescape("Object%20subclass%3A%20%23nameOfSubclass%0A%09instanceVariableNames%3A%20%27%0A%09package%3A%20%27"), "__comma", [smalltalk.send(self, "_selectedPackage", [])]), "__comma", [unescape("%27")]);
 return self;}
 }),
 smalltalk.Browser);

+ 2 - 2
js/IDE.js

@@ -1787,10 +1787,10 @@ selector: unescape('classDeclarationTemplate'),
 category: 'accessing',
 fn: function (){
 var self=this;
-return smalltalk.send(smalltalk.send(unescape("Object%20subclass%3A%20%23ClassName%0A%09instanceVariableNames%3A%20%27%0A%09package%3A%20%27"), "__comma", [smalltalk.send(self, "_selectedPackage", [])]), "__comma", [unescape("%27")]);
+return smalltalk.send(smalltalk.send(unescape("Object%20subclass%3A%20%23nameOfSubclass%0A%09instanceVariableNames%3A%20%27%0A%09package%3A%20%27"), "__comma", [smalltalk.send(self, "_selectedPackage", [])]), "__comma", [unescape("%27")]);
 return self;},
 args: [],
-source: unescape('classDeclarationTemplate%0A%09%5E%27Object%20subclass%3A%20%23ClassName%0A%09instanceVariableNames%3A%20%27%27%0A%09package%3A%20%27%27%27%2C%20self%20selectedPackage%2C%20%27%27%27%27%20'),
+source: unescape('classDeclarationTemplate%0A%09%5E%27Object%20subclass%3A%20%23nameOfSubclass%0A%09instanceVariableNames%3A%20%27%27%0A%09package%3A%20%27%27%27%2C%20self%20selectedPackage%2C%20%27%27%27%27%20'),
 messageSends: [unescape("%2C"), "selectedPackage"],
 referencedClasses: []
 }),

+ 1 - 1
st/IDE.st

@@ -470,7 +470,7 @@ selectedClass
 !
 
 classDeclarationTemplate
-	^'Object subclass: #ClassName
+	^'Object subclass: #nameOfSubclass
 	instanceVariableNames: ''
 	package: ''', self selectedPackage, ''''
 !