I want to create an extension for org.eclipse.swt as a fragment. I created the swt.extension package with the following MANIFEST.MF:
Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Extension Bundle-SymbolicName: swt.extension Bundle-Version: 1.0.0.qualifier Fragment-Host: org.eclipse.swt;bundle-version="3.102.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.7
In addition, I created an interface that extends the interface from SWT:
public interface IExtendedStyleTextContent extends org.eclipse.swt.custom.StyledTextContent { }
When I build my project with tycho ( mvn clean install ), the following error occurs:
1. ERROR in C:\<path>\tycho-fragment-to-fragment-dependency\swt.extension\src\org\example\tycho_example\IExtendedStyleTextContent.java (at line 3) public interface IExtendedStyleTextContent extends org.eclipse.swt.custom.StyledTextContent { ^^^^^^^^^^^ org.eclipse cannot be resolved to a type
Tycho seems to only allow the org.eclipse.swt bank. This is a host node and does not contain classes. Actual implementation in the org.eclipse.swt.win32.win32.x86_64 fragment package. And it looks like this package is not related to classpath when tycho-compiler-plugin compiles the project.
Is this a Tycho bug? Are their workarounds possible?
I put all the sources in GitHub: https://github.com/orionll/tycho-fragment-to-fragment-dependency
I am using maven 3.1.0
source share