|
From: Christopher W. <caw...@us...> - 2006-04-13 23:01:27
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1873/src/org/rubypeople/rdt/internal/ui/wizards Modified Files: RubyNewClassWizardPage.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: RubyNewClassWizardPage.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/RubyNewClassWizardPage.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RubyNewClassWizardPage.java 31 Jan 2006 20:29:53 -0000 1.1 --- RubyNewClassWizardPage.java 13 Apr 2006 23:00:38 -0000 1.2 *************** *** 1,4 **** --- 1,6 ---- package org.rubypeople.rdt.internal.ui.wizards; + import java.util.StringTokenizer; + import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IResource; *************** *** 216,219 **** --- 218,225 ---- if (!Character.isLowerCase(className.charAt(0)) && !Character.isLetter(className.charAt(0))) return false; + int namespaceDelimeterIndex = className.indexOf("::"); + if (namespaceDelimeterIndex != -1) { + return isConstant(className.substring(0, namespaceDelimeterIndex)) && isConstant(className.substring(namespaceDelimeterIndex+2)); + } for (int i = 0; i < className.length(); i++) { char c = className.charAt(i); |