Book a Demo

Author Topic: Accelerator add-in for EA for creating classes  (Read 4120 times)

Alex@Net

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Accelerator add-in for EA for creating classes
« on: March 30, 2010, 01:29:30 pm »
Hello!

I've created an add-in for EA and think that it can be useful for other members of the community. The add-in simplifies class creation - it creates new class from the string that contains class name, properties and methods.

So this:

Node ChildNodes:Node[] Name:string AppendChild(node:Node):Node

will create:

Class Node
  + ChildNodes:Node (array)
  + Name:string
  + AppendChild(node:Node):Node

Parser supports default values and visibility modificators. For example:

Window Title:string="Default" Show() #Close()

will create:

Class Window
  + Title : string = "Default"
  + Show()
  # Close()

Project page and download link:

http://www.alexatnet.com/content/accelerator-add-enterprise-architect

I hope, it will be useful.

More pictures and video are on the way.

Regards,
Alex




mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Accelerator add-in for EA for creating classes
« Reply #1 on: March 30, 2010, 01:34:21 pm »
Hi Alex,

Be sure to submit an entry for your addin on the community site (http://community.sparxsystems.com/) under the resources section.

The community site is a great place for addin developers to inform the community about their innovations!
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Accelerator add-in for EA for creating classes
« Reply #2 on: March 30, 2010, 06:27:33 pm »
Hi Alex
This is good, but one complaint
When a class is generated it placed in the top left of the diagram.
If you then move this and tthen create another both are moved to the top left of the diagram - one on top of the other

Graham
Using V12

Alex@Net

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Accelerator add-in for EA for creating classes
« Reply #3 on: March 31, 2010, 02:34:20 pm »
Graham,

Thank you for feedback.
Unfortunately, the method I use for adding elements on the diagram resets element positions to the previously saved state. I'm looking for solution here. As temporary workaround you can try to save the diagram each time when you add the class with the add-in.

Thanks,
Alex
« Last Edit: March 31, 2010, 02:34:44 pm by alexatnet »

Alex@Net

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Accelerator add-in for EA for creating classes
« Reply #4 on: April 01, 2010, 11:32:14 am »
Graham,

I've fixed this issue by saving the diagram before adding new class on it, as suggested in related thread.

mrf,

I definitely will add it a little bit later, after receiving a positive feedback.

Thanks,
Alex

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Accelerator add-in for EA for creating classes
« Reply #5 on: May 05, 2010, 05:51:57 pm »
Just downloaded the latest but cannot get the apply button to become available
I get the addin dialog box and type in the class details but the apply button does not become available.

Graham
Using V12

Alex@Net

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Accelerator add-in for EA for creating classes
« Reply #6 on: May 09, 2010, 12:09:38 am »
Graham,

It should display error description, something like:
Invalid character after class space. Error context: "asdf :"

What exactly you are typing in the "Input string:" field?

BTW, I'll answer faster if you contact me directly via email alex.netkachov at gmail.com or through comments on my site.

Thanks,
Alex
« Last Edit: May 09, 2010, 12:11:10 am by alexatnet »