Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Plugin Development Question
Plugin Development Question [message #29438] Thu, 31 May 2007 18:35 Go to next message
Markus  rüger is currently offline Markus rügerFriend
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 #29509 is a reply to message #29438] Thu, 31 May 2007 18:38 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Forgot to say that I checkout the latest version today.

"Markus Kr
Re: Plugin Development Question [message #29571 is a reply to message #29509] Fri, 01 June 2007 05:43 Go to previous messageGo to next message
Eclipse UserFriend
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 #30083 is a reply to message #29571] Fri, 01 June 2007 10:17 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
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
Re: Plugin Development Question [message #30120 is a reply to message #30083] Fri, 01 June 2007 10:56 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
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
Re: Plugin Development Question [message #30654 is a reply to message #30120] Sat, 02 June 2007 14:01 Go to previous message
Eclipse UserFriend
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
>>>>>
>>>>
>>>
>>
>>
>
>
Previous Topic:Odd exception creating Display
Next Topic:TableViewer with SWT.CHECK
Goto Forum:
  


Current Time: Thu Apr 25 04:49:31 GMT 2024

Powered by FUDForum. Page generated in 0.03563 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top