[JPP-Devel] [ jump-pilot-Feature Requests-3521260 ] throw error message when JAI runs out of memory
Feature Requests item #3521260, was opened at 2012-04-24 23:48 Message generated for change (Tracker Item Submitted) made by michaudm You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=679909aid=3521260group_id=118054 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GUI/Interface Group: None Status: Open Resolution: None Priority: 3 Private: No Submitted By: michael michaud (michaudm) Assigned to: Nobody/Anonymous (nobody) Summary: throw error message when JAI runs out of memory Initial Comment: From Usability and Translation Improvements for OpenJUMP UI see discussion on loading large tif/jpg (10k x 10k px)on devel list: OJN 1.2D: Add Image Layer there is no message appearing on OJ when JAI runs out of memory. The image is just not presented. Stefan -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=679909aid=3521260group_id=118054 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] merger sf.net trackers
Hi, tracker Usability and Translation Improvements for OpenJUMP UI Ah sorry, I've never tracked this one. Just transferred one to the Feature Request Tracker Others will take some more time Maybe some of ticket's authors can help to update them Jukka : translation issues https://sourceforge.net/tracker/?func=detailaid=1684681group_id=118054atid=997723 Peppe :Remove Draw Polygon and Draw Tools from Editing Toolbox https://sourceforge.net/tracker/?func=detailaid=1925858group_id=118054atid=997723 https://sourceforge.net/tracker/?func=detailaid=1925858group_id=118054atid=997723 (I want to test these one, don't know what it is about) Transferred to Feature Request tracker Mostly agree with Peppe, but would need a vote. Peppe :Add the Union/Cut tools from Tools menu to Editing Toolbox https://sourceforge.net/tracker/?func=detailaid=1925859group_id=118054atid=997723 https://sourceforge.net/tracker/?func=detailaid=1925859group_id=118054atid=997723 (think this one needs to be updated) Transferred to Feature Request tracker Since ticket date, plugins have been included in map context menu. Is it still worth adding them to Editing toolbox ? Needs other users advice. Non-window users : https://sourceforge.net/tracker/?func=detailaid=1803634group_id=118054atid=997723 (MrSid on linux/mac) Stefan : https://sourceforge.net/tracker/?func=detailaid=1779767group_id=118054atid=997723 (Big image loading silently fails : I must test it, but I will probably transfer it to the Bug Tracker) Transferred to Feature Request tracker Mostly fixed. Small improvement ca still be done. Michaël ..ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [ jump-pilot-Feature Requests-3521255 ] Remove Draw Polygon and Draw Tools from Editing Toolbox
Feature Requests item #3521255, was opened at 2012-04-24 23:16 Message generated for change (Comment added) made by jratike80 You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=679909aid=3521255group_id=118054 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GUI/Interface Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: michael michaud (michaudm) Assigned to: Nobody/Anonymous (nobody) Summary: Remove Draw Polygon and Draw Tools from Editing Toolbox Initial Comment: From Usability and Translation Improvements (2008-03-26) In the Editing toool box the Draw contrained polygon and draw constrained linestring seems to do basically the same thing od original Draw polygon and Draw linestring. The usage of keyboard keys help to work on Constrained/Unconstrained mode. The only difference is that original draw polygon has an option to draw holes which draw const. pol. doesn't have. But now, thanks to Erwan's cut cookie polygon, it is not necessary to have the double of the same drawing tools on the toolbox. I propone to eliminate original draw polygon and draw linestring to make the toolbox more flexible. Peppe -- Comment By: Jukka Rahkonen (jratike80) Date: 2012-04-25 01:48 Message: Perhaps, but i would say that not yet. The constrained drawing tools are not of as high quality than the normal ones. - Digitising holes easily is very important. By the way, easier than to use the coocie cutter tool is to take the selection tool, select the feature and continue with constrained polygon tool - Ctrl key does not seem to do anything useful (read more later) so it could still be reserved for selecting features - The screen tends to flicker more than with the standard tool - Drawing constrained polygons with Cntr pressed is doing something odd. It is hard to describe, better to try it yourself - Check all the Length, Incremental angle and Angle check boxes and start digitizing, play with Shift and Ctrl. It may be that selecting all those does not make sense but the odd behaviour makes user to think that OpenJUMP is pretty poor. - Shift and Cntr in the incremental angle do not work as supposed and I think that Cntr does not have any affect now - Also Length constraint might have a keyboard shortcut for overrunning the setting - Users should get some very clear visual hint when the constrainst are on or they will get mad when trying to do just normal digitising. Cursor should turn red or something for giving a warning. - Shift activation makes it impossible to use angle constraints without using keyboard. Perhaps constrained tools could be placed to another tool box which is not in use by default in a similar way than Jython toold which comes from the Customise menu. CAD drawing tools in Kosmo is another example. -- Comment By: michael michaud (michaudm) Date: 2012-04-24 23:21 Message: Agree with Peppe's propositions. It could simplify the toolbox (and make place for other useful tools). This may be an important change for peolpe doing a lot of edits. I think such a change should be submit to a vote. Currently, the cut polygon tool does not replace the way hole can be done with shift key as it needs two actions : cut and remove. It would need a shift option do do cut/remove in one action. Michaël -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=679909aid=3521255group_id=118054 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] merger sf.net trackers
Hi, I can't check the one you assigned for me because of this: ERROR Artifact: This Artifact Has Been Made Private. Only Group Members Can View Private ArtifactTypes. -Jukka Rahkonen- Michaël Michaud wrote Hi, tracker Usability and Translation Improvements for OpenJUMP UI Ah sorry, I've never tracked this one. Just transferred one to the Feature Request Tracker Others will take some more time Maybe some of ticket's authors can help to update them Jukka : https://sourceforge.net/tracker/?func=detailaid=1684681group _id=118054atid=997723 Peppe : https://sourceforge.net/tracker/?func=detailaid=1925858group _id=118054atid=997723 (I want to test these one, don't know what it is about) Peppe : https://sourceforge.net/tracker/?func=detailaid=1925859group _id=118054atid=997723 (think this one needs to be updated) Non-window users : https://sourceforge.net/tracker/?func=detailaid=1803634group _id=118054atid=997723 (MrSid on linux/mac) Stefan : https://sourceforge.net/tracker/?func=detailaid=1779767group _id=118054atid=997723 (Big image loading silently fails : I must test it, but I will probably transfer it to the Bug Tracker) Michaël ..ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] merger sf.net trackers
On 25.04.2012 11:11, Rahkonen Jukka wrote: edgar.sol...@web.de wrote: I reopened the tracker to the public for review until the remaining tickets are closed. jukka did you log in to sf.net? are you a project member on sf.net? if not give me your username and i'll add you. I have a sourceforge login name jratike80 done, your now a proud jump-pilot member :) .. welcome, ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [ jump-pilot-Feature Requests-3521397 ] Translation of UI
Feature Requests item #3521397, was opened at 2012-04-25 10:56 Message generated for change (Tracker Item Submitted) made by michaudm You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=679909aid=3521397group_id=118054 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GUI/Interface Group: None Status: Open Resolution: None Priority: 3 Private: No Submitted By: michael michaud (michaudm) Assigned to: Nobody/Anonymous (nobody) Summary: Translation of UI Initial Comment: Transferred from Usability and Translation Improvements for OpenJUMP UI #1684681 Checked the whole list with OpenJUMP-20120423-r2834-PLUS.zip. Only a few and not so important things from this list remain. Edit menu Title of the dialog window Select Items by Circle from Selected Layers can not be translated. By the way, Cancel button in this dialog has no effect, the selection circle appears anyhow and Click selects items. You must select another tool to deactivate the circle. View menu In the Feature info table the tab tooltip hints Table View and HTML View can't be translated. In Zoom to coordinate dialog title stays as Input and Cancel button is in English as well. Tools menu Warp - Warping If you select normal warping (not incremental) then the vectors go automatically to a layer named Warping Vectors which can not be translated. Measure in feet -selection remains active until you select another tool while most other tools you select from the menu can also be de-selected there. Jukka -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=679909aid=3521397group_id=118054 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Aboutdialog
Hi ede On 23.04.2012 21:16, Matthias Scholz wrote: Hi ede, On 22.04.2012 21:07, Matthias Scholz wrote: Hi, I've commited a small fix in the AboutDialog. If the readme.txt file was not found, the Stacktrace was shown. This is bad if you run OJ as Webstart. Now nothing is viewed. actually not finding the readme.txt right now is an error, except when developing. that's why i left the stack there. That's right, it's an error. But to display this directly in the GUI is not the best way. This should be the task of the logging framework or the error dialog window. having the user to acknowledge the error is a useless exercise as he's merely meant to notice it, not to be disturbed in his workflow. using the log framework would probably lead to the error not being noticed by anyone. With logging framework i don't mean only the classic ones, such as log4j. I also meant the error dialog, which seems to be the better option than a raw stacktrace. (My subjective opinion) Can you life with the current code, that nothing is displayed if no readme.txt is found? At least until i found a solution for the webstart. Matthias ..ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- _ __ ___ _ ___ __ _ Technologieconsulting Matthias Scholz Siebigeröder Str 17a 06308 Klostermansfeld T +49 34772 34150 E m...@jammerhund.de W www.openjump.de _ __ ___ _ ___ __ _ -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] webstart classloader
edgar.sol...@web.de wrote: On 22.04.2012 21:07, Matthias Scholz wrote: The problem with Webstart is, that the classpath is only the jre/lib/deploy.jar. So we cannot load readme.txt from classpath :-( creating (self)signed jars for each and every release might more effort than necessary. you could probably write a small barebone webstarter that uses a custom classloader to fetch the release zip necessary directly from sf.net. that would as well enable you to load readme.txt and whatever file needed. Thats right, with the signing of the JAR's. Nice idea with an own downloader and classloader. But JWS takes care automatically downloading and caching of the jars. I will do some more research in JWS stuff in the next time. The actual OJ Webstart was only the first try. Call it a technology study ;-) The next problems i see, are plugin loading by lib/ext folder. Perhaps makes a mixture of JWS and own classloader sense... Matthias ..ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- _ __ ___ _ ___ __ _ Technologieconsulting Matthias Scholz Siebigeröder Str 17a 06308 Klostermansfeld T +49 34772 34150 E m...@jammerhund.de W www.openjump.de _ __ ___ _ ___ __ _ -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] OJ 1.5.2 release planning
Michaël and Ede when do you planning to release OJ 1.5.2? I ask, because i implement a enhancement of detachable internal frames. Such as attributesframe and the infotoolframe. I would like to commit this after 1.5.2. It makes more sense for 1.6. Matthias -- _ __ ___ _ ___ __ _ Technologieconsulting Matthias Scholz Siebigeröder Str 17a 06308 Klostermansfeld T +49 34772 34150 E m...@jammerhund.de W www.openjump.de _ __ ___ _ ___ __ _ -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] OJ 1.5.2 release planning
On 25.04.2012 20:34, Matthias Scholz wrote: Michaël and Ede when do you planning to release OJ 1.5.2? I ask, because i implement a enhancement of detachable internal frames. Such as attributesframe and the infotoolframe. I would like to commit this after 1.5.2. It makes more sense for 1.6. don't worry. 1.5 stable is a separate branch for now. what exactly do you mean by detachable internal frame is this something that has been discussed here? ..ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Aboutdialog
On 25.04.2012 20:08, Matthias Scholz wrote: Hi ede On 23.04.2012 21:16, Matthias Scholz wrote: Hi ede, On 22.04.2012 21:07, Matthias Scholz wrote: Hi, I've commited a small fix in the AboutDialog. If the readme.txt file was not found, the Stacktrace was shown. This is bad if you run OJ as Webstart. Now nothing is viewed. actually not finding the readme.txt right now is an error, except when developing. that's why i left the stack there. That's right, it's an error. But to display this directly in the GUI is not the best way. This should be the task of the logging framework or the error dialog window. having the user to acknowledge the error is a useless exercise as he's merely meant to notice it, not to be disturbed in his workflow. using the log framework would probably lead to the error not being noticed by anyone. With logging framework i don't mean only the classic ones, such as log4j. I also meant the error dialog, which seems to be the better option than a raw stacktrace. (My subjective opinion) Can you life with the current code, that nothing is displayed if no readme.txt is found? At least until i found a solution for the webstart. sorry, i can't. not having the readme.txt there is an error. having the user to have to acknowledge this in a dialog with ok button is no option (see disturbs work flow above). please find a solution that differentiates between webstart and desktop oj. you could as well simply live with it for the time being until you have webstart in a fashion that's able to load external files? if not, then simply write a routine that integrates readme.txt into your jar file on webstart releasing. ..ede ..ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] merger sf.net trackers
Hi Jukka, Thanks for your valuable inputs about edit tools and translation. Michaël edgar.sol...@web.de wrote: I reopened the tracker to the public for review until the remaining tickets are closed. jukka did you log in to sf.net? are you a project member on sf.net? if not give me your username and i'll add you. I have a sourceforge login name jratike80 -Jukka- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] OJ 1.5.2 release planning
Hi don't worry. 1.5 stable is a separate branch for now. what exactly do you mean by detachable internal frame is this something that has been discussed here? I think you mean a frame which can be moved out of the workbench frame. Very useful (especially if you have two screens). I've done a small and dirty script do do that 2 years ago. But I haven't try to make something cleaner, because I thought that to go further, we'll have to adopt a docking framework. Michaël ..ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] mvn build doc in wiki
just updated http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Creating_an_OJ_release_version to the latest changes. ..ede -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Very few resource bundles are missing
Hi all, During my update to the last OJ version (1.5.1-r2721 = release), it appeared that some resource bundles are missing, both for the jump.properties file and for the translated files (it was probably already the case before this version but I never realised it). Here are the missing elements: - ui.MenuNames.TOOLS.ADVANCED - org.openjump.core.ui.plugin.file.open.SelectFilesPanel.archived-files - org.openjump.core.ui.plugin.file.open.ChooseProjectPanel - org.openjump.core.ui.plugin.file.open.ChooseProjectPanel.instructions - org.openjump.core.ui.plugin.file.open.SelectFileOptionsPanel.file-type - org.openjump.core.ui.plugin.file.open.SelectProjectFilesPanel.all-files Regards, Eric -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Some possible improvements in the last OJ
Hi, I tested a bit more the last version of OJ. I found a small bug and some improvements to possibly do. Bug: the export in SVG works well for small datasets but doesn't work for important ones (creation of a kind of strange noisy image but not in a SVG format, except for the file extension). If it's just an extract of the important dataset, the export is done without any problem. I was able to reproduce this problem with more than one layer. Possible improvements: - improve the output layer name of the AttributeQuery plugIn (com.vividsolutions.jump.workbench.ui.plugin.analysis.AttributeQueryPlugIn); at the moment, the name is something like it NAMELAYER-operator, e.g. buildings-=, resulting from the following code : String outputLayerName = LayerNameGenerator.generateOperationOnLayerName(funcNameToRun, srcLayer.getName()); It could be improved by using the following pattern: NAMELAYER-ATTRIBUTENAME_operator_VALUE - when the window of Sextante is opened, it is impossible to interact with a OJ project. Therefore, it isn't easy to see quickly the result. It could be nice to be able to switch between Sextante and OJ (I hadn't time to find where the code could be improved: sorry to just propose it like it). - the last improvement is about the OJ-PLUS startup. As you mentioned in some previous email, the OJ-PLUS is quite slow. I was a bit curious so I decided to have a look to understand the reason. Here it is (time results based on my laptop configuration, i.e. Ubuntu 32-bits 4Go): -- normal launching time of OJ-PLUS: 15 seconds -- the big change from the previous version was Sextante. So I decided to have a look to Sextante. Its initialisation is not in the execute method but in the initialise one. So I moved a part of the code from the initialisation to the execution and compiled the sextante binding. This change involves other small changes for the other Sextante plugins (i.e. automatic creation of History, Modeler and Results plugins in the menu) but it shouldn't be difficult to manage. Sextante can be initialised (in nearly 7-8 seconds) and launched via the menu or the button without problem. But the question is, what is the new startup time? 7 seconds. Comparatively to the 4 seconds of the OJ-CORE startup, it sounds not too bad. But maybe it is possible to go further? That's why I decided to test the lazy loading that Michaël proposed the other day in your startup of PLUS discussion and I think OJ has everything we need to do what you all proposed. First, I created a plugin which allows to create dynamically a new plugin following this simple structure: - a classical definition: CreationOfPluginPlugin extends AbstractPlugIn implements ThreadedPlugIn - classical initialisation, - add an ok button to launch it via the MultiInputDialog interface, - and here is the run method: public void run(TaskMonitor monitor, PlugInContext context) { new TestPlugin().initialize(context); context.getWorkbenchFrame().invalidate(); context.getWorkbenchFrame().validate(); } I used the invalidate and validate methods to allow the refresh of the workbench in order to see the new menu of the plugin. It is unnecessary if the menu title of the new plugin already exists (but it's safer to use it as it works in every cases). So if we can do it, what do we need more: - an interface to do the same thing than in Kosmo: it shouldn't be very difficult to do it, - remove the Extension classes of the different plugins to avoid their dynamic loading during the startup, - maybe to store the extensions in another repository than lib/ext, maybe lib/plugins - a dynamic JAR loaded system, which can be based simply on Java library or on OSGI for example, - a xml file to store the user preferences, - a new plugin which will be loaded by default, reading the xml file and initialising the plugins defined by the user, - and then a class to enable the downloading of new plugin and an interface to manage a possible proxy. Technically, everything is not too difficult except the last point. Indeed, what mechanism use to store the information about the plugins? In a first time, we could centralise the plugins, e.g. on the OJ sourceforge website, involving that we could define a unique xml file to centralise the information and as follows: plugins plugin nameplugin_one.jar/name descriptionblablabla blablabla/description dependencies dependencydependency_one.jar/dependency dependencydependency_two.jar/dependency /dependencies version1.0/version /plugin /plugins Thus we could download this file in OJ, do the differential with the existing local plugins (maybe using a md5 key which will allow to check if a plugin exist or not and to know if the file has been download correctly). To go further, we could authorise also other URL for the plugin with the same centralise XML system. Then think about a more flexible system to allow the upload by developers of a plugin with its XML file description. What do you