Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 303169

Summary: Using UI-Plugins in RAP and SWT / RCP, Importing org.eclipse.ui[.part]
Product: [RT] RAP Reporter: Robert Einsle <robert>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Robert Einsle CLA 2010-02-18 06:29:07 EST
Build Identifier: 20090920-1017

Hi Buglist,

we want to create UI-Plugins, using in RAP and RCP Applications. But while Importing Packages org.eclipse.ui and org.eclipse.ui.part, we don't find an Solution for the Package-Import.

We tried it while using 

Import-Package: org.eclipse.ui; ui.workbench="split"

but here the import in RCP is brocken.

Is it possible to use UI-Plugins in both?

Thanks a lot.

Robert

Reproducible: Always
Comment 1 RĂ¼diger Herrmann CLA 2010-02-18 13:08:26 EST
There are several ways to declare dependencies on both RAP and RCP. Optional Require-Bundle is the one I would recommend. For more details search the web for "rap single sourcing guide", see the newsgroup archive, 
I recommend to ask further questions like this on the newsgroup (http://www.eclipse.org/rap/support.php)