Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Confusion about RCP 3.x and 4.x(Confused between when an RCP Plugin I create is Eclipse 3.x and 4.x)
Confusion about RCP 3.x and 4.x [message #1057929] Thu, 09 May 2013 20:22
Rohit Ghatol is currently offline Rohit GhatolFriend
Messages: 1
Registered: May 2013
Junior Member
Hi All,

I have been reading about Eclipse RCP and Eclipse RAP and Eclipse 4 in parallel for last 2 weeks. This all has lead me to some very basic confusion, it would help if anyone could clarify my simple and basic questions

I use Eclipse RCP/RAP- Juno.

Question 1 - How to distinguish whether my Project is Eclipse 3.x RCP or Eclipse 4 RCP?

I typically create my eclipse RCP project as follows

File->New->Plug in Project-> "This plugin is targeted to run on 3.6 and later" -> "Contributes to UI" "RCP Application" -> Mail Template

Question 2 - Is it safe to assume that a Eclipse project with plugin.xml with following line is a Eclipse RCP 3.x project?

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
...
</plugin>

OR Are Eclipse Plugins totally independent of RCP 3.x and RCP 4.x concept? I know they are basically OSGI Bundles. How ever the presence of plugins.xml confuses we about RCP 3.x and RCP 4.x


Question 3 - When I do New - Eclipse 4 - Eclipse 4 Application Project, What have I just created? Is it a Eclipse 4 RCP Project?

What is the basic difference between an Eclipse 4 RCP project and an Eclipse 4 Application Project?

Question 4 - In few RCP Projects we see the following XML. The following is saying this project will extend eclipse platform at the following extension points.

Is the concept of using application, perspective, views an RCP 3.x concept? Is it still valid in ECP 4.x?


<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="com.test.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="RCP Perspective"
class="com.test.Perspective"
id="com.test.perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.views">
<view
name="Message"
allowMultiple="true"
icon="icons/sample2.gif"
class="com.test.View"
id="com.test.view">
</view>
<view
name="Mailboxes"
allowMultiple="true"
icon="icons/sample3.gif"
class="com.test.NavigationView"
id="com.test.navigationView">
</view>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
name="Mail"
id="com.test.category">
</category>
<command
name="Open Mailbox"
description="Opens a mailbox"
categoryId="com.test.category"
id="com.test.open">
</command>
<command
name="Open Message Dialog"
description="Open a message dialog"
categoryId="com.test.category"
id="com.test.openMessage">
</command>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="com.test.open"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="CTRL+2">
</key>
<key
commandId="com.test.openMessage"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="CTRL+3">
</key>
<key
commandId="org.eclipse.ui.file.exit"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="CTRL+X">
</key>
</extension>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="com.test.application"
name="RCP Product">
<property
name="aboutText"
value="RCP Mail template created by PDE">
</property>
<property
name="windowImages"
value="icons/sample2.gif">
</property>
<property
name="aboutImage"
value="product_lg.gif">
</property>
</product>
</extension>

</plugin>


Question - The following plugins.xml is from an Eclipse 4 Application. Here we only have a product which points to Application Model

Is Product an RCP 4.x specific concept?
Is ApplicationModel an RCP 4.x specific concept?

<?xml version="1.0" encoding="UTF-8"?>
<plugin>

<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
name="com.test2"
application="org.eclipse.e4.ui.workbench.swt.E4Application">
<property
name="appName"
value="com.test2">
</property>
<property
name="applicationXMI"
value="com.test2/Application.e4xmi">
</property>
<property
name="applicationCSS"
value="platform:/plugin/com.test2/css/default.css">
</property>
</product>
</extension>

</plugin>



Answers to the above very basic question will really really help me out.

Cheers,
Rohit
Previous Topic:SWT Browser : HTML content selection use case
Next Topic:Save as perspective issue
Goto Forum:
  


Current Time: Fri Apr 26 08:00:21 GMT 2024

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

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

Back to the top