Bug 192290 - no reverse engineering output if uml project name contains :: or ( or )
no reverse engineering output if uml project name contains :: or ( or )
Status: STARTED
Product: uml
Classification: Unclassified
Component: Reverse Engineering
7.0
PC Windows Vista
: P3 (vote)
: TBD
Assigned To: issues@uml
issues@uml
: UI, USABILITY
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-22 16:00 UTC by stadelma
Modified: 2010-11-29 15:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments
the log file of NB 6.9.1 for the reported UML error (154.03 KB, text/plain)
2010-11-22 16:22 UTC, stadelma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stadelma 2010-11-22 16:00:48 UTC
I've loade and built successfully with Netbeans 6.9.1 mavens doxia, sources right out of svn.

If you open the maven/doxia/doxia/trunk 
one can find many related projects open for the doxia project
i.e.
Doxia
Doxia :: APT Module
Doxia :: Book Component
Doxia :: Confluence Module
Doxia :: Core
Doxia :: FML Module
Doxia :: FO Module
Doxia :: iText MOdule
Doxia :: Latex Module
Doxia :: Logging API
Doxia :: Maven Plugin (maven-plugin)
Doxia :: RTF Module
Doxia :: Simplified DocBook Module
Doxia :: Sink API
Doxia :: Test Documents
Doxia :: TWiki Module
Doxia :: XDoc Module
Doxia :: XHTML Module

As per UML reverese engineering help, RMB down and select reverse engineer.
The widget opens and one can see that new UML project has a project name of 

i.e.
Doxia :: Maven Plugin (maven-plugin)
to be worse

On OK nothing is generated !

However if the user would be warned, or if the widhet would do a bit better and remove a) the ":"'s AND b) the "(" and c) the ")"

a new UML project would be created and elments would be analysed.

a name like
Doxia Maven Plugin-Model
generates a new UML project node
Doxia Maven Plugin-Model


Looking at the sub nodes of "Doxia Maven Plugin-Model" one can see
Model
  java
  org
  String
  void
Diagrams
Imported Elements

BUT ALL ARE EMPTY when seen from the project window

seen from the file window, there is "Doxia Maven Plugin-Model" there and shows
nbproject
Doxia Maven Plugin-Model
Doxia Maven Plugin-Model.ettm
UML_2.0EMBT.dtd

However NO DIAGRAMs, 
NO CLASS DIAGRAM, 
NO SEQUENCE DIAGRAM, 
NO ACTIVITY DIAGRAM 

is generated. Maybe I am expecting too much and it is my job use the data in the xml files to draw a class diagram. I think if that is the case then this is a bit meager for our UML Plugin. But if it is an error - I have reported it here with.

Josef
Comment 1 stadelma 2010-11-22 16:22:08 UTC
Created attachment 103194 [details]
the log file of NB 6.9.1 for the reported UML error
Comment 2 javydreamercsw 2010-11-23 13:30:59 UTC
The empty project has nothing to do with the name of the project. See issue #171788. About the name issue that seems to be a Maven integration issue as UML uses the project name reported by the project. Changing to Maven for review.
Comment 3 Jesse Glick 2010-11-23 19:10:10 UTC
No clue what "the name issue" is. If you have steps to reproduce some problem that do not involve UML, let me know.
Comment 4 javydreamercsw 2010-11-24 18:06:20 UTC
The issue was the :: in the Maven Name. I have a fix replacing :: with -. Is that acceptable? Or should just strip the first part (i.e. Doxia :: APT Module
to APT Module)

What are your thoughts?
Comment 5 Sergey Petrov 2010-11-24 19:48:58 UTC
Just a note, if you are asking Jesse, it' unlikely if he is in issues@uml list and also he is not in cc. Can't say regarding issue if it will work it may be ok as it's better then exception anyway.
Comment 6 davebastow 2010-11-25 14:03:34 UTC
With regards to fixing names containing '::'

I think I would prefer a single ':' rather than changing to '-', seems to keep things a little more consistent.  But, if single ':' are bad too, then a hyphen will do.  

I definitely prefer either of these two options over stripping the whole first section off (in this case 'Doxia ::').  Although it may make sense in this instance, it would be hard to predict what 'effect' this will have in another context.  Consider if this project had been named "Maven Plugin (maven-plugin) :: Doxia" instead.  Perhaps a less likely scenario, but by no means impossible.

That's my thoughts anyway.

-David
Comment 7 Michel Graciano 2010-11-25 14:21:39 UTC
Have you tested it against 7.0 daily builds? IF I am not wrong some changes was made about project names and maybe it could be already fixed (or not). I just can't found the issue about it to make sure if it is related or not.
Comment 8 javydreamercsw 2010-11-26 01:07:59 UTC
Thanks Michael, I'll give it a try with 7.0 Beta platform.
Comment 9 javydreamercsw 2010-11-29 15:04:36 UTC
I tried with build 201011280001 with this results:

Here the project was already opened (from previous IDE shutdown):

SEVERE: Cannot create folder Doxia :: Logging API-c593aeb7 in Z:\Netbeans\community-uml\build\testuserdir\config (Z:\Netbeans\community-uml\build\testuserdir\config\Projects\extra\Doxia :: Logging API-c593aeb7). 
SEVERE: Cannot create folder Doxia :: Logging API-c593aeb7 in Z:\Netbeans\community-uml\build\testuserdir\config (Z:\Netbeans\community-uml\build\testuserdir\config\Projects\extra\Doxia :: Logging API-c593aeb7). 
SEVERE: Cannot create folder Doxia :: Logging API-c593aeb7 in Z:\Netbeans\community-uml\build\testuserdir\config (Z:\Netbeans\community-uml\build\testuserdir\config\Projects\extra\Doxia :: Logging API-c593aeb7). 
SEVERE: Cannot create folder Doxia :: Logging API-c593aeb7 in Z:\Netbeans\community-uml\build\testuserdir\config (Z:\Netbeans\community-uml\build\testuserdir\config\Projects\extra\Doxia :: Logging API-c593aeb7). 
SEVERE: Cannot create folder Doxia :: Logging API-c593aeb7 in Z:\Netbeans\community-uml\build\testuserdir\config (Z:\Netbeans\community-uml\build\testuserdir\config\Projects\extra\Doxia :: Logging API-c593aeb7). 

Closing and reopening caused the mentioned error anyway.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo