Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse RCP application with Eclipse ICE(Hello Visit, Ice and RCP)
Eclipse RCP application with Eclipse ICE [message #1767875] Tue, 11 July 2017 19:56 Go to next message
Christopher Hoffman is currently offline Christopher HoffmanFriend
Messages: 11
Registered: December 2015
Junior Member
The scope of this project is to build a custom workflow using Eclipse ICE. Eclipse ICE is a version of Eclipse with the EAVP plugin installed. This plugin automates your workflow by taking you through some wizards that create a config file for you that essentially allows you to build custom commands that execute other applications that may or may not be heavily dependent on data.

There are four elements to this project.
Eclipse ICE, Eclipse RCP app, EAVP VisIT plugin and a python script.

The goal is to build an RCP app that calls the python script. The python script calls visit which generates some graphics in python widgets. I want to get the python widget and embed a visit plot inside an Eclipse RCP app.

The python widget can obtained in Java in the like manner:

  // Send a Python command to the widget, directing it to set the
// model to the correct timestep.
VisItSwtConnection widget = getConnection().getWidget();
ViewerMethods methods = widget.getViewerMethods();
methods.processCommands( "SetTimeSliderState(" +widgetTimestep.get() + ")");



The problem I'm running into is configuring the RCP app to be able to import org.eclipse.eavp.viz and org.eclipse.eavp.viz.service in order to execute the above code upon some button clicks. There appears to be two ways to do this. Create a target with all dependencies that overrides the manifest or maintain the manifest and add the external plugins to the product feature. I've tried both and am currently failing at adding the plugin and dependencies to the feature.

After EAVP plugins are added to the Included Plug-Ins tab for the products feature, there becomes a host of dependencies that need to be manually resolved almost one at a time.

Is there a better way to discover dependencies other than one at a time?

This error is not remediable:
Unresolved requirement: Import-Package: org.eclipse.equinox.internal.p2.metadata

The package org.eclipse.equinox.internal no longer exists it seems. Do I have to roll back to a previous equinox version? If so how is that done?





Re: Eclipse RCP application with Eclipse ICE [message #1768348 is a reply to message #1767875] Mon, 17 July 2017 17:41 Go to previous messageGo to next message
Christopher Hoffman is currently offline Christopher HoffmanFriend
Messages: 11
Registered: December 2015
Junior Member
Bumping for relevance.

My problem now is installing a plugin manually in eclipse to be used for dependency.
Re: Eclipse RCP application with Eclipse ICE [message #1768375 is a reply to message #1768348] Tue, 18 July 2017 07:32 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Usually technologies you use will have features that group the various plugins into larger groupings and it's easier to define a product based on such features. E.g., for Oomph's installer product we only have this product dependency:
   <plugins>
   </plugins>

   <features>
      <feature id="org.eclipse.oomph.setup.installer"/>
   </features>
so all the detailed dependencies are specified by that feature:
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2014-2016 Eike Stepper (Berlin, Germany) and others.
  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License v1.0
  which accompanies this distribution, and is available at
  http://www.eclipse.org/legal/epl-v10.html

  Contributors:
    Eike Stepper - initial API and implementation
-->
<feature
      id="org.eclipse.oomph.setup.installer"
      label="%featureName"
      version="1.9.0.qualifier"
      provider-name="%providerName">

   <description>
      %description
   </description>

   <copyright url="%copyrightURL">
      %copyright
   </copyright>

   <license url="%licenseURL">
      %license
   </license>

   <url>
      <update label="%updateSiteName" url="http://download.eclipse.org/oomph/updates"/>
      <discovery label="%updateSiteName" url="http://download.eclipse.org/oomph/updates"/>
   </url>

   <includes
         id="org.eclipse.oomph.p2"
         version="0.0.0"/>

   <includes
         id="org.eclipse.emf.common"
         version="0.0.0"/>

   <includes
         id="org.eclipse.emf.common.ui"
         version="0.0.0"/>

   <includes
         id="org.eclipse.emf.ecore"
         version="0.0.0"/>

   <includes
         id="org.eclipse.emf.edit"
         version="0.0.0"/>

   <includes
         id="org.eclipse.emf.edit.ui"
         version="0.0.0"/>

   <includes
         id="org.eclipse.rcp"
         version="0.0.0"/>

   <includes
         id="org.eclipse.equinox.p2.core.feature"
         version="0.0.0"/>

   <plugin
         id="org.eclipse.oomph.setup"
         download-size="0"
         install-size="0"
         version="0.0.0"/>

   <plugin
         id="org.eclipse.oomph.setup.edit"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.setup.installer"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.ui.views"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.core.net"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.core.net.win32.x86"
         os="win32"
         arch="x86"
         download-size="0"
         install-size="0"
         version="0.0.0"
         fragment="true"
         unpack="false"/>

   <plugin
         id="org.eclipse.core.net.linux.x86_64"
         os="linux"
         arch="x86_64"
         download-size="0"
         install-size="0"
         version="0.0.0"
         fragment="true"
         unpack="false"/>

   <plugin
         id="org.eclipse.core.net.win32.x86_64"
         os="win32"
         arch="x86_64"
         download-size="0"
         install-size="0"
         version="0.0.0"
         fragment="true"
         unpack="false"/>

   <plugin
         id="org.eclipse.core.net.linux.x86"
         os="linux"
         arch="x86"
         download-size="0"
         install-size="0"
         version="0.0.0"
         fragment="true"
         unpack="false"/>

   <plugin
         id="org.eclipse.platform"
         download-size="0"
         install-size="0"
         version="0.0.0"/>

   <plugin
         id="org.eclipse.equinox.p2.updatesite"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.ui.net"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.jsch.ui"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.setup.core"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.setup.ui"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.setup.p2"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.setup.p2.edit"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.base"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.base.edit"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.preferences"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.ui"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.util"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.equinox.p2.ui"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.equinox.security.ui"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.util.doc"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.setup.doc"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.setup.ui.questionnaire"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.jreinfo"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.jreinfo.ui"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.eclipse.oomph.jreinfo.win32.x86"
         os="win32"
         arch="x86"
         download-size="0"
         install-size="0"
         version="0.0.0"
         fragment="true"/>

   <plugin
         id="org.eclipse.oomph.jreinfo.win32.x86_64"
         os="win32"
         arch="x86_64"
         download-size="0"
         install-size="0"
         version="0.0.0"
         fragment="true"/>

   <plugin
         id="org.eclipse.oomph.extractor.lib"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

</feature>
Note that the feature dependencies reduce the list of plugin dependencies dramatically, but somewhere a list (feature) needs to be maintained, hopefully by folks providing the technology but in the worst case, by you.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Why is making Eclipse dark so difficult ?
Next Topic:installation error on Linux-mint
Goto Forum:
  


Current Time: Thu Mar 28 12:23:00 GMT 2024

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

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

Back to the top