Orion Pobursky Wrote:...if you're program is cross platform...Yes, it is. I had to setup a test environment to test it on Linux, Windows (XP,Vista,7,8) and Mac OS X.
Orion Pobursky Wrote:Will LDPartEditor have a plugin system?
Yes, I did some preparations to support plugins in the future (I guess it will be integrated in release 1.0.0).
When I first thought of plugins for my application it was the beginning of 2012 and there was no line of code written.
However, a custom plugin has to extend the my Plugin class and must override getPlugInAuthor(), getPlugInName(), onCanvas(...) and onData(...).
There will be a plugin folder in the application directory. You can put the sourcecode of the java class there and it will be compiled at runtime if you decided to run your custom plugin.
Of course, you'll need the documentation for the Composite3D and DatFile classes. I'll provide them to you, after release 0.8.0 is out.
Code:
import org.nschmidt.ldparteditor.plugin.Plugin;
import org.nschmidt.ldparteditor.composites.Composite3D;
import org.nschmidt.ldparteditor.data.DatFile;
public class MyLpePlugin extends Plugin {
public MyLpePlugin() {
}
@Override
public String getPlugInAuthor() {
// Return your name here...
return "Nils Schmidt [BlackBrick89]";
}
@Override
public String getPlugInName() {
// Return the name of the plugin here...
return "blah";
}
@Override
public void onCanvas(Composite3D c3d) {
// Write here what you want, if your plugin does the job for the 3D editor view...
return;
}
@Override
public void onData(DatFile data) {
// Write here what you want, if your plugin does the job for the text editor view...
return;
}
}