Problems exporting plugin to zip [message #290961] |
Mon, 05 September 2005 12:41 |
Eclipse User |
|
|
|
Originally posted by: glen.vermeylen.gmail.com
I'm having a problem exporting my plugin to a zip-archive.
After a long search I've found that 2 inner classes (swt event-listeners)
aren't exported to the jarfile when using "export to zip".
There's nothing special about the 2 omitted inner classes, (they are just
2 out of 10 listeners used in the class).
This morning it all worked and the only significant change was adding a
dependency to org.eclipse.ui.console and routing my messages to the
console.
Using "export to folder" or launching the project as an eclipse
application does work however (so it's not a really big deal, but I don't
like the idea something's wrong).
|
|
|
Re: Problems exporting plugin to zip [message #290968 is a reply to message #290961] |
Mon, 05 September 2005 14:18 |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
Could you post a sample of source code that exhibits this problem? It may be the case that there's some kind of class dependency which isn't being satisfied (for example, one of your listeners refers to class X that's mentioned in your build classpath but perhaps not in your MANIFEST.MF) and the export for that particular inner class is resulting in some kind of ClassNotFoundException during the deploy phase.
If you can find anything in the .log that would be applicable, then that would be good ... in workspace\.metadata\.log or one of the plugin subdirectories)
|
|
|
Re: Problems exporting plugin to zip [message #290995 is a reply to message #290961] |
Mon, 05 September 2005 18:21 |
Eclipse User |
|
|
|
Originally posted by: wwang.liacs.nl
maybe u can "project>clean" your project and deploy it again.
Eclipse takes the first deployment version as default every time when u
deploy. Any later modification will not be updated if u deploy the plugin
without "clean". good luck. :)
|
|
|
Re: Problems exporting plugin to zip [message #291006 is a reply to message #290968] |
Tue, 06 September 2005 09:58 |
Eclipse User |
|
|
|
Originally posted by: glen.vermeylen.gmail.com
The log just points out a NoClassDefFound stacktrace at the line of
b4.addListener:
b1.addListener(SWT.MouseUp, new AddSelectedFileListener());
b2.addListener(SWT.MouseUp, new RemoveSelectedFileListener());
b3.addListener(SWT.MouseUp, new AddAllSelectedFilesListener());
b4.addListener(SWT.MouseUp, new RemoveAllSelectedFilesListener());
This is the section of the listeners:
=====================================
private class AddSelectedFileListener implements Listener {
public void handleEvent(Event event) {
XmlCombineSettingsGui.this.addSelectedFiles();
}
}
private class RemoveSelectedFileListener implements Listener {
public void handleEvent(Event event) {
XmlCombineSettingsGui.this.removeSelectedFiles();
}
}
private class AddAllSelectedFilesListener implements Listener {
public void handleEvent(Event event) {
XmlCombineSettingsGui.this.addAllSelectedFiles();
}
}
private class RemoveAllSelectedFilesListener implements Listener {
public void handleEvent(Event event) {
XmlCombineSettingsGui.this.removeAllSelectedFiles();
}
}
private class MoveSelect...
and so on...
I went through the manifest and classpath, but found nothing of relevance.
I just realize I can add the listeners as anonymous inner classes, that
would probably *solve* the problem.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03365 seconds