Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 78389 Details for
Bug 182350
[efs] Error message when creating a remote project on a Windows drive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Amended patch adding connection name and supporting UNIX roots
patch182350_efs_winDrive2.diff.txt (text/plain), 2.29 KB, created by
Martin Oberhuber
on 2007-09-13 17:56:19 EDT
(
hide
)
Description:
Amended patch adding connection name and supporting UNIX roots
Filename:
MIME Type:
Creator:
Martin Oberhuber
Created:
2007-09-13 17:56:19 EDT
Size:
2.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.efs.ui >Index: src/org/eclipse/rse/internal/efs/ui/CreateRemoteProjectActionDelegate.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.efs.ui/src/org/eclipse/rse/internal/efs/ui/CreateRemoteProjectActionDelegate.java,v >retrieving revision 1.3 >diff -u -r1.3 CreateRemoteProjectActionDelegate.java >--- src/org/eclipse/rse/internal/efs/ui/CreateRemoteProjectActionDelegate.java 12 Sep 2007 20:08:40 -0000 1.3 >+++ src/org/eclipse/rse/internal/efs/ui/CreateRemoteProjectActionDelegate.java 13 Sep 2007 21:55:15 -0000 >@@ -22,6 +22,7 @@ > * Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin > * Martin Oberhuber (Wind River) - [188360] renamed from plugin org.eclipse.rse.eclipse.filesystem > * Remy Chi Jian Suen (IBM) - [192906][efs] No Error when trying to Create Remote Project when project with name exists >+ * Martin Oberhuber (Wind River) - [182350] Support creating remote project on Windows Drive > ********************************************************************************/ > > package org.eclipse.rse.internal.efs.ui; >@@ -179,8 +180,9 @@ > { > IWorkspaceRoot root = SystemBasePlugin.getWorkspaceRoot(); > >- String directoryName = directory.getName(); >- IProject editProject = root.getProject(directoryName); >+ String projectName = directory.getSystemConnection().getAliasName() + '_' + directory.getName(); >+ projectName = projectName.replaceAll("[/:*?\"<>|\\\\]", ""); //$NON-NLS-1$ //$NON-NLS-2$ >+ IProject editProject = root.getProject(projectName); > > try { > //FIXME re-enable for 3.0 -- just allowing editProject.create() throw for now to avoid NLS change >@@ -192,7 +194,7 @@ > // NLS.bind(Messages.CreateRemoteProjectActionDelegate_PROJECT_EXISTS, directoryName))); > // } > >- IProjectDescription description = root.getWorkspace().newProjectDescription(directoryName); >+ IProjectDescription description = root.getWorkspace().newProjectDescription(projectName); > String hostNameOrAddr = directory.getParentRemoteFileSubSystem().getHost().getHostName(); > String absolutePath = directory.getAbsolutePath(); > URI location = RSEFileSystem.getURIFor(hostNameOrAddr, absolutePath);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 182350
:
78388
| 78389