|
From: Christopher W. <caw...@us...> - 2006-04-13 23:01:28
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/wizards In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1873/src/org/rubypeople/rdt/ui/wizards Modified Files: RubyNewClassWizard.java Log Message: move folding preferences to its own page (child of editor pref page), remove old tab for folding on editor pref page, define open editor command, Fix class wizard to handle namespaces in class names, fix class wizard to generate correct filename when class name has a namespace, Extract strings for Folding and syntax coloring preference pages (so they could be translated), Fix output of task tag name for default task tag in task tag preference page list Index: RubyNewClassWizard.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/wizards/RubyNewClassWizard.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RubyNewClassWizard.java 17 Feb 2006 20:38:53 -0000 1.2 --- RubyNewClassWizard.java 13 Apr 2006 23:00:38 -0000 1.3 *************** *** 154,157 **** --- 154,158 ---- */ private String classNameToFileName(String className) { + className = stripNamespace(className); StringBuffer buffer = new StringBuffer(); for (int i = 0; i < className.length(); i++) { *************** *** 167,171 **** } ! /** * We will initialize file contents with a sample text. * --- 168,180 ---- } ! private String stripNamespace(String className) { ! if (className == null || className.length() == 0) return className; ! if (className.lastIndexOf("::") != -1) { ! return className.substring(className.lastIndexOf("::") + 2); ! } ! return className; ! } ! ! /** * We will initialize file contents with a sample text. * |