|
Lines 1-10
Link Here
|
| 1 |
/********************************************************************** |
1 |
/********************************************************************** |
| 2 |
* Copyright (c) 2005, 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2007 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
| 6 |
* http://www.eclipse.org/legal/epl-v10.html |
6 |
* http://www.eclipse.org/legal/epl-v10.html |
| 7 |
* $Id: Helper.java,v 1.12 2007/02/09 09:42:38 pnedelec Exp $ |
7 |
* $Id: Helper.java,v 1.11 2007/02/08 17:12:20 pnedelec Exp $ |
| 8 |
* |
8 |
* |
| 9 |
* Contributors: |
9 |
* Contributors: |
| 10 |
* IBM - Initial API and implementation |
10 |
* IBM - Initial API and implementation |
|
Lines 173-181
Link Here
|
| 173 |
|
173 |
|
| 174 |
if(deployableComponent != null) |
174 |
if(deployableComponent != null) |
| 175 |
{ |
175 |
{ |
| 176 |
String newName = getPackageName(deployableComponent) + "." + name; //$NON-NLS-1$ |
176 |
String packageName = getPackageName(deployableComponent); |
| 177 |
if(!newName.equals(deployableComponent.getResource())) |
177 |
String newName = packageName.length() > 0 ? packageName + "." + name : name; //$NON-NLS-1$ |
| 178 |
deployableComponent.setResource(newName); |
178 |
if (!newName.equals(deployableComponent.getResource())) { |
|
|
179 |
deployableComponent.setResource(newName); |
| 180 |
} |
| 179 |
} |
181 |
} |
| 180 |
return name; |
182 |
return name; |
| 181 |
} |
183 |
} |