Book a Demo

Author Topic: Package Diagram Problem  (Read 4853 times)

Carlos Fabiano

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Package Diagram Problem
« on: August 27, 2008, 03:06:14 am »
Hi,

I have a problem with the package diagram. I put the packages in the project's browser in a random order, but the EA shows them alphabetically.

How can I keep them in the way I have configured?
« Last Edit: August 27, 2008, 03:24:19 am by cfgonsalves »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Package Diagram Problem
« Reply #1 on: August 27, 2008, 04:18:09 am »
Hi Carlos,

Try checking the Allow Free Sorting in the Project Browser group on the Tools | Options dialog. That should get you going.

David

PS: If you are having this problem through the API, check out the TreePos attribute of the Package class. I think this is the one you need to set. Remember to adjust other packages in the same bunch.

David
« Last Edit: August 27, 2008, 04:20:25 am by Midnight »
No, you can't have it!

Carlos Fabiano

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Package Diagram Problem
« Reply #2 on: August 27, 2008, 11:46:47 pm »
How do I fix this?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Package Diagram Problem
« Reply #3 on: August 28, 2008, 04:02:40 am »
I just reread your first message. It seems you are having this problem with package diagrams specifically.

I think there was a post some time ago regarding this. If I remember correct - you'll have to search the forum yourself to check - Sparx confirmed that there was a bug in the ordering that affected package diagrams only.

I do not know if this was resolved since. If you are not using build 832 (the current build at this time) you could always check the release notes on the history page, or you could try a newer build and see for yourself.

David
No, you can't have it!

Carlos Fabiano

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Package Diagram Problem
« Reply #4 on: August 29, 2008, 11:43:41 pm »
Hi Midnight,
      
I have a detail not mentioned.
I´m using an Oracle repository.
When I use a repository "eap", the order of the packages is OK, but the oracle repository don't work.
There is a bug in the system.
« Last Edit: August 30, 2008, 12:04:27 am by cfgonsalves »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Package Diagram Problem
« Reply #5 on: August 30, 2008, 01:13:22 am »
Hi again Carlos,

Something strange is definitely going on!

First, I suggest you check it out with build 832 if you can. Also try this with a sample project where you generate a new Oracle schema from a freshly-downloaded script.

If things persist you should definitely report this to Sparx. You could also send the sample project created above to Sparx, after transferring it to an EAP file.

While you're at it, try this, regardless of the EA build. Try extracting a package where this happens (the parent package of the package diagram, rather than one of the mis-numbered packages) to an XMI file. Include diagrams, although you do not have to include images. Do this for both the Oracle and EAP versions of the project.

Compare the above XMI streams to see what the position values are for the various package elements.

Please let us (and Sparx of course) know what you find out.

David
No, you can't have it!

Carlos Fabiano

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Package Diagram Problem
« Reply #6 on: September 04, 2008, 01:52:18 am »
Hi Midninght,

How are you???

I did the following tests:

1 - I created a new instance of the Database Oracle and execute the script from EA.

2 - I created a package parent with two children ("son 1" and "son 2")

3 - I ordened the "son 2" on the "son 1", but don´t worked.

4 - I exported XMI file and importing to the database EAP

5 - The ordination was equal to what I set it (son 2 and son 1)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Package Diagram Problem
« Reply #7 on: September 04, 2008, 03:46:10 am »
I think it's time to send a bug report to Sparx. Use the Report a Bug link below the Support link near the bottom of any forum page. If possible send a copy of your project in to Sparx. [You will need to use the Registered Users bug report form to attach a file. There is a link above the 'general' bug report page you'll see after following the above directions.] Remember to compress the file before submitting the report.
No, you can't have it!