[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-6468) Enablement of JPA Generate Annotations takes way too long

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Fri Jun 18 07:56:46 EDT 2010


     [ https://jira.jboss.org/browse/JBIDE-6468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Geraskov updated JBIDE-6468:
-----------------------------------

    Attachment: simple setEnable Implementation.txt


The implementation should be very simple, like in attached "simple setEnable Implementation.txt".
There could be some problems with Jar files selection, could be fixed easily.

> Enablement of JPA Generate Annotations takes way too long
> ---------------------------------------------------------
>
>                 Key: JBIDE-6468
>                 URL: https://jira.jboss.org/browse/JBIDE-6468
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.1.1
>            Reporter: Max Rydahl Andersen
>            Assignee: Vitali Yemialyanchyk
>            Priority: Blocker
>             Fix For: 3.1.2, 3.2.0.M1
>
>         Attachments: JBIDE-6468_patch_20100615.zip, simple setEnable Implementation.txt
>
>
> the code in JPAMapToolActionDelegate.setEnabled is collecting all compilationunits instead of just looking at subtype.
>    When JBoss is hanging; it appears to be in the CompilationUnit Collector code - which is what we are seeing with Process Monitor where it is scanning the entire Workspace (I suspect).
> at org.hibernate.eclipse.jdt.ui.internal.jpa.collect.CompilationUnitCollector.addCompilationUnit(CompilationUnitCollector.java:86)
> at org.hibernate.eclipse.jdt.ui.internal.jpa.collect.CompilationUnitCollector.processJavaElements(CompilationUnitCollector.java:153)
> at org.hibernate.eclipse.jdt.ui.internal.jpa.collect.CompilationUnitCollector.processJavaElements(CompilationUnitCollector.java:168)
> at org.hibernate.eclipse.jdt.ui.internal.jpa.collect.CompilationUnitCollector.processJavaElements(CompilationUnitCollector.java:135)  JBoss DevStudio is unresponsive
> at org.hibernate.eclipse.jdt.ui.internal.jpa.actions.JPAMapToolActor.processJavaElements(JPAMapToolActor.java:333)
> at org.hibernate.eclipse.jdt.ui.internal.jpa.actions.JPAMapToolActionDelegate.setEnabled(JPAMapToolActionDelegate.java:101)
> at org.eclipse.ui.internal.handlers.HandlerProxy.setEnabled(HandlerProxy.java:233)
> at org.eclipse.core.commands.Command.setEnabled(Command.java:857)
> at org.eclipse.ui.menus.CommandContributionItem.isEnabled(CommandContributionItem.java:918)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list