Is it possible to dock a UML diagram like a tool window? - intellij-idea

I use the IntelliJ database plugin's ability to draw a diagram of a database schema.
Unfortunately, by default, the diagram functionality seems to lay out diagrams as code editor panes.
I don't want to split the editor pane - I want to dock the diagram, like a tool window - so I can control it and lay it out the way I want like any other tool window.
Is there a way to dock database diagrams into a tool window?

Not possible, as per #CrazyCoder.
https://youtrack.jetbrains.com/issue/IDEA-178091

Related

Managing IntelliJ Tool Windows, how to

Currently my IntelliJ shows amongst other things
How do i decide
What tool windows are shown
Where they are shown
Those things are called Tool Windows, and you can find them at View > Tool Windows.
To disable some of them, you can install the plugin ToolWindow Manager and disable one by one.
You can enable/disable all tool windows in Settings > Appearance > Show tool window bars
You can find more information about them here.
These are called "Tool Windows". If you right click on them it shows a menu that at the bottom has a "Hide" option. I notice some of them can't be hidden, but you can drag them to other places that are out of your view. For example, you can drag them from the bottom to the side. You can also drag to answer your second question.

Editor context Menu - Eclipse-RCP

I have an Eclipse RCP application. I have created an Editor. There are few context menu (default), when I right click on the Editor. I have not created these menus.
Please let me know, How to remove the context menu of the Editor?
It needs different approach by which editor you extends.
Let me know What you extends, than I can answer more efficient one.
In general way:
IWorkbenchParSite#registerContextMenu(...) will be used, So find where calls that, override it. It is not recommend. Because by doing this, Menu Extensions which is contributed for your editor will not work anymore.
If you mean the system menu that appears on editor tabs and view tabs, that menu is provided by the presentation (2.1, Classic, Default, etc). There is no tweak to simply modify it.
The 2 ways to remove it would be:
write your own presentation, using
the
org.eclipse.ui.presentations.StackPresentation
API and matching extension point.
Writing a presentation is a involved
undertaking.
Change the internal classes in the
org.eclipse.ui.workbench plugin
and patch that plugin in your RCP
app.
If you use Text or StyleText you will get the system default menu (cut,copy,paste, maybe something about encoding or input). If you are not going to supply your own menu, simply create an empty SWT Menu and set it:
Menu emptyMenu = new Menu(text);
text.setMenu(emptyMenu);
Eclipse also has a text editing framework, if you need more than a basic text box you should check it out. http://wiki.eclipse.org/The_Official_Eclipse_FAQs#Text_Editors

How to Hide Eclipse editor while doing back ground processing

How to Hide Eclipse editor while doing back ground processing, means
How to do some working pro-grammatically on Eclipse editor without showing it to end-user.
I am working on UML diagram. Activity Diagram gets jumbled on editor when making pro-grammatically, Then I call 'Arrange Selection' action to arrange Activity, it works properly. Now I need to save the images of all UML diagrams on the fly but running as a background processing; editor should not be opened to the user but 'Arrange Selection' code requires editor to be opened & diagram elements should be selected e.g.
org.eclipse.gmf.runtime.diagram.ui.actions.internal.ArrangeAction.createArrangeSelectionAction(IWorkbenchPage workbenchPage)
How can I achieve this.
Please tell if this is possible??
Thanks in advance
Kishore
You can run background jobs in the Eclipse IDE.
In Eclipse Help, see the Platform Plug-in Developer Guide > Programmer's Guide > Runtime overview > Concurrency infrastructure for an explanation and examples on how to create Eclipse background jobs.

How can I put an IEditorPart in a modal dialog?

(I'm something of an Eclipse newbie, so apologise for any dumbness on my part...)
I have a number of editors (derived from IEditorPart) in my RCP app, and a requirement has arisen that one particular editor needs to be also available in a modal dialog box (along with some extra controls) opened by one of the other editor classes. The editor to be embedded consists of the main viewer control, toolbar, and a couple of dozen helper classes (label providers, comparators, etc).
The options before me appear to be:
Find a way to put an editor area, IWorkbenchWindow-style, into a (JFace or SWT) Dialog.
Not had much luck searching for how to do this
Create a new WorkBenchWindow with a Perspective that just the editor area visible, and no views. Make this modal.
On trying this, the new window seemed to inherit things (menus etc) from its parent window.
Refactor the editor in question so all of it now resides on a single control, then embed this control in both the editor and the dialog.
Potentially time-consuming, given the number of places the helper classes refer back to the main editor object.
If it turns out that this is a truly perverse and anti-idiomatic thing to want to do, in Eclipse terms, can you suggest a wiser course of action?
Thanks
EditorParts are meant to be inside workbenchwindows. There is a lot of code that depends on this behaviour. So I would suggest not to do (1). If the result is acceptable (a workbench window, which is modal), the easier way is to hang on to (2).

Diagramming tool for WPF

I wish to create a diagram similar to VS.NET class diagram.
I have seen Sukram's article on codeproject.com, called DiagramDesigner. But I have found this solution a little difficult to implement, I want the control with + and - buttons for expanding and collapsing.
Are there any vendors of a custom control similar to VS.NET Class diagram designer. Any ready solutions available?
Click of + the child nodes should expand. Click of - these nodes should minimize.
I have also seen Sacha Barber's spider tree control. But this too does not suit my requirement.
Have you looked into VS built in diagramming engine. You would be able to create your own DSL to define how you want your diagram to look and interact. You would then use VS's built in code gereration tools to generate the code and XAML you want.
Check out this webcast if you want to see a demonstration.