Lines 22-27
Link Here
|
22 |
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin |
22 |
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin |
23 |
* Martin Oberhuber (Wind River) - [188360] renamed from plugin org.eclipse.rse.eclipse.filesystem |
23 |
* Martin Oberhuber (Wind River) - [188360] renamed from plugin org.eclipse.rse.eclipse.filesystem |
24 |
* Remy Chi Jian Suen (IBM) - [192906][efs] No Error when trying to Create Remote Project when project with name exists |
24 |
* Remy Chi Jian Suen (IBM) - [192906][efs] No Error when trying to Create Remote Project when project with name exists |
|
|
25 |
* Martin Oberhuber (Wind River) - [182350] Support creating remote project on Windows Drive |
25 |
********************************************************************************/ |
26 |
********************************************************************************/ |
26 |
|
27 |
|
27 |
package org.eclipse.rse.internal.efs.ui; |
28 |
package org.eclipse.rse.internal.efs.ui; |
Lines 179-186
Link Here
|
179 |
{ |
180 |
{ |
180 |
IWorkspaceRoot root = SystemBasePlugin.getWorkspaceRoot(); |
181 |
IWorkspaceRoot root = SystemBasePlugin.getWorkspaceRoot(); |
181 |
|
182 |
|
182 |
String directoryName = directory.getName(); |
183 |
String projectName = directory.getSystemConnection().getAliasName() + '_' + directory.getName(); |
183 |
IProject editProject = root.getProject(directoryName); |
184 |
projectName = projectName.replaceAll("[/:*?\"<>|\\\\]", ""); //$NON-NLS-1$ //$NON-NLS-2$ |
|
|
185 |
IProject editProject = root.getProject(projectName); |
184 |
|
186 |
|
185 |
try { |
187 |
try { |
186 |
//FIXME re-enable for 3.0 -- just allowing editProject.create() throw for now to avoid NLS change |
188 |
//FIXME re-enable for 3.0 -- just allowing editProject.create() throw for now to avoid NLS change |
Lines 192-198
Link Here
|
192 |
// NLS.bind(Messages.CreateRemoteProjectActionDelegate_PROJECT_EXISTS, directoryName))); |
194 |
// NLS.bind(Messages.CreateRemoteProjectActionDelegate_PROJECT_EXISTS, directoryName))); |
193 |
// } |
195 |
// } |
194 |
|
196 |
|
195 |
IProjectDescription description = root.getWorkspace().newProjectDescription(directoryName); |
197 |
IProjectDescription description = root.getWorkspace().newProjectDescription(projectName); |
196 |
String hostNameOrAddr = directory.getParentRemoteFileSubSystem().getHost().getHostName(); |
198 |
String hostNameOrAddr = directory.getParentRemoteFileSubSystem().getHost().getHostName(); |
197 |
String absolutePath = directory.getAbsolutePath(); |
199 |
String absolutePath = directory.getAbsolutePath(); |
198 |
URI location = RSEFileSystem.getURIFor(hostNameOrAddr, absolutePath); |
200 |
URI location = RSEFileSystem.getURIFor(hostNameOrAddr, absolutePath); |