Re: [JPP-Devel] ReplaceValuePlugIn

2007-10-13 Thread Eric Lemesre
Paul,

Thanks for attachement !
It possible to build a conditionnal assembly?

some think like that :
assembly

  moduleSets
moduleSet 
file:///home/lemeser/.mozilla/firefox/czpjfwd3.default/ScrapBook/data/20071008234927/assembly.html#class_moduleSet
  includeSubModules/
  includes
  includeorg.openjump.plugin:*/include
   /includes
  excludes
excludeorg.openjump.plugin:${plugin.enable.PostGISPlugin}/exclude
excludeorg.openjump.plugin:${plugin.enable.JoinTable}/exclude
excludeorg.openjump.plugin:${plugin.enable.OtherPlugin}/exclude
  /excludes
/moduleSet
file:///home/lemeser/.mozilla/firefox/czpjfwd3.default/ScrapBook/data/20071008234927/assembly.html#class_moduleSet
  /moduleSets

and enablePlugIn.properties
# plugin to enable when is not empty
plugin.enable.PostGISPlugin=PostGISPlugin
plugin.enable.JoinTable=
plugin.enable.OtherPlugin=OtherPlugin

it is verry simple to enable/disable plugin without touch the assembly
descriptor

Eric.

2007/10/13, Paul Austin [EMAIL PROTECTED]:

 Eric,

 The current maven build is a non standard build as OJ doesn't have the
 correct directory structure. I'd like to get that changed at some point.

 For the main maven build for OJ i don't think we should split the api
 and workbench as for JUMP deliveries you need both. We can however
 create assemblies for them so that the are available if anyone else
 needs them.

 I also have another assembly descriptor that can be used in another
 project to build a custom OJ bundle with a bunch of plug-ins, basically
 make all you plug-ins maven plug-ins, add a dependency to OJ and the
 plug-ins from a wrapper project and it will bundle them into the lib/ext
 directory. Unfortunately due to some bugs in Maven you have to do some
 customization for it to work. See attached example.

 Paul

 Eric Lemesre wrote:
  Paul,
 
  I commit the change and I complete my first commit (language and
  changelog).
  I like maven ;-) but my local repository is verry small.
  When i package openjump (mvn package) i have
   5 required artifacts are missing :
 
  * net.sf.buoy:buoy:jar:1.8
  * com.sun.media:jai_codec:jar:1.1.2_01
  * com.ermapper:ermapper:jar:UNKNOWN
  * javax.media:jai_core:jar:1.1.2_01
  *  org.jmat:jmat:jar:5.0
 
  It is probably the good time to build a maven2 repository for openjump?
  and put in
  openjump-core-1.2D.jar
  openjump-core-1.2C.jar
  openjump-core-1.2-SNAPSHOT.jar
 
  and with the same version
  openjump-api and openjump-workbench
 
  and all necessary jar for build.
 
  Eric
 
  2007/10/12, Paul Austin [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]:
 
  Eric,
 
  Sorry about that, it must have been something to do with the merge
  process. Have you been able to recover the old version?
 
  Paul
 
  Eric Lemesre wrote:
   Hi paul,
  
   It is probebly a mistake, but your commit( rev 1141) erase my
  commit
   (rev 1132) on
   org.openjump.sigle.plugin.replace.ReplaveValuePlugin.java
  
   Eric
  
   2007/10/3, Sunburned Surveyor  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]:
  
   Thanks for filling us in on how you use OpenJUMP Eric, and
  thank you
   for making the effort to contribute.
  
   The Sunburned Surveyor
  
   On 10/1/07, Eric Lemesre [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
Hi SS,
   
I am using OpenJUMP for visualisation state's vendor  :
 where
   they work,
where they live and where is her cusmoters.
Other software like ERSI EMG3, is too expensive an less
  modulate
   than
OpenJUMP.
   
I can get data from PostgreSQL, Degrees, and geoserver and
  give
   it to
resposables (quikly ;-) ).
   
I hope my compagny always use OpenJUMP and give more
  developpers to
contribute.
At this moment I am alone ;-{.
   
   
2007/9/28, Sunburned Surveyor 
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]:
 Eric,

 I am getting to this e-mail a little bit late, but I see
  that
   Michael
 and Stefan have already given you a warm welcome.

 I just want to say thanks for your contribution and I
  hope we
   get to
 work together in the future.

 I'm curious, how are you using OpenJUMP?

 The Sunburned Surveyor

 On 9/28/07, Stefan Steiniger [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED] mailto:[EMAIL 

Re: [JPP-Devel] ReplaceValuePlugIn

2007-10-13 Thread Paul Austin

Hi Eric,

IN theory you can use includes and excludes to simplify the whole thing, 
but there seems to be a bug in the maven assembly plug-in that only 
processes the first include or exclude. Which is why the descriptor was 
so long winded. I have a bug open on it but nothing seems to be 
happening with it.


Paul

Eric Lemesre wrote:

Paul,

Thanks for attachement !
It possible to build a conditionnal assembly?

some think like that :
assembly
  moduleSets

moduleSet 
file:///home/lemeser/.mozilla/firefox/czpjfwd3.default/ScrapBook/data/20071008234927/assembly.html#class_moduleSet
  includeSubModules/
  includes
  includeorg.openjump.plugin:*/include
   /includes
  excludes
exclude
org.openjump.plugin:${plugin.enable.PostGISPlugin}/exclude
excludeorg.openjump.plugin:${plugin.enable.JoinTable}/exclude
excludeorg.openjump.plugin:${plugin.enable.OtherPlugin}
/exclude
  /excludes
/moduleSet 
file:///home/lemeser/.mozilla/firefox/czpjfwd3.default/ScrapBook/data/20071008234927/assembly.html#class_moduleSet
  /moduleSets


and enablePlugIn.properties
# plugin to enable when is not empty
plugin.enable.PostGISPlugin=PostGISPlugin
plugin.enable.JoinTable=
plugin.enable.OtherPlugin=OtherPlugin

  
it is verry simple to enable/disable plugin without touch the assembly 
descriptor


Eric.

2007/10/13, Paul Austin [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]:


Eric,

The current maven build is a non standard build as OJ doesn't have
the
correct directory structure. I'd like to get that changed at some
point.

For the main maven build for OJ i don't think we should split the api
and workbench as for JUMP deliveries you need both. We can however
create assemblies for them so that the are available if anyone else
needs them.

I also have another assembly descriptor that can be used in another
project to build a custom OJ bundle with a bunch of plug-ins,
basically
make all you plug-ins maven plug-ins, add a dependency to OJ and the
plug-ins from a wrapper project and it will bundle them into the
lib/ext
directory. Unfortunately due to some bugs in Maven you have to do
some
customization for it to work. See attached example.

Paul

Eric Lemesre wrote:
 Paul,

 I commit the change and I complete my first commit (language and
 changelog).
 I like maven ;-) but my local repository is verry small.
 When i package openjump (mvn package) i have
  5 required artifacts are missing :

 * net.sf.buoy:buoy:jar:1.8
 * com.sun.media:jai_codec:jar:1.1.2_01
 * com.ermapper:ermapper:jar:UNKNOWN
 * javax.media:jai_core:jar:1.1.2_01
 *  org.jmat:jmat:jar:5.0

 It is probably the good time to build a maven2 repository for
openjump?
 and put in
 openjump-core-1.2D.jar
 openjump-core-1.2C.jar
 openjump-core-1.2-SNAPSHOT.jar

 and with the same version
 openjump-api and openjump-workbench

 and all necessary jar for build.

 Eric

 2007/10/12, Paul Austin [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:

 Eric,

 Sorry about that, it must have been something to do with the
merge
 process. Have you been able to recover the old version?

 Paul

 Eric Lemesre wrote:
  Hi paul,
 
  It is probebly a mistake, but your commit( rev 1141) erase my
 commit
  (rev 1132) on
  org.openjump.sigle.plugin.replace.ReplaveValuePlugin.java
 
  Eric
 
  2007/10/3, Sunburned Surveyor 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]:
 
  Thanks for filling us in on how you use OpenJUMP Eric, and
 thank you
  for making the effort to contribute.
 
  The Sunburned Surveyor
 
  On 10/1/07, Eric Lemesre [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
  mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
   Hi SS,
  
   I am using OpenJUMP for visualisation state's
vendor  : where
  they work,
   where they live and where is her cusmoters.
   Other software like ERSI EMG3, is too expensive an less
 modulate
  than
   OpenJUMP.
  
   I can get data from PostgreSQL, Degrees, and
geoserver and
 give
  it to
   resposables (quikly ;-) ).

[JPP-Devel] Open Plugin

2007-10-13 Thread Paul Austin
As discussed the other day I'm implementing another new open plugin 
which is designed to allow pluggable wizards for loading other things in 
addition to files.

I have a prototype of this working which first shows a list of types of 
things that can be loaded with an optional Icon. For this I'd like to 
have 32x32 size icons for this with the name of the type below it. If 
someone can help with some icons that would be great. At the moment I'm 
just using the 16x16 icons.

The default implementation will have my Open File and Open Project icon. 
In addition to this it will get all non file based 
DataSourceQueryChoosers registered and wrap them in my new framework. 
For this it uses getComponent on the chooser to get the UI to accept the 
options and then uses the getDataSourceQueries when finished is pressed 
to load them. I've tested this with the PostGIS plug-in and it works 
without any changes. It should also work with the ArcSDE one too.

The other option is developers can create their own WizardGroup using 
the following interface and register this with the OpenPlugIn. The 
advantage of this approach is you can have a more complex UI with 
validation of fields etc. The getPanels() method returns one or more 
WizardPanels for the UI. The getFirstId() returns the ID of the first 
panel to use and the run method is called after the finish button is 
pressed. It's in this method that the loading of data is done. It uses 
the Threaded plugin so it will not be running in the UI thread.


public interface WizardGroup {
  public String getName();

  public Icon getIcon();
 
  public ListWizardPanel getPanels();
 
  public String getFirstId();
 
  public void run(TaskMonitor monitor);
}


I'm going to clean everything up this weekend and check in next week.

Paul

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel