[JBoss JIRA] (JBIDE-19769) Check if the project is already present in the workspace
by Lucia Jelinkova (JIRA)
Lucia Jelinkova created JBIDE-19769:
---------------------------------------
Summary: 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
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)
10 years, 11 months
[JBoss JIRA] (JBIDE-19768) Add possibility to select which nested projects to import
by Lucia Jelinkova (JIRA)
Lucia Jelinkova created JBIDE-19768:
---------------------------------------
Summary: Add possibility to select which nested projects to import
Key: JBIDE-19768
URL: https://issues.jboss.org/browse/JBIDE-19768
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: easymport
Affects Versions: 4.3.0.Alpha2
Reporter: Lucia Jelinkova
Priority: Critical
At the moment, all nested projects are imported - it would be useful to have the possibility to select which projects one wants to import.
Also, sometimes projects contain test data that are detected as projects - this feature would help also in this case.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months
[JBoss JIRA] (JBIDE-19767) Workspace root and WebContent are detected as projects
by Lucia Jelinkova (JIRA)
Lucia Jelinkova created JBIDE-19767:
---------------------------------------
Summary: Workspace root and WebContent are detected as projects
Key: JBIDE-19767
URL: https://issues.jboss.org/browse/JBIDE-19767
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: easymport
Affects Versions: 4.3.0.Alpha2
Reporter: Lucia Jelinkova
When I try to import Dynamic Web Project, two other folders are discovered as projects - the workspace root and the WebContent directory. The directory is also wrongly described as OSGI bundle.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months
[JBoss JIRA] (JBIDE-19761) Hibernate Tools DelegatingReverseEngineeringStrategy not working
by Koen Aers (JIRA)
[ https://issues.jboss.org/browse/JBIDE-19761?page=com.atlassian.jira.plugi... ]
Koen Aers updated JBIDE-19761:
------------------------------
Sprint: Sprint #3 May 2015
> Hibernate Tools DelegatingReverseEngineeringStrategy not working
> ----------------------------------------------------------------
>
> Key: JBIDE-19761
> URL: https://issues.jboss.org/browse/JBIDE-19761
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Environment: Eclipse Luna
> Reporter: Luis Lima
> Assignee: Koen Aers
> Priority: Blocker
> Fix For: 4.1.3.Final, 4.3.0.Beta1
>
>
> I'm using the HibernateTools plugin (latest version) with Eclipse Luna and keep getting an error when trying to use my own reverse engineering implementation class. Every time I try to generate my classes I get this exception from Eclipse:
> org.hibernate.console.HibernateConsoleRuntimeException: java.lang.IllegalAccessException: Class org.jboss.tools.hibernate.proxy.ServiceProxy can not access a member of class org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with modifiers "private" java.lang.IllegalAccessException: Class org.jboss.tools.hibernate.proxy.ServiceProxy can not access a member of class org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with modifiers "private"
> Seems there's some incompatibility with ServiceProxy and the ReverseEngineeringStrategyUtil class as it seems to be trying to access a method that's no longer private. The stacktrace doesn't really provide any info other than this so hopefully this is a known issue and someone might be able to suggest how to fix it.
> It's not related to my code since right now my ReverseEngineeringStrategy implementation is doing nothing ie:
> @Override
> public String tableToClassName(TableIdentifier tableIdentifier){
> return super.tableToClassName(tableIdentifier);
> }
> My libraries are 4.3 (4.3.1.CR1 more specifically) and I also have the console configuration set to that version.
> Here's my maven dependency:
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-tools</artifactId>
> <version>4.3.1.CR1</version>
> </dependency>
> And always get the error.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months
[JBoss JIRA] (JBIDE-19761) Hibernate Tools DelegatingReverseEngineeringStrategy not working
by Koen Aers (JIRA)
[ https://issues.jboss.org/browse/JBIDE-19761?page=com.atlassian.jira.plugi... ]
Koen Aers commented on JBIDE-19761:
-----------------------------------
Hi Luis,
First of all, thanks a lot for the excellent upload that allowed to reproduce the described issue very easily. It should be listed as a model for everybody.
On the other hand, I believe that you have an error in your code generation configuration definition. It uses the class "org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil" as the 'reveng.strategy' property. Replacing this with the class ''util.ReverseEngineering" that you have created in your project removes the problem and calls the appropriate class.
Of course we can do a better job in not allowing classes that don't inherit from "org.hibernate.cfg.reveng.ReverseEngineeringStrategy" to be used for the 'reveng.strategy'. I will create a separate issue for this enhancement.
Can you please confirm that my findings are correct?
Cheers,
Koen
> Hibernate Tools DelegatingReverseEngineeringStrategy not working
> ----------------------------------------------------------------
>
> Key: JBIDE-19761
> URL: https://issues.jboss.org/browse/JBIDE-19761
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Environment: Eclipse Luna
> Reporter: Luis Lima
> Assignee: Koen Aers
> Priority: Blocker
> Fix For: 4.1.3.Final, 4.3.0.Beta1
>
>
> I'm using the HibernateTools plugin (latest version) with Eclipse Luna and keep getting an error when trying to use my own reverse engineering implementation class. Every time I try to generate my classes I get this exception from Eclipse:
> org.hibernate.console.HibernateConsoleRuntimeException: java.lang.IllegalAccessException: Class org.jboss.tools.hibernate.proxy.ServiceProxy can not access a member of class org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with modifiers "private" java.lang.IllegalAccessException: Class org.jboss.tools.hibernate.proxy.ServiceProxy can not access a member of class org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with modifiers "private"
> Seems there's some incompatibility with ServiceProxy and the ReverseEngineeringStrategyUtil class as it seems to be trying to access a method that's no longer private. The stacktrace doesn't really provide any info other than this so hopefully this is a known issue and someone might be able to suggest how to fix it.
> It's not related to my code since right now my ReverseEngineeringStrategy implementation is doing nothing ie:
> @Override
> public String tableToClassName(TableIdentifier tableIdentifier){
> return super.tableToClassName(tableIdentifier);
> }
> My libraries are 4.3 (4.3.1.CR1 more specifically) and I also have the console configuration set to that version.
> Here's my maven dependency:
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-tools</artifactId>
> <version>4.3.1.CR1</version>
> </dependency>
> And always get the error.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 11 months