2016-02-27

More about missing plugins

← Older revision

Revision as of 02:01, 27 February 2016

(5 intermediate revisions by the same user not shown)

Line 2:

Line 2:

''This work is very speculative and is for reference by Triquetrum developers.  It probably won't be of much use for other people.''

''This work is very speculative and is for reference by Triquetrum developers.  It probably won't be of much use for other people.''

+

+

+

== Exporting Features from Triquetrum ==

+

ICE requires features from Triquetrum.  Eventually, we will have a P2 site for these features, but in the near term, we export the features by hand

+

# See [[Triquetrum/Building_From_Sources | Building From Sources]] for how to build Triquetrum in Eclipse.

+

# File -> Export

+

# In the Export window:

+

## Plug-in Development -> Deployable features

+

## Click Next

+

# In the Deployable Features window:

+

## Click on "Select All"

+

## In "Directory", browse to a directory, which will be used in the ICE RCP in the next section

+

## Click Finish

==Setting up ICE==

==Setting up ICE==

Line 18:

Line 31:

# Go to the "org.eclipse.ice.repository" project and right-click and run the launch configuration product.* for your OS. If you are using Windows or Mac, you will need to add org.eclipse.ice.triquetrum to that configuration.

# Go to the "org.eclipse.ice.repository" project and right-click and run the launch configuration product.* for your OS. If you are using Windows or Mac, you will need to add org.eclipse.ice.triquetrum to that configuration.

# Go to the ICE perspective and in the ItemViewer at the left create the Triquetrum Item by clicking on the green plus button. The Triquetrum Item is currently at the bottom of the list that appears with an ugly name at the moment.

# Go to the ICE perspective and in the ItemViewer at the left create the Triquetrum Item by clicking on the green plus button. The Triquetrum Item is currently at the bottom of the list that appears with an ugly name at the moment.

+

+

==Telling ICE about the Triquetrum Features ==

+

The next step is to tell the ICE projects about the Triquetrum features.

+

# Go to "org.eclipse.ice.target.mars" and click on "mars.target"

+

# In the mars.target Target Definition tab under the list of Locations, click on the location "file:/C:/temp/triquetrum/features-for-ice", then click on Edit

+

# In the Edit window, click on Add and then Local, then browse to the Triquetrum Features exported above.  Click on Open, then OK.

+

# In the Edit Content window, under Names will appear "There are no categorized items".  The fix is to un-check "Group by Category", which will show all the Triquetrum features.  Click on Select All, and then Finish.

+

# In the bottom right of the ICE Eclipse window a message about "Resolving Target Definition" will appear.

+

# After a few minutes, the resolution will end.

+

# In the mars.target pane, click on "Set as Target Platform".  The rebuild will occur. You may see errors about org.eclipse.eavp, which may be ignored.

+

# Go to the "org.eclipse.ice.repository" project and right-click and run the launch configuration product.* for your OS and select Run -> Run Configuration.

+

# In the Run Configurations window:

+

## Click on the Plug-ins tab and find the triquetrum features by typing "triquetrum" into the text entry widget at the top of the list of features.

+

## Click on the check box next to each triquetrum feature

+

## Repeat the above two steps

+

### "diva"

+

### "ptolemy"

+

### "org.eclipse.emf.databinding"

+

### "org.eclipse.emf.ecp.edit.spi"

+

### "org.eclipse.graphiti.mm"

+

### "org.eclipse.emf.ecp.view.model.common.edit.provider"

+

## Click on Apply, then Run

+

# If the "Errors in Workspace" dialog pops up, click proceed.

+

+

'''FIXME:''' If I do the above, then I keep having to add packages.  If, in the Run Configurations window, Plug-ins tab, I click on "validate plug-ins automatically prior to launching", then there are lots of plugins that are not present.

+

+

== Problems ==

+

+

=== Missing Packages ===

+

During startup, the following messages appeared:

+

<pre>

+

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.triquetrum.workflow.editor [421]

+

Unresolved requirement: Import-Package: org.eclipse.emf.databinding

+

+

at org.eclipse.osgi.container.Module.start(Module.java:434)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

+

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

+

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

+

+

!ENTRY org.eclipse.triquetrum.workflow.model 4 0 2016-02-26 17:33:12.261

+

!MESSAGE FrameworkEvent ERROR

+

!STACK 0

+

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.triquetrum.workflow.model [424]

+

Unresolved requirement: Import-Package: org.eclipse.graphiti.mm; version="0.12.1"

+

+

at org.eclipse.osgi.container.Module.start(Module.java:434)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

+

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

+

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

+

+

!ENTRY org.eclipse.triquetrum.workflow.model.edit 4 0 2016-02-26 17:33:12.261

+

!MESSAGE FrameworkEvent ERROR

+

!STACK 0

+

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.triquetrum.workflow.model.edit [425]

+

Unresolved requirement: Require-Bundle: org.eclipse.triquetrum.workflow.model; visibility:="reexport"

+

-> Bundle-SymbolicName: org.eclipse.triquetrum.workflow.model; bundle-version="1.0.0.201602261637"; singleton:="true"

+

org.eclipse.triquetrum.workflow.model [424]

+

Unresolved requirement: Import-Package: org.eclipse.graphiti.mm; version="0.12.1"

+

+

at org.eclipse.osgi.container.Module.start(Module.java:434)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

+

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

+

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

+

+

!ENTRY org.eclipse.triquetrum.workflow.model.editor 4 0 2016-02-26 17:33:12.262

+

!MESSAGE FrameworkEvent ERROR

+

!STACK 0

+

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.triquetrum.workflow.model.editor [426]

+

Unresolved requirement: Require-Bundle: org.eclipse.triquetrum.workflow.model.edit; visibility:="reexport"

+

-> Bundle-SymbolicName: org.eclipse.triquetrum.workflow.model.edit; bundle-version="1.0.0.201602261637"; singleton:="true"

+

org.eclipse.triquetrum.workflow.model.edit [425]

+

Unresolved requirement: Require-Bundle: org.eclipse.triquetrum.workflow.model; visibility:="reexport"

+

-> Bundle-SymbolicName: org.eclipse.triquetrum.workflow.model; bundle-version="1.0.0.201602261637"; singleton:="true"

+

org.eclipse.triquetrum.workflow.model [424]

+

Unresolved requirement: Import-Package: org.eclipse.graphiti.mm; version="0.12.1"

+

+

at org.eclipse.osgi.container.Module.start(Module.java:434)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

+

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

+

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

+

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

+

</pre>

+

I added those packages, but then there were more missing packages.

Show more