How i can create a toolbar for a specific perspective in rcp? - eclipse-rcp

I am very new to rcp. In my plugin, I have three perspectives and In a perspective, I have 4-5 views, I want to create a toolbar specific to the slected perspective. I searched a lot for this but unable to find any answer, please help me in this.

One solution is to create an extension using org.eclipse.ui.actionSets that contains a set of actions you want to be displayed in the tool bar when a specific perspective is selected. Then there is a extension point called org.eclipse.ui.perspectiveExtensions where you can associated a action set ID (the one you created) with a persepctive ID and that action set is only shown when the perspective is active. In terms of "creating your own tool bar" that is in clear. There is always only one toolbar but based on the perspective/view selection items can be hidden or active.

This thread is dead and the answer posted is no more valid. so it doesn't help me. please refer the link below.
This question is correct, on which no one is responding, after last response. The Last repose which is not correct for the current eclipse development, as actionSets is a deprecated API now. Below link clearly mentions that this is deprecated.
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_actionSets.html
I have same related question and created another thread, which addresses more than this question too. Hope that is helpful.
In RCP Eclipse(Neon) Development, how to enable a created perspective

Related

Annotating Issue in Altium

I am a beginner with Altium Designer. Trying to complete a project and while annotating the schematic, there are some components that the software just won't update. Check the screenshot, in the proposed designator it shows the same C?.
screenshot of the error
Thanks for your help.
In the Proposed Changes list, the far left tick-box locks the current designators.
Untick all the "C?" items and then click Update Changes List to annotate these components.

Adding Eclipse menu contribution to a group

I'm trying to tell a menuContribution's command to place itself inside a menu. (The menu is defined in one of the plug-in's dependencies)
I'm able to place an action with the deprecated API org.eclipse.ui.popupMenus by setting:
menubarPath: com.example.navigator.menu
However not with the new API element org.eclipse.ui.menus. I'm trying to set a menuCommand's:
locationURI: popup:com.example.navigator.menu
I created a plug-in to demonstrate what's happening:
Could it be that the 2 APIs cannot work together?
The problem was with the APIs;
action's menubarPath and a menuContribution's locationURI didn't seem to understand each other's "addressing". Or at least I couldn't figure it out.
It's weird that the Extension Wizard generates an extension that's using the deprecated API.

How can I duplicate a non-editor panel in Eclipse?

I had exactly the same problem another user (arghtype) is having here in this question's thread: How to enable duplicate tabs in Eclipse? (i.e. duplicate windows)
Although, it is only an answer post that doesn't necessarily achieve what we both want.
It recommends opening a separate, duplicated window, which is a bit resource heavy for what I need.
I wanted to formally ask this question in case anyone has the appropriate answer instead of a work-around or compromise, or we can open a feature request in the Eclipse work item tracker, and this way the answer and any history can become more apparent for this specific issue.
Also note I have tried the Menu options "Window" > "Show View" > "Other...", and then have selected the view/panel I wanted, with the current one in my UI both selected and unselected in different cases, and I still do not receive a duplicate panel.
I would also appreciate sources such as links to any documentation, or at least a screen shot with an answer, since I am very carefully not asking about the editor panel in the UI, which is commonly found as an issue on the internet.
To add, my specific case is using RTC 5.0.2 with Eclipse 4.2.2 (Juno), and I would like
multiple "Work Items" panels open for my workflow. One for overall reference, one for current, immediate work, and any more for what have you.
Another related source I found that all seem to speak about the similar, more prevalent issue, specifically concerning only the editor tab/panel:
How do you split a window/view in Eclipse IDE?
Edit:
I have opened an Eclipse Bug/Enhancement request for the UI here: Bug 471001 - Allow user to create duplicate panels in perspective view.
We will see how it is handled. Either my version is too old to have this feature, or it does not exist, and could prospectively be added.
So far without a firm answer, I have opened an Eclipse Bug/Enhancement request for the UI here: Bug 471001 - Allow user to create duplicate panels in perspective view.
We will see how it is handled. Either my version is too old to have this feature, or it does not exist, and could prospectively be added.

regarding gef selection

I am new to GEF. I would like to post some doubts here.
I have created a rectangle figure on the graphical editor. Now I am unable to select that
figure. In order to select a figure, do I need to use the edit policies and commands?
Also the delete,redo and undo actions can that all be used in a view without an editor?
Enabling selection is done using edit policies. Since you are new to GEF, you can check out my tutorial on the subject. You can also read more information from the sources I have found.
Good luck!

Learning Eclipse MDT-UML2 Sequence Diagrams

Are there any tutorials or documentation files for drawing Sequence Diagrams with Eclipse MDT-UML2?
I can't put a Lifeline on the page. It took me 10 minutes to figure out that I first have to make a big Iteraction, and then I can put Lifelines into it.
I can't figure out how to make the Participant box wider in the lifeline. Any name more than 4 characters is too wide for the box. When I do the obvious thing of clicking and dragging the handles, the box springs back to its original size.
I can add a Message by clicking "Message" in the pallette and click-dragging an arrow from line Lifeline to another. Now I have an arrow labeled "1: *". I've tried every way I can think of to change that name: double-clicking on it, shift-clicking, ctrl-clicking, changing Name in the properties.
Can anyone help?
As I understand it MDT-UML2 is in the very early stages, it may not work as it should always. Additionally, the sequence diagram is a newer one, see below. There were no tutorial I could find, but I did link to samples below. I also found a comment in the eclipse bug tracker for this feature:
Here are the most important issues from my side: moving of lifelines, create messages,
replies are causing strange behaviour (some kind of auto alignment). Moreover it
should be possible to give the messages names.
They say it is resolved, but you be the judge.
From the wiki (Note:What you want is UML2 Tools):
http://wiki.eclipse.org/MDT-UML2Tools
Interaction diagrams (in progress):
Sequence (new in Galileo)
This may not help, but here is a link to the samples: http://wiki.eclipse.org/images/3/3a/UML2Tools_samples.psf
The tutorial reference does not seem to cover the new stuff, just the class diagram.
http://www.vogella.de/articles/UML/article.html
Search stackoverflow for other open source tools to use. The MDT-UML2 is coming along and can be used for some stuff, especially simple DSMs/DSLs/UML Profiles, but for drawing easily there are a host of good tools. An ok thread: What's the best UML diagramming tool? or
https://stackoverflow.com/questions/390438/good-free-uml-tool-for-java-eclipse