1
Suggestions and Requests / Diagram Refactorings (Extract)
« on: March 23, 2007, 08:30:20 am »
Hi!
Nowdays is very common to have refactoring functionality in the IDE, a refactoring I find particularly useful is "extract method", (http://www.refactoring.com/catalog/extractMethod.html)
I would love to have similar functionality in Activity Diagrams or State Diagrams, so that I could select a subset of the elements of the diagram, and click on "extract diagram", the EA would replace the elements of a the actitiy diagram with a composite element and automatically create a composite element with an internal activity diagram with all the elements that were previously in the main diagram.
Mmmm... it could also be used in Sequence & Communication diagrams!!!
(And we could also have an "inline diagram" that could do the opposite thing...
)
Other refactorings that would be nice to have could be:
-Extract Superclass (for Class Diagram)
-Extract Interface (for Class Diagram)
- Pull Up Field (for Class Diagram)
- Pull Up Method (for Class Diagram)
- Extract Class (for Class Diagram)
In fact it would be great if EA could have "diagram equivalents" for all the refactorings in http://www.refactoring.com/catalog/index.html, that would eliminate a lot of "grunt work"...
What do you think?
Nowdays is very common to have refactoring functionality in the IDE, a refactoring I find particularly useful is "extract method", (http://www.refactoring.com/catalog/extractMethod.html)
I would love to have similar functionality in Activity Diagrams or State Diagrams, so that I could select a subset of the elements of the diagram, and click on "extract diagram", the EA would replace the elements of a the actitiy diagram with a composite element and automatically create a composite element with an internal activity diagram with all the elements that were previously in the main diagram.

Mmmm... it could also be used in Sequence & Communication diagrams!!!


Other refactorings that would be nice to have could be:
-Extract Superclass (for Class Diagram)
-Extract Interface (for Class Diagram)
- Pull Up Field (for Class Diagram)
- Pull Up Method (for Class Diagram)
- Extract Class (for Class Diagram)
In fact it would be great if EA could have "diagram equivalents" for all the refactorings in http://www.refactoring.com/catalog/index.html, that would eliminate a lot of "grunt work"...

What do you think?