phpStorm Cant use diagrams

Hello,
when clicking the context button in a php file and focus on "diagrams" I only can select "show changes".
Where is the option for see the diagram at all?

Or do I have to use any 3-party tool...

Thank you,
Adrian.

0

Hi Adrian,

The behaviour was change a bit -- the Diagrams menu is not shown everywhere (like it was before), but on specific places.

Try invoking context menu when standing on class name.

0

Hello Andriy,
thank you. Yes, I already found the option when I reight click on the class name.

Though I am new to uml I am not sure what to do with this diagramms. Is it only for creating a graphical modell of all class dependencies? Or are class dependencies supported and shown automatically?

Thanky you,
Adrian.

0

Hi Adrian,

I'm not using Diagrams myself and have no clear idea what I can do with them as well. I can only direct you to the Help page which may help you with your questions:


But in any case -- Diagrams are not yet fully implemented in PhpStorm -- I guess searching here on forum and issue tracker for "diagram" may give you an idea what is still missing.

0

Hi again,
okay, thank you. I will do this research.
What I am really looking for is more refactoring tools like moving a function from one class to another with automatic change of the class names in code and so on.

Thank you and greetings,
Adrian.

0

The Move refactoring for methods is not yet supported for PHP - so it can't be available from diagram.

0

Hi Alexey,
ok.
But what can I do with diagrams right now?
Thank you, Adrian.

0

You mean visually?
Mostly review and edit class hierarches. Drawing/dragging arrows changes extends/implements clauses.
Invoke rename on stuff.

More features pending.

0

1) Yep, I have tried that with putting arrows and so on.
But:
Wouldn´t it be helpful if the arrow where automatically created? I mean, if you have a class A, that uses class Tools in several methods or functions, then this arrow could be created automatically. So one had an "online" possibility to see the dependencies.

2) Do you know if moving methods and function will be implemented soon?

Best regards, Adrian.

0

1) Just drop all related classes - i.e. folder - all existing "arrows" will be visible.

2) Well, we plan to work on this in about 6 months.

0

Hi,
okay, thanks a lot!
Sincerely, Adrian.

0

请先登录再写评论。