[jbosstools-issues] [JBoss JIRA] (JBIDE-19769) Check if the project is already present in the workspace

Lucia Jelinkova (JIRA) issues at jboss.org
Thu May 14 04:33:19 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-19769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067937#comment-13067937 ] 

Lucia Jelinkova commented on JBIDE-19769:
-----------------------------------------

I tried to reproduce it today but it seems to work on nightly build now. 

> Check if the project is already present in the workspace
> --------------------------------------------------------
>
>                 Key: JBIDE-19769
>                 URL: https://issues.jboss.org/browse/JBIDE-19769
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: easymport
>            Reporter: Lucia Jelinkova
>            Assignee: Mickael Istria
>             Fix For: 4.3.0.Beta1
>
>         Attachments: existing-projects.png
>
>
> At the moment the project is attempted to import even if it is already in the workspace. It is OK that it is detected but it should be marked as already imported in the wizard table and it should not be imported again. 
> At the moment, this is logged into Error log:
> {code}
> org.eclipse.ui.internal.wizards.datatransfer.CouldNotImportProjectException: Could not import project located at /home/ljelinko/workspaces/workspace/RemoteSystemsTempFiles
> 	at org.eclipse.ui.internal.wizards.datatransfer.OpenFolderCommand.toExistingOrNewProject(OpenFolderCommand.java:294)
> 	at org.eclipse.ui.internal.wizards.datatransfer.OpenFolderCommand.importProjectAndChildrenRecursively(OpenFolderCommand.java:222)
> 	at org.eclipse.ui.internal.wizards.datatransfer.OpenFolderCommand.searchAndImportChildrenProjectsRecursively(OpenFolderCommand.java:173)
> 	at org.eclipse.ui.internal.wizards.datatransfer.OpenFolderCommand.importProjectAndChildrenRecursively(OpenFolderCommand.java:230)
> 	at org.eclipse.ui.internal.wizards.datatransfer.NestedProjectsWizardPage$10.run(NestedProjectsWizardPage.java:258)
> 	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
> Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/RemoteSystemsTempFiles' already exists.
> 	at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:313)
> 	at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:300)
> 	at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:51)
> 	at org.eclipse.core.internal.resources.Project.create(Project.java:268)
> 	at org.eclipse.core.internal.resources.Project.create(Project.java:252)
> 	at org.eclipse.ui.internal.wizards.datatransfer.OpenFolderCommand.createOrImportProject(OpenFolderCommand.java:331)
> 	at org.eclipse.ui.internal.wizards.datatransfer.OpenFolderCommand.toExistingOrNewProject(OpenFolderCommand.java:285)
> 	... 5 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list