Eclipse EMF Feature Model Tool Can't find OR and Alternative - eclipse

I'm trying to work with eclipse EMF Feature Diagram Model Editor, I'm able to right click individual lines and turn them from mandatory to optional, and back again, but I can't for the life of me figure out how to use the OR or Alternative features which you can see in the key on the top right of the image below. It would be amazing if anyone knew how to do it as I've been racking my brain for ages trying to figure it out.

Try to drop your new feature on the line directory which has already drawn between parent and child on the diagram. (Not to drop boxes) You could see OR and XOR menu by clicking the line!

Related

Configuring IntelliJ workspace views

Newb alert: moving from Eclipse to IntelliJ
I think what I want is "simple", but looking at menus, help and doc hasn't found it. (I did visit their help and website links; I'm probably not looking for the right thing.)
For my main code editing experience, I like to have 3 main window panes:
Right side, large main area: source code editor
Left, upper part: project files in a browsable outline
Left, lower part: structural view of the current class I'm editing (method names, member fields, etc)
For IntelliJ, I can get the Project Structure on the left, OR the Structure of the individual class, but I'm having trouble getting the left half of the screen to show both the Project and Class hierarchy.
I've tried to dragging and dropping, like from Eclipse, but that doesn't seem to work the say it did in that other IDE. (not arguing that it should, just something to try)
I think there are some general concepts that I might be missing. And when I use IntelliJ help or Google for things "view", etc, I'm getting some other meaning of the word.
General questions:
How do it (or CAN I?) generally arrange the IntelliJ IDE to look the
way I like? I'm happy to do some reading, but haven't seen this in
the table of contents.
Is it done by clicking and dragging?
Or maybe it's that IntelliJ just uses different verbiage to describe these IDE elements, and if you now the correct language, then maybe Google
promptly brings up the answer?
Any other Eclipse -> IntelliJ IDE config advice would also be welcome.
This is really easy to achieve. Instead of dragging the title bar of your panel, drag the button that opens the panel (see my screenshot). You can fully customize your view but dragging those buttons to either of the 4 panels (right, down, left up and left down).
Since you're asking for more advice on migrating, here's my approach to learn IntelliJ shortcuts as an Eclipse user. It's my blog, so if it is seen as advertising, I will remove it.

ReSharper 8 Plugin Development Solution Explorer Panel Indicator

I want to write a ReSharper 8 plugin that will give a visual indication (icon maybe?) to the user in solution explorer panel if the number of projects in a solution exceeds a configurable amount.
Can a ReSharper plugin accomplish this or must I find another way? Must I create a SolutionComponent?
There's actually a set of things that you need to make this happen:
You need to add a visual element to be placed somewhere. I believe you can define an icon in Actions.xml, but as I understand, the solution explorer tool bar contains only buttons, though I could be wrong. An alternative approach would be to actually decorate the solution icon the way that source control plugins do. There are also other approaches, e.g. StatusBarIndicator.
A solution component is essentially some component that exists only while there's a solution loaded. What you need is different - a mechanism of monitoring solution changes and project model changes.

How to add views to Show In menu for particular file types

I use an older plugin called Veloeclipse for editing Velocity templates in Eclipse. There's been no development on this since 2009, which isn't a problem because it's mainly just for syntax highlighting and format validation. The really annoying thing about it, however, is that when I try to do Show In to view the current Velocity template within my Package Explorer or Project Explorer, the only available option is Properties. That's not really useful. I really need to be able to get to the file in one of the regular explorer views.
So I have sort of two questions:
Is there a way to configure this without having to monkey with any code? A configuration file or something? I've grepped through my Eclipse installation and haven't seen anything, but I'm hoping that there's something I'm missing.
So assuming that the answer to my first question is no, how do I go about modifying the plugin code so that it will show more than the Properties view in the Show In menu? Most of what I found on the plugin development wiki comes from the other direction: how to make your view or perspective appear in the Show In menu.
Any help with this would be hugely appreciated!
Try to check the plugin source code. it might do something different than other editors. What I mean is that the show in menu item that you have there is not the usual extension point but a hard coded context menu option.

Creating an Eclipse plug-in to display content assist regardless of cursor location

I'm working on some reflection stuff using Java across XML files. The process would be made much faster and less prone to error if I could get content assist to behave like a tree in a small window off to the side, but more than by my current cursor location.
My question is can this really be done without reinventing the wheel too much? Essentially I want to display a list of classes, choose a class, then drill down a TreeView similar to the outline view Eclipse has for a current open file and at some point I click a button below and it generates the desired XML formatted text I would have typed manually, this is generated based on whatever in the tree I have highlighted.
I've designed and begun work on the front and back end, but the piece that keeps eluding me is harnessing Eclipse's content assist to gather a list of practically anything I could possibly call in a given project.
Can this be done? I've been combing Eclipse's documentation for a few days and fighting with the source download dying halfway repeatedly.
I am not 100% if that's it but I had an eclipse plugin with spider in it's name in mind, which does what you described.
Maybe it is this one: http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=202
Furthermore when writing Eclipse plugins, it is useful to press ctrl+shift+f1 (eclipse plugin spy) once having worked in the pde this should be possible.
It shows you info about all possible extensionpoints refering to your current view.

How to wire up an editor to the location cursor icons?

I have built a graphical editor as an Eclipse plugin. Users may zoom into and pan about the graphical image.
I would like to employ the Back and Forward arrow icons in the Eclipse icon bar to step back and forth through the graphical image, in a similar manner to what is already possible in textual editors. All of my references go quiet on this subject
All clues or better references are most welcome.
M.
I think you need to define a RetargetAction
See an example at
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/rcp_actions.htm
(I haven't done this myself, but it sounds right...)
See also http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/wrkAdv_retarget.htm