I was wandering if there are special annotations to get around the
plugin.xml hazzle. Here is a little example:
I would like to add a view in my new plugin. So what I do is: create a
viewpart and add an extension in my plugin.xml:
package de.akquinet.helloworld;
public class AddressBookView extends ViewPart {
//....
<view
class="de.akquinet.helloworld.AddressBookView"
id="de.akquinet.helloworld.AddressBook"
name="Addresses">
</view>
No this reduntant information why not just annotate the ViewPart and let
some plugin do the magic and add the information to the extension registry:
package de.akquinet.helloworld;
@VIEWPARTID = "de.akquinet.helloworld.AddressBookView"
@VIEWPARTNAME = "Addresses"
public class AddressBookView extends ViewPart {
//....