How to Hide Eclipse editor while doing back ground processing - eclipse-plugin

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.

Related

Unable to find the persistence window in Intellij 14.1.4

I've been going through all the documents from JetBrains, but couldn't find the Persistence Window for my project so that I could auto generate the Pojo classes for the database tables without manually creating them.
Any help would be appreciated.
You can find any window using the Ctrl+Shift+A shortcut and typing in Persistence. This also tells you if there's any bindings to quickly open that window. Having done this, it doesn't have a keyboard shortcut.
From the menu you can access it by View → Tool Windows → Persistence
As #Bohuslav said in the comments, you need to add a JPA facet to the project for the window to be actionable.
Got it working, by enabling the persistence configuration. Went to persistence.xml which would be ideally located under the META-INF, and it would automatically ask you, whether to enable the persistence.
There after from View > Tool Windows, you could find Persistence Window.

Adding a third tab in Android studio xml editor

I want to write an Android Studio IDE plugin which will add a third tab (After "Design" and "Text" tab) in the XML file editor view.
What I am trying to accomplish is to have a different representation of the layout XML files.
I tried going through the files present under this page but I could not find anything useful.
Can anyone help me please ?
EDIT:
This screenshot shows what I am trying to do.
This third tab will show the layout in JSON format , the JSON being constructed by my plugin.
The main purpose of this tab being this : Once the user approves the JSON structure, the plugin will upload the JSON to my server to store my layout on the cloud.
I have gone through IntelliJ plugin creation process. But since I am building a plugin on top of Android's plugin, I am not able to find any good starting point.
If someone can point me to the source code for the XML layout editor view, I can work from there.
This solution works for me :) and I guess this is simple... you can now make you external tool and distribute for install. In my case when the ViewText windows is deactivated or loses focus, I just close the window automatically...

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

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