Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322505 - Adding a self update to RCP application turns the application to IDE
Summary: Adding a self update to RCP application turns the application to IDE
Status: CLOSED DUPLICATE of bug 281226
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 major with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 07:24 EDT by Michael Spector CLA
Modified: 2010-09-01 13:02 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Spector CLA 2010-08-12 07:24:58 EDT
Upgrading to Eclipse 3.6 leads to addition of many unneeded bundles (including org.eclipse.ui.ide). We must decide whether the new update mechanism is only intended for usage by IDEs or by lightweight RCP applications as well.
Comment 1 Ian Bull CLA 2010-08-12 16:34:18 EDT
If you are using org.eclipse.equinox.p2.ui.sdk then yes, it brings in the IDE bundle. However, you can create a self updating system without this bundle. In fact, you can create one without any part of the UI.

Do you need ui.sdk?
Comment 2 Michael Spector CLA 2010-08-13 01:56:20 EDT
(In reply to comment #1)
> If you are using org.eclipse.equinox.p2.ui.sdk then yes, it brings in the IDE
> bundle. However, you can create a self updating system without this bundle. In
> fact, you can create one without any part of the UI.
> 
> Do you need ui.sdk?

What I need is self updating system for RCP application with basic UI. This article describes how to achieve that: http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application. I know that one can use p2 API, and develop his own updater with or without UI. Is this the only option for RCP application developers?
Comment 3 theafreer CLA 2010-08-30 10:03:37 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > If you are using org.eclipse.equinox.p2.ui.sdk then yes, it brings in the IDE
> > bundle. However, you can create a self updating system without this bundle. In
> > fact, you can create one without any part of the UI.
> > 
> > Do you need ui.sdk?
> What I need is self updating system for RCP application with basic UI. This
> article describes how to achieve that:
> http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application. I
> know that one can use p2 API, and develop his own updater with or without UI.
> Is this the only option for RCP application developers?

All of the articles and examples I can find regarding integrating P2 Update into an Eclipse RCP application make use of org.eclipse.equinox.p2.ui.sdk.  If this type of integration is not desired by the Eclipse org. it would be nice to at least have a tutorial with an alternative.  But why shouldn't the UI be available to RCP developers?
Comment 4 Matt Biggs CLA 2010-09-01 08:53:53 EDT
We now have the same problem. 

Previously our products had a dependency on org.eclipse.equinox.p2.user.ui feature and would get everything for free. In Helios however, org.eclipse.equinox.p2.ui.sdk has a dependency on org.eclipse.compare which then pulls in half the IDE. 

Is there no longer a feature that will allow us to include a simple p2 update mechanism in an RCP app without writing our own and without using half the IDE?
Comment 5 Susan McCourt CLA 2010-09-01 13:02:38 EDT
We are going to resolve this during 3.7 M2.
please see bug 281226 comment 21

*** This bug has been marked as a duplicate of bug 281226 ***