Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-06-22 11:01:09 -0400
committercletavernie2012-06-22 11:01:09 -0400
commit56c2de1367f6d3a19077f728eb473b297a14614e (patch)
tree112e5831834793290db144f050fe2f26d860ca24 /plugins
parent9161fa3a7d3ffceeb42700ba3bf62b383a8c90e7 (diff)
downloadorg.eclipse.papyrus-56c2de1367f6d3a19077f728eb473b297a14614e.tar.gz
org.eclipse.papyrus-56c2de1367f6d3a19077f728eb473b297a14614e.tar.xz
org.eclipse.papyrus-56c2de1367f6d3a19077f728eb473b297a14614e.zip
Fix a wizard test
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/utils/WizardsHelper.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/utils/WizardsHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/utils/WizardsHelper.java
index d9cbab084ca..fd59170303d 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/utils/WizardsHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/utils/WizardsHelper.java
@@ -13,7 +13,6 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.wizards.utils;
-// TODO: Auto-generated Javadoc
/**
* The Class WizardsHelper.
*/
@@ -21,18 +20,19 @@ public class WizardsHelper {
/**
* Gets the file name without extension.
- *
- * @param path the path of the file
+ *
+ * @param path
+ * the path of the file
* @return the file name without extension
*/
public static String getFileNameWithoutExtension(String path) {
- if( path!= null){
+ if(path != null) {
String[] pathParts = path.split("/"); //$NON-NLS-1$
- String fileName= pathParts[pathParts.length - 1];
+ String fileName = pathParts[pathParts.length - 1];
int index = fileName.lastIndexOf('.');
- if (index > 0 && index <= fileName.length() - 2) {
- System.out.println("Filename without Extension: "
- + fileName.substring(0, index));
+ if(index > 0 && index <= fileName.length() - 2) {
+ // System.out.println("Filename without Extension: "
+ // + fileName.substring(0, index));
return fileName.substring(0, index);
}
}

Back to the top