Plugin Development Question [message #29438] |
Thu, 31 May 2007 18:35 |
Markus rüger Messages: 369 Registered: July 2009 |
Senior Member |
|
|
Hello,
I have a question regarding developing a "shared" plugin that can also be
run in RCP and in RAP.
I created a new plugin with a non-UI activator. I also created a class
AbstractTreeViewerAction that extends Action and implements
IWorkbenchWindowActionDelegate and IAction.
Since I want to share the plugin for both use cases, I did not add an
dependency to any ui specific plug-in and just imported the packages I used.
My Manifest looks like this:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: XXX
Bundle-SymbolicName: XXX;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: xxx.xxx.xxx.MyActivator
Bundle-Vendor: D3
Require-Bundle: org.eclipse.core.runtime,
my.core.plugin,
org.eclipse.core.commands
Eclipse-LazyStart: true
Export-Package: xxx,
xxx
Import-Package: org.eclipse.jface.action,
org.eclipse.jface.resource,
org.eclipse.jface.viewers,
org.eclipse.swt,
org.eclipse.swt.graphics,
org.eclipse.ui,
org.eclipse.ui.plugin
My understanding is, that I now have no specific plug-in dependency and I
only defined the needed packages. Now, as I start my application and create
the workbench it also starts the eclipse UI plugins like org.eclipse.jface
and org.eclipse.workbench.
When I expand the "Plug-in Dependency"-Item in my Plugin Project I can see
these plug-ins, too.
Does anyone have a clue what's going wrong here. Maybe I did something
wrong???
Regards,
Markus
|
|
|
|
Re: Plugin Development Question [message #29571 is a reply to message #29509] |
Fri, 01 June 2007 05:43 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
how does your launch configuration look like, in particular the config.ini?
You can find it under
<myworkspace> /.metadata/.plugins/org.eclipse.pde.core/MyLaunchConfigurati on
Ciao
Frank
"Markus Kr
|
|
|
|
|
Re: Plugin Development Question [message #30654 is a reply to message #30120] |
Sat, 02 June 2007 14:01 |
Eclipse User |
|
|
|
Originally posted by: jkrause.innoopract.com
core.expressions is needed since we updated the workbench to the latest
3.3 code, equinox.app comes into play if you execute on the 3.3 version
of osgi.
Jochen
Markus Krüger wrote:
> I fixed it. I changed the launch configuration to be cleared evertime it
> starts.
> But could it be, that the launch configuration of the demo (and of course of
> my application, too) needs to include the plugins org.eclipse.equinox.app
> and org.eclipse.core.expressions?
> Otherwise I could not run the demo or my app...
>
> Regards,
> Markus
>
>
>
>
> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
> news:f3orlm$jq7$1@build.eclipse.org...
>> I attached my launchconfiguration from eclipse launcher. This is the one I
>> use to start my RAP application with.
>>
>> "Frank Appel" <fappel@innoopract.com> schrieb im Newsbeitrag
>> news:f3oblr$qic$1@build.eclipse.org...
>>> Hi,
>>>
>>> how does your launch configuration look like, in particular the
>>> config.ini?
>>> You can find it under
>>> <myworkspace> /.metadata/.plugins/org.eclipse.pde.core/MyLaunchConfigurati on
>>>
>>> Ciao
>>> Frank
>>>
>>>
>>> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
>>> news:f3n4kq$80p$1@build.eclipse.org...
>>>> Forgot to say that I checkout the latest version today.
>>>>
>>>> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
>>>> news:f3n4eu$4f3$1@build.eclipse.org...
>>>>> Hello,
>>>>>
>>>>> I have a question regarding developing a "shared" plugin that can also
>>>>> be
>>>>> run in RCP and in RAP.
>>>>> I created a new plugin with a non-UI activator. I also created a class
>>>>> AbstractTreeViewerAction that extends Action and implements
>>>>> IWorkbenchWindowActionDelegate and IAction.
>>>>> Since I want to share the plugin for both use cases, I did not add an
>>>>> dependency to any ui specific plug-in and just imported the packages I
>>>>> used.
>>>>>
>>>>> My Manifest looks like this:
>>>>>
>>>>> Manifest-Version: 1.0
>>>>> Bundle-ManifestVersion: 2
>>>>> Bundle-Name: XXX
>>>>> Bundle-SymbolicName: XXX;singleton:=true
>>>>> Bundle-Version: 1.0.0
>>>>> Bundle-Activator: xxx.xxx.xxx.MyActivator
>>>>> Bundle-Vendor: D3
>>>>> Require-Bundle: org.eclipse.core.runtime,
>>>>> my.core.plugin,
>>>>> org.eclipse.core.commands
>>>>> Eclipse-LazyStart: true
>>>>> Export-Package: xxx,
>>>>> xxx
>>>>> Import-Package: org.eclipse.jface.action,
>>>>> org.eclipse.jface.resource,
>>>>> org.eclipse.jface.viewers,
>>>>> org.eclipse.swt,
>>>>> org.eclipse.swt.graphics,
>>>>> org.eclipse.ui,
>>>>> org.eclipse.ui.plugin
>>>>>
>>>>> My understanding is, that I now have no specific plug-in dependency and
>>>>> I
>>>>> only defined the needed packages. Now, as I start my application and
>>>>> create the workbench it also starts the eclipse UI plugins like
>>>>> org.eclipse.jface and org.eclipse.workbench.
>>>>> When I expand the "Plug-in Dependency"-Item in my Plugin Project I can
>>>>> see these plug-ins, too.
>>>>>
>>>>> Does anyone have a clue what's going wrong here. Maybe I did something
>>>>> wrong???
>>>>>
>>>>> Regards,
>>>>>
>>>>> Markus
>>>>>
>>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03563 seconds