migrate existing 3.x RCP to e4 [message #886866] |
Fri, 15 June 2012 14:48  |
Eclipse User |
|
|
|
Hi,
I have a feature based RCP using the application org.eclipse.ui.ide.workbench and my own product
definition. In this way I could reuse quite a few existing plugins, e.g. Console View, Creating
Projects, Team, Search, etc.
Additional I wrote some plugins in 3.x style.
Now I will further extend the RCP by new features and I came across a few questions.
- Should I migrate from 3.x to e4 before writing new plugins and features? I think the injection
technology is quite useful and I use also ecore based models.
- How to migrate to get the advantages of e4? I know there is a compatibility layer but I read I
cant combine the e4 fragment.e4xmi by using the compatibility layer.
- If possible I would like to leave the existing plugins untouched as much as possible and could get
use of the e4 enhancements by the new features.
any help is appreciated, Martin
|
|
|
|
|
|
|
|
Re: migrate existing 3.x RCP to e4 [message #890220 is a reply to message #890204] |
Thu, 21 June 2012 09:51  |
Eclipse User |
|
|
|
Yes you are right is below Application#snipped.
Here an example:
<?xml version="1.0" encoding="ASCII"?>
<fragment:ModelFragments xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced"
xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic"
xmlns:fragment="http://www.eclipse.org/ui/2010/UIModel/fragment" xmi:id="_y6D_YLoOEeGpCLi1m273mw">
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_18RMILoOEeGpCLi1m273mw"
featurename="snippets" parentElementId="org.eclipse.e4.legacy.ide.application">
<elements xsi:type="advanced:Perspective" xmi:id="_qcuxQLoPEeGpCLi1m273mw"
elementId="dummy.ui.perspective.2" label="OPN 2 Perspective">
<children xsi:type="basic:PartSashContainer" xmi:id="_zrWc8LoPEeGpCLi1m273mw"
elementId="dummy.ui.partsashcontainer.up-down">
<children xsi:type="basic:PartSashContainer" xmi:id="_5BJc8LoPEeGpCLi1m273mw"
elementId="de.bahntechnik.dd.opn.ui.partsashcontainer.up-down.left-editor" horizontal="true">
<children xsi:type="basic:PartStack" xmi:id="_7eAg8LoPEeGpCLi1m273mw" elementId="topLeft">
<children xsi:type="advanced:Placeholder" xmi:id="_FPMuMLoQEeGpCLi1m273mw"
elementId="org.eclipse.ui.navigator.ProjectExplorer"/>
</children>
<children xsi:type="basic:PartStack" xmi:id="_4lqAYLunEeGB2NLRSh_v_g" elementId="topRight">
<children xsi:type="advanced:Placeholder" xmi:id="_JpVXMLoQEeGpCLi1m273mw"
elementId="org.eclipse.ui.views.BookmarkView"/>
</children>
</children>
</children>
</elements>
</fragments>
</fragment:ModelFragments>
Brian de Alwis wrote, On 21.06.2012 14:49:
> If memory serves me, the perspective code first looks to see if there's a snippet available (see
> MA00lication#snippets) and makes a copy of that. Otherwise it checks the perspective definitions.
> This is undocumented and may change, so beware.
|
|
|
Powered by
FUDForum. Page generated in 0.02986 seconds