superClass at eclipse IDE plugin Development - eclipse

I'm developing an eclipse IDE, I faced this plugin xml point.
<option category="elf.compiler.general"
id="elf.compiler.dialect.std.cpp"
name="C++ language standard"
superClass="gnu.cpp.compiler.option.dialect.std"/>
As I understand this plugin point is driven from "gnu.cpp.compiler.option.dialect.std", right?
this class provide c++ compiler versions.
my question is how to see what this class include exactly? and how to add more option to my IDE while still using this class? (lets assume this class have A,B,C options, I want to add D option, I can define my plugin with A,B,C,D options without using dialect.std class but I want to know if I can use Superclass and add new options).
Thanks

Related

Making org.eclipse.e4.ui.workbench.swt.E4Application work with org.eclipse.ui.IStartup

I am quite new to the RCP world and need some help.
I want to have E4Application work with IStartup. According to the documentation, I should use the "LifeCycleHandler" approach as in these 2 links.
How to make something on startup in Eclipse E4 application?
and
Eclipse e4 : IStartup extension not working
But I can't use them as I don't want to make code changes to my plugin. So I also went through the link below which talks about "Use the Compatibility Layer" but I could not really understand much. I would be great to have a solution to this since I can't modify the plugin code(may be by putting some plugin in the plugins dir etc).
My RCP is eclipse 4.6.2 based.
Observation: Eclipse 4.6.2 IDE is able to load my plugin but with version 4.6.2 based RCP, its not loading.
TIA
A pure e4 RCP using E4Application cannot use IStartup or any of the other org.eclipse.ui.xxxx extension points and classes. You will have to use the Life Cycle class and rewrite your code.
If you want to use org.eclipse.ui.xxx classes and extension point stick to the traditional Eclipse RCP (which uses 3.x compatibility mode).

Eclipse e4 migrating 3.x plugin to 4.x?

I have been working with Eclipse RCP for over a week now, and I've now been given an Eclipse plugin written in 3.x, which I need to migrate to 4.x. I'm using a book called Eclipse 4 RCP by Lars Vogel which has a small section on this, but I can't for the life of me figure out what I'm to do.
I'm trying to do this throught the use of the compatiblity layer. It mentions to add a couple of features for this (org.eclipse.rcp, org.eclipse.emf.ecore, org.eclipse.emf.common) and your ready to go, but I don't exactly know what I'm to do here. Like do I add these to the existing product file of the 3.x plugin I've been given, or do I create a separate e4 project and point to that. Many of the tutorials I read are a bit vague with the details and its a shame there's no proper step by step guide for beginners with this. Any help would be great.
Probably, you should be creating a separate e4 plug-in project for this. And where you have to configure your extensions/extension points in e4 ways.
Basically, like creating a new project.
If you want to migrate your Eclipse 3.x RCP application to the Eclipse 4 programming model, you can't directly reuse existing plugin.xml based user interface components, e.g. Views or Editors based on the definition in plugin.xml .
Components based on the plugin.xml file must be adjusted to avoid inheritance of Eclipse classes and to use the programming model based on #Inject . They also must be contributed to the application model.
Components which are not directly based on the plugin.xml file must be adjusted if they use Eclipse 3.x singletons, as for example Platform or PlatformUI , to access Eclipse API
you may want to take a look at this page: https://www.eclipse.org/community/eclipse_newsletter/2013/february/article3.php

Writing build.gradle in Eclipse

I want to write build.gradle in Eclipse and I need following support for that.
I need to write proper Groovy code to handle the complete build system and to deal with a certain file editing part. I want a support in eclipse which will show me all the methods available in dropdown for a particular class after typing classobject (methods dropdown). I want it to be the way it supports for Java programs.
I tried to add a couple of plugins in Eclipse, but they are not providing me this dropdown support. What plugin would work for this?

In eclipse, can I customize the delegate methods code template?

In Java Code Style -> Code Templates there is a "Delegate Methods" option under comments but not under code. I tried changing the "Setter body" template because I wanted to automatically create a bunch of delegated setter methods. However, it didn't work for delegates.
So can I add a Delegate Methods entry to the code part of Code Templates or do I need to do something else?
I am using Eclipse Indigo on Win 7.
To create getter and setter methods, select the field's declaration and invoke Source -> Generate Getter and Setter.
If you use a name prefix or suffix be sure to specify this in the Code Style preference page (Window > Preferences > Java > Code Style).
Another way to create getters and setters is using content assist. Set the cursor in the type body between members and press Ctrl+Space to get the proposals that create a getter or setter method stub.
You can do that but you need to develop a plugin using eclipse's refactoring API provided by the Java Development Tools (JDT) as follows:
Anyone who supports a programming language in an Eclipse-based IDE will be
asked sooner or later to offer automated refactorings - similar to what is
provided by the Java Development Tools (JDT). Since the release of Eclipse 3.1,
at least part of this task (which is by no means simple) is supported by a
language neutral API:the Language Toolkit (LTK). But how is this API used?
Look at this one for a start.

Eclipse content assist improvement

Is it possible to make content assistant work as Netbeans code completion during typing "new "? I mean that Netbeans suggests all possible classes that fit to the type requirements including extending classes. Eclipse suggest only exact classes that fit to the required type.
Here is example comparison:
http://img12.imageshack.us/img12/360/comparisons.jpg
The NB code-completion/content assist is driven by the projects, libraries and jars/folders that the project depends on. I would assume that Eclipse does something similar, so the first step to try to resolve this is to make sure your project has the classes on its project class path.