OT/Equinox Adaption of OT/Equinox powered plugins and Teams? [message #642839] |
Thu, 02 December 2010 16:37  |
Eclipse User |
|
|
|
Check out the following source from the OT svn:
http:// dev.eclipse.org/viewcvs/viewvc.cgi/branches/maintenance/Ecli pse_3.6_OTDT_0.7/plugins/org.eclipse.objectteams.otdt.jdt.ui /src/org/eclipse/objectteams/otdt/internal/ui/javaeditor/Jav aEditorAdaptor.java?view=markup&revision=794&root=TO OLS_OBJECTTEAMS&sortby=file
The JavaSourceViewerConfiguration role is a nice Adaption of the JavaSourceViewerConfiguration. It adds the OT keywords to the existing Java Keywords.
I would like to do about the same. Adding additional keywords to the existing Java and OT Keywords. So I thought i may reuse this Role from my own ui plugin and add my language specific keywords.
So I tried the following:
@SuppressWarnings("restriction")
public team class GOTJavaEditorAdaptor extends JavaEditorAdaptor {
protected team class JavaSourceViewerConfiguration {
protected class WordMatcher {
@SuppressWarnings("basecall")
callin void addWord(String word, IToken token) {
System.out.println("no more OT keywords... ;=)");
}
}
}
}
Manifest:
org.eclipse.objectteams.otdt.jdt.ui;bundle-version="0.7.1"
Plugin.xml:
<aspectBinding
icon="platform:/plugin/org.eclipse.objectteams.otdt.ui/icons/ot/calloutbinding_obj.gif">
<basePlugin
icon="platform:/plugin/org.eclipse.pde.ui/icons/obj16/plugin_obj.gif"
id="org.eclipse.objectteams.otdt.jdt.ui">
</basePlugin>
<team
activation="NONE"
class="org.objectteams.gotdt.internal.ui.javaeditor.GOTJavaEditorAdaptor"
icon="platform:/plugin/org.eclipse.objectteams.otdt.ui/icons/ot/team_obj.gif"
superclass="org.eclipse.objectteams.otdt.internal.ui.javaeditor.JavaEditorAdaptor">
</team>
</aspectBinding>
But how do I make it work with OT/Equinox? What about the superclass field in the aspectBinding dialog? Can I add a base plugin team there?
And should I activate my Team?
Is the inheritance correct?
thanks
greetings
Jan Marc
|
|
|
|
Powered by
FUDForum. Page generated in 0.03717 seconds