Sunday, March 02, 2008

XPontus plugins manager behaviour

I'm removing the components which are not ready yet in the plugins manager. I find it painfull to write a software' dependencies manager. The plugin framework jpf can handle some things from the software perspective(plugins integrity, dependencies not met, etc.). From the user's perspective, I need to add some features like auto-selecting required dependencies of a plugin or if I can't do that popup a dialog telling "This plugin required that other plugin to run".

I was testing the plugins search yesterday and the results are almost good. I have some other issues not tied to the search engine itself : incomplete plugins metadata indexed, etc. Choosing Apache Lucene for plugins full text search was an interesting move. At first sight, I was telling myself "Apache Lucene will be usefull but might be overkill for a simple gui application, ... but for good search results... I need a good search engine instead of using regular expressions to match the results".

I will start writing a developer guide in few days.

5 comments:

dickd said...

Yves,

I tried the Java Webstart trial version on Mac OS 10.4. Just want to let you know that it does not work. My guess is that it needs java 1.6 because of the groupLayout.
Unfortunately java 1.6 is not available yet for Mac OS.

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1178)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1125)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:968)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
at com.sun.javaws.Launcher.run(Launcher.java:165)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
at net.sf.xpontus.controllers.impl.XPontusRunner.main(XPontusRunner.java:390)
... 11 more

Yves Zoundi said...

Thanks I'll fix it asap.

Yves Zoundi said...

The error is fixed. If you manage to get it running, can you send me a screenshot of XPontus on Mac OS please? I never saw how XPontus looks like on a Mac.

Have a nice evening

dickd said...

Hi Yves,

Thanks for this fix. XPontus is now working on MacOs X !
I did not know where to send the screenshot. So I posted it to the sourceforge xpontus site under "bugs" id 1906130. You can pick it up there.

Yves Zoundi said...

Cool, I am glad to see it running on Mac. I will start fixing validation bugs today. I would like to have another screenshot of XPontus running on Mac, I would like the main window of XPontus close to the menubar. I'll add that screenshot to the website screenshots page if you don't mind.

Some "view perspectives" will be added to display "Source View, Tree View" in the current document. I had them before but it was far from being "features complete". I am wondering if it should be a plugin or not, but It will be there when I release.

Here is the use case for perspectives :
* If an opened file is not an XML document, a text document will be displayed.
* If a document is XML, a tabbedpane will be display with 2 tabs "Tree Editing", "Source Editing".