Re: [JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2010-01-12 Thread Benjamin Gudehus
I forgot to mention, that if no getTaskMonitorDialog() is provided by the PlugIn, the default TaskMonitorDialog is used. 2010/1/12 Benjamin Gudehus > For customizing the TaskMonitorDialog the source code of a plugin could > look like this: > > > class HelloProgressPlugIn extends AbstractPlugIn i

Re: [JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2010-01-12 Thread Benjamin Gudehus
For customizing the TaskMonitorDialog the source code of a plugin could look like this: class HelloProgressPlugIn extends AbstractPlugIn implements ThreadedPlugIn { void initialize(PlugInContext pluginContext) {} boolean execute(PlugInContext pluginContext) { return true }

Re: [JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2009-12-30 Thread Sunburned Surveyor
It's been a while since I posted that thread, and I'm afraid I don't remember all of the details that made me ask the questions. I know I definitely had concerns about adding layers inside a thread. It still seems to me that this would trigger painting of the LayerViewPanel. When this repainting is

Re: [JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2009-12-10 Thread Stefan Steiniger
Hei Benjamin Gudehus wrote: > Hi! > > PS: Who send the first message? I did not get it. > > I found the first message here: > http://www.mail-archive.com/jump-pilot-devel@lists.sourceforge.net/msg06770.html aha.. thanks. I was traveling in August - that's why I did not know it. But its q

Re: [JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2009-12-10 Thread Benjamin Gudehus
Hi! PS: Who send the first message? I did not get it. > I found the first message here: http://www.mail-archive.com/jump-pilot-devel@lists.sourceforge.net/msg06770.html you know that this is possible using > * monitor.report("computing feature " + count + " of " + numFeatures); > I already impl

Re: [JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2009-12-09 Thread Stefan Steiniger
> > BTW: I'm currently trying to modify the TaskMonitorDialog to show a > progressbar with addional information. you know that this is possible using * monitor.report("computing feature " + count + " of " + numFeatures); I also use often the following option to send messages during processing

[JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2009-12-09 Thread Benjamin Gudehus
Hi! > I'm trying to figure out how to separate the code by putting the one > task in the execute method and the other task in the run method, but I > can't find a solution yet. (I need to determine the relationship > between the execute and run method. The Javadoc doesn't seem to > indicate when t

Re: [JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2009-12-09 Thread Benjamin Gudehus
OK, I figured out this call hierarchy for * execute() (in AbstractPlugIn.toActionListener()) and * run() (in TaskWrapper.run()). === FeatureInstaller.addMainMenuItem() === public void addMainMenuItem(PlugIn executable, String[] menuPath, String menuItemName, boolean checkBox, Icon icon, Enab

[JPP-Devel] Question about TaskMonitorDialog, ThreadedPlugIn, and Threads in OpenJUMP

2009-08-17 Thread Sunburned Surveyor
Last week I was in the process of wrapping-up my plug-in that allows the user to import survey point data in a text delimited format. I wanted to show the user a progress bar as the data was being loaded. I first attempted to use the TaskMonitorDialog directly, which didn't work very well. (The dia