Target Platform problem [message #308691] |
Mon, 02 October 2006 01:26  |
Eclipse User |
|
|
|
Originally posted by: jpk4077.hotmail.com
Hi,
I have eclipse 3.1 and rational software modeler installed on my system.
The following plugin code works if I set my target platform to eclipse,
but gives me a compile error if the target platform is RSM.
public void run(IAction action) {
Shell shell = new Shell();
ViewPluginAction myact = (ViewPluginAction) action;
IStructuredSelection structuredSelection = (IStructuredSelection)
myact
.getSelection();
}
I checked and it seems the JDT version of RSM is 3.0.1, so I tried making
the plugin for eclsipe ver 3.0. but the code compiles only if the target
is eclipse.
The compilation error is
The method getSelection() is undefined for the type ViewPluginAction
Why should the plugin code change if the target is rational instead of
eclipse? Shouldn't they both be compatible?
Thanks Praveen.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04192 seconds