Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19769

Check if the project is already present in the workspace

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.3.0.Beta1
    • None
    • easymport
    • None

      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:

      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
      

            mistria@redhat.com Mickael Istria
            ljelinko@redhat.com Lucia Jelinkova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: