Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Class in plugin not resolving in IDE(A class imported in source in my plugin is in MANIFEST.MF, but does not resolve?)
Class in plugin not resolving in IDE [message #1738289] Mon, 18 July 2016 12:38 Go to next message
Eclipse UserFriend
My MANIFEST.MF looks like this:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %plugin.name
Bundle-SymbolicName: com.example.cassandra;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: %plugin.providerName
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-Localization: plugin
Bundle-ActivationPolicy: lazy
Require-Bundle: com.yambina.edm.model;bundle-version="1.0.0",
org.eclipse.core.runtime,
org.eclipse.osgi
Bundle-Activator: com.example.cassandra.CassandraActivator
Bundle-ClassPath: .,
abacus-util-all-jdk7-0.8.9.jar
Export-Package:
...

Note the org.eclipse.osgi required bundle. It include the classes in package org.osgi seen below

I have this import in my code

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

These do not resolve. So it appears I have correctly defined my dependency but that the IDE is not loading it.

What else do I need to do to get this to work?

[Updated on: Mon, 18 July 2016 12:39] by Moderator

Re: Class in plugin not resolving in IDE [message #1738341 is a reply to message #1738289] Tue, 19 July 2016 03:48 Go to previous message
Eclipse UserFriend
Not sure why I am asking this question here. I went through the questions I asked on PDE in this forum since 2009. Not a single one was answered, just some responses from people having the same issues.
I have a couple of machines with the same project checked out from the same git repo. Some have these resolution of class problems and some don't. We even reverted to zipping our eclipse IDE installation and distributing it so all have exactly the same Eclipse setup. And yet p2 problems persist and no one can answer why. In 7 years it has got no better.
Previous Topic:Xtext coloring code fragments
Next Topic:xtext same extensions in two different xtext files?
Goto Forum:
  


Current Time: Thu Jul 24 00:09:30 EDT 2025

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

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

Back to the top