how Can I put the ToolWindow in the middle of IntelliJ? - intellij-idea

I am working on a plugin on IntelliJ.
ToolWindow on IntelliJ Plugin have a property anchor which we can put our ToolWindow on left/right/bottom of IntelliJ. But I am willing to put a ToolWindow or something like that in the middle of IntelliJ(the editor ToolWindow place), just as the picture shows. How can I do it on IntelliJ?
Or How the editor ToolWindow do like that? I am trying find how IntelliJ do in source code but got nothing.
I would appreciated if any help useful.

The middle area of the IntelliJ user interface is always occupied by editor tabs. An editor tab is not a toolwindow, and it's not possible to place a toolwindow in the middle of the UI.
You can place your own component in an editor tab if you implement the FileEditorProvider interface.

Related

How to make IntelliJ display the Javadoc of autocompletion suggestions?

IntelliJ display Java code auto-completion suggestions in a drop-down menu after pressing CtrlSpace. All other IDEs manage to display the corresponding Javadoc if available. How to get IntelliJ to do that?
How to see JavaDoc in IntelliJ IDEA? refers to displaying it on a mouse hover event whereas I'm missing the Javadoc from code-completion suggestions.
Once you put a dot and the suggestions appear, press F1 (which is the default shortcut for "Quick Documentation" in most keymaps). The documentation for the currently selected method then appears as a card as show in the image. Then you can either use the up/down arrow keys or start typing the method name to select it. The documentation card will reflect accordingly.
You can also click on the pin icon on top right of the documentation card to expand it if required.

How to change indicator style of the current editor window in IntelliJ or WebStorm?

By default, currently opened editor window is indicated via underscoring its name on the editor window navigation tab on tap in IntelliJ (or WebStorm).
How can I change indication style from underscoring to something else, for example highlighting the current tab, etc. ?
P.S. I am talking about changing indication styling of the place in red eclipse in the pic.

Eclipse Plugin Development: Open a popup when marked text is selected in Eclipse TextEditor

I want to write a listener which opens a popup when a marked text (marked using custom IMarker) is selected in Eclipse TextEditor.
How to achieve this?

Pop-up menu is not fully visible in IntelliJ IDEA

I am just evaluating IntelliJ IDEA. Installed it with default procedures.
I created a simple Spring project and when I right click on the project, not able to see the the bottom part of the pop up menu. The issue is because of my laptop screen's height is less and could not fit the entire set of pop-up menu items.
In eclipse there is a drop down arrow, so that I can scroll to the menu items, which do not fit in the screen. How can I get the similar eclipse functionality in IntelliJ?
Well, you are only missing one useful feature (Genereate Java code from wsdl). I would ignore it unless you need to generate such code.
If you want to run this generation you can do this with Ctrl + Shift + A (and start typing feature name)
//btw, it is better to make code generation in maven anyway

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