Re: [JPP-Devel] General refactoring of OpenJUMP
Hi Landon! 2012/1/22 Landon Blake sunburned.surve...@gmail.com One of my challenges when trying to unit test parts of the OJ core previously has been the number of inter-dependencies. Did you come up with a mock or stub for WorkbenchContext? I really see some value in sharing mocks and stubs for OJ core components. No, I didn't mock WorkbenchContext. TestTools.buildWorkbench() uses some methods from JUMPWorkbench.main() to create the Workbench with WorkbenchContext and WorkbenchFrame. I looked at the code here: http://openjump-tools-docs.googlecode.com/git/javadoc/index.html I must admit I'm a little confused. Are you writing an OJ specific unit testing framework from scratch. I didn't see any references to JUnit or another unit testing framework in your code. Since JUnit 4 you may add annotations to Plain Old Java Objects/Classes (POJOs). I use annotations like @Test and @Setup in the test classes. Keep up the good work Benjamin. I wish I had more time to keep up with what you were doing. Thanks. Landon P.S- I really appreciate the tips about running OJ from Eclipse and having it load an extension defined in another Eclipse Project. I'll have to mess around with that, but I may be back to ask for help on getting the Eclipse runtime configuration file set up so I can do this. --Benjamin -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] MultiInputDialog is a jack of all trades device
Hi Michaël! 2012/1/19 Michaël Michaud michael.mich...@free.fr Hi, Let's see ! I will write something about the (1) code interface concepts and (2) appealing functional design in a later post. I've significantly reworked the MultiInputDialog design about one year ago, because I wanted to make it extendable to MultiTabInputDialog and to add some other components like the one to choose a Layer's attribute. I did not want to create a second framework and spent a considerable effort to make it more extendable without breaking anything. And it works well. One can even use the JCS Conflation Suite back from 2003 which makes use of MultiInputDialog and it works with newer versions of OpenJUMP. A long time before, I tried to introduce buoy ,which, I thought, had a clever design for UI development (still used by simple query plugin), but I used MultiInputDialog for all further developments. Of course, there are probably other (better) ways to do, so I'm quite interested into your proposition. By the way, what is your use case ? The use case is creating simple plugin configuration dialogs for scripting enviroments, with the JComponents as fields in a class or with them within a HashMap. Michaël --Benjamin -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] workbench-properties.xml
Well, I would say its not necessary for end-user binaries - but it should be in the source code distribution. And yes, I am using it. I call default-plugins.xml as standard in Eclipse to get the full OJ loaded. Then I use workbench-properties.xml for loading all my local developed plugins (i.e. the ones I currently develop before I create an Extension) These plugins under development are normally stored in (an-)other eclipse project(s) and using the file allows me to do hot code replacement debugging without touching the original setting/plugins of OJ. And, I actually would recommend every developer to do it this way (of course... there are other approaches as I learned recently). Finally yes, workbench-properties.xml came with the original JUMP and was described in the JUMP Developer guide as best practices. We also have that described on the Wiki in the developer tutorial - since the very beginning. stefan Am 24.01.12 14:52, schrieb edgar.sol...@web.de: On 24.01.2012 22:18, Michaël Michaud wrote: Hi, that's just a warning. i intend to get to this but it for sure doesn't break anything. what ist the workbench-properties.xml actually for we deliver a skeleton xml file for this in bin/ . ahh i recall, we or the user can add extensions and plugins here... is this parameter actually mandatory? who except developers uses this? Oh, I confused this file with workbench-state.xml :-[ . Workbench-properties is there from the beginning, but it seems that default-plugins.xml does exactly what workbench-properties was intended for. Not sure it's still useful, but there is no urgency to remove it. just tried, oj starts fine without having it by default added in start scripts. i'll drop a note in readme.txt and remove it from bat/sh, because currently it serves no purpose. who wants to can add it again. manually ;) ..ede -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] workbench-properties.xml
On 25.01.2012 18:13, Stefan Steiniger wrote: Well, I would say its not necessary for end-user binaries - but it should be in the source code distribution. which is that again? And yes, I am using it. I call default-plugins.xml as standard in Eclipse to get the full OJ loaded. Then I use workbench-properties.xml for loading all my local developed plugins (i.e. the ones I currently develop before I create an Extension) you can actually create your extension already and enter it here intead of each plugin These plugins under development are normally stored in (an-)other eclipse project(s) and using the file allows me to do hot code replacement debugging without touching the original setting/plugins of OJ. i don't want to remove the functionality, i just want to remove it as default parameter in startup scripts because end users usually don't use it. And, I actually would recommend every developer to do it this way (of course... there are other approaches as I learned recently). that's the way it was described by vividsolutions and that's how i do it as well Finally yes, workbench-properties.xml came with the original JUMP and was described in the JUMP Developer guide as best practices. We also have that described on the Wiki in the developer tutorial - since the very beginning. agreed, again. so you are not opposing to edit the start scripts as mentioned? or are you? or :) ..ede stefan Am 24.01.12 14:52, schrieb edgar.sol...@web.de: On 24.01.2012 22:18, Michaël Michaud wrote: Hi, that's just a warning. i intend to get to this but it for sure doesn't break anything. what ist the workbench-properties.xml actually for we deliver a skeleton xml file for this in bin/ . ahh i recall, we or the user can add extensions and plugins here... is this parameter actually mandatory? who except developers uses this? Oh, I confused this file with workbench-state.xml :-[ . Workbench-properties is there from the beginning, but it seems that default-plugins.xml does exactly what workbench-properties was intended for. Not sure it's still useful, but there is no urgency to remove it. just tried, oj starts fine without having it by default added in start scripts. i'll drop a note in readme.txt and remove it from bat/sh, because currently it serves no purpose. who wants to can add it again. manually ;) ..ede -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Renaming functions and moving menu positions - need for guidelines?
Hei, I know the Simple Feature Specification as well But exactly those 2 items: * Spatial Join and * Polygon Overlay are not part of it - nor even mentioned, because they are advanced functions. so - I would propose to rename Spatial Join / Transfer Attributes now. And doing it before(!) the release. Because the item was first called Transfer Attributes (which is more descriptive), then it got renamed to Spatial Join and also moved from Edit Attributes to Analysis at the same time. And this is clearly not good for our users - as they can only find it by testing all functions. And concerning Polygon Overlay... - we can leave as it is.. I actually taught that too as polygon overlay in general with polygon intersection as specific operation that people need to explain. stefan (another teacher) Am 23.01.12 05:42, schrieb Uwe Dalluege: Hi, at 2011.05.16 we had a discussion about changing menues (see below). My opinion again is to use names from OGC. http://www.opengeospatial.org/standards/sfa Please do not change every OJ version the menues! Because it is hard work for the users to find them and it is hard to update a tutorial. Regards Uwe (The academic teacher) :-) old mail: Hi Michaël, thank you for your answer The problem with one/two layer is, that the Geometry Functions works with one and with two layers. So maybe it is better to avoid splitting in one/two layer. Maybe you have the old OpenJUMP version 1.2F. There you find the whole Analysis functions under ToolsAnalysis... But you are right. This is my opinion. Please ask the other users what they think about this. Thank you for your help. Regards Uwe Am 16.05.2011 08:27, schrieb Michaël Michaud: Hi, I'll post to the list again when I'll have the whole picture (submenus with new items and submenus with removed items) When you propose to put some items to the Analysis submenu, in your opinion, should they be directly under Analysis ? under AnalysisOneLayer ? Do you keep OneLayer/TwoLayer submenus ? Thanks, Michaël Le 16/05/2011 08:18, Michaël Michaud a écrit : Hi Uwe, I'm sorry, I was quite sure I sent an answer, but I should have delete my mail before I sent it. I think you make a good point by refering to OGC standard. I'm also not completely satisfied with the current tools menu. What I would like is - to have a clear vision of the whole menu (I think that the changes you propose may have other consequences on non-ogc features, and that some submenus may loose their legitimity after that change) - I'd like to have some feedback from other power users, because I think that many users have teir own idea about where tools should be and we already moves some tools. I will post your propositions again to the list Thanks, Michaël Le 16/05/2011 07:57, Uwe Dalluege a écrit : Good morning Michaël, last week I posted following mail to the JPP-Devel list (I hope so) I am not shure whether this mail arrived the mailing list. What do you you think about my suggestion? Do you think that it is possible and usefull to change the menues? Greeting from Hamburg Uwe Hi, it is a little tricky to find the spatial analysis functions in OpenJUMP. In the OpenGIS Implementation Specification for Geographic information - Simple feature access - Part 1: Common architecture http://www.opengeospatial.org/standards/sfa you find at page 17 (6.1.2.4) Methods that support spatial analysis there you find for example Buffer, Intersection and ConvexHull. Is it possible to move a) ToolsGenerateBuffer b) ToolsGenerateConvex Hull c) ToolsGenerateConvex Hull on Layer... d) ToolsEdit GeometryGeometry Functions... to ToolsAnalysis? because in the OGC Specification you will find this functions under Analysis. Regards Uwe Mit freundlichen Gruessen Uwe Dalluege Am 23.01.2012 11:58, schrieb Rahkonen Jukka: Hi, Do I remember right or was there some academic teacher with the discussion back then? And the reason for changing some naming and grouping was aiming to better match with some OGC document? I feel it is confusing to have slightly different names for about similar but not exactly same operations in ESRI world, OGC definitions etc. Union/merge/dissolve is one example that comes to my mind. It may be impossible to find an uniform names for everything. Some little example images about source layers before operation and after that would be nice to have available when selecting the tools and why not a lexicon telling what terms other popular softwares are using for the
Re: [JPP-Devel] osgeo live-dvd
For the tutorial - maybe I can look over it again on the weekend for necessary text edits. The issue is that several new screenshots need to be made as a lot of changes have been happening since 1.3.x in the menus (with respect to renaming). And that is gonna take a few hours. stefan Am 24.01.12 01:09, schrieb Michaël Michaud: Hi, OK, could opened it and have a quick look. Everything seems to work (currently, OpenJUMP 1.5.0 r2618) As a remainder - change the link to the final version in .sh (Ede) - add a link to plugin repository from overview page (Michael) - switch version number from 1.5.0 to 1.5.1 (Michael) - update the osgeo worksheet from darft - final (Michael) - add tutorial in the new 1.5 documentation folder on sourceforge as soon as possible (Stefan ?) Michaël Le 22/01/2012 19:17, edgar.sol...@web.de a écrit : On 22.01.2012 19:00, edgar.sol...@web.de wrote: as you don't have vmware available this might prove a bit difficult.. but, having the payer installed and a virtual machin i sent you ... try this hack: vmware player of course, ede -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] workbench-properties.xml
forgot: I would say its not necessary for end-user binaries - but it should be in the source code distribution. which is that again? openjump-core-src-1.5.X.zip stefan -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] osgeo live-dvd / documentation
Hi, For the tutorial - maybe I can look over it again on the weekend for necessary text edits. The issue is that several new screenshots need to be made as a lot of changes have been happening since 1.3.x in the menus (with respect to renaming). And that is gonna take a few hours. I think there is no urgency, just noticed that our documentation is organized by OJ version, and even if documentation written for 1.3 or 1.4 are still very useful, users may not check these directories. So maybe we can already put ongoing documentation in 1.5. my 2 cts Michaël stefan Am 24.01.12 01:09, schrieb Michaël Michaud: Hi, OK, could opened it and have a quick look. Everything seems to work (currently, OpenJUMP 1.5.0 r2618) As a remainder - change the link to the final version in .sh (Ede) - add a link to plugin repository from overview page (Michael) - switch version number from 1.5.0 to 1.5.1 (Michael) - update the osgeo worksheet from darft - final (Michael) - add tutorial in the new 1.5 documentation folder on sourceforge as soon as possible (Stefan ?) Michaël Le 22/01/2012 19:17, edgar.sol...@web.de a écrit : On 22.01.2012 19:00, edgar.sol...@web.de wrote: as you don't have vmware available this might prove a bit difficult.. but, having the payer installed and a virtual machin i sent you ... try this hack: vmware player of course, ede -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Tests in DeleteDuplicateGeometriesTest
Here are some ideas/questions for refactoring of the class: 1. List configuration parameters prominently (Layer itemLayer, boolean deleteOnlySameAttributes) So it is easier to see what parameters could be tested or used. 2. List language strings prominently (String langDescription, String langDeleteOnlySameAttributes, ...) So it is easier to find the translation strings in the translation files. 3. Split contents of initialize() into two methods (initializeLanguageStrings, initializeMenuItem) [Neal Ford calls this Composed Method ( http://www.ibm.com/developerworks/java/library/j-eaed4/index.html)] 4. Why is createEnableCheck static? 5. TaskMonitor is not used in delete(), delete() should return a FeatureCollection. 6. Extract attributesEqual logic into a new method areAttributesEqual(). 7. Never use one letter (or two letter) variable names ;) 8. Is there a better way to use while (it.hasNext())? I always used for (Feature feature in featureCollection) in Groovy, but this is not that simple in Java :( I will make these changes to the classes and add some test cases to the testing class. Then I will commit my changes to trunk. (We really need to dump Subversion in some point of time and switch to Git or Mercurial!) --Benjamin 2012/1/15 Benjamin Gudehus hasteb...@googlemail.com including 8 strict features = including 8 strict duplicates ;) 2012/1/15 Benjamin Gudehus hasteb...@googlemail.com 2012/1/15 Michaël Michaud michael.mich...@free.fr It took me a while to make it work, because in the same time, I tried to use Eclipse, then Netbeans that I've never really used for a big project. It was a horrible experience. How can Eclipse be so popular ? I'm really wondering. But JUnit also works for Netbeans, does it? I'm personally a fan of Eclipse, because of GroovyEclipse and Mylyn. Makes life so much easier. Finally, I could optimize DeleteDuplicateItemsPlugIn and create a unit-test. For a 50 000 building layer, it takes about 1 s instead of 2 mn ! Wow, that's much. I looked at a diff for the changes and saw the IndexedFeatureCollection and the HashSet. I wonder if there is a webapplication to upload the diff and review/comment it online. Here is a small suggestion for an improvement to the test: // when: union by attribute is called ... // Dataset has 41 features, including // 8 strict duplicates - 33 features after process assertEquals(...) Could be changed to: // when: processed a dataset with 41 features, including 8 strict features ... // then: results with 33 features assertEquals(...) For me the given-when-then comments are accually part of the code. Would also like to give a second try to IntelliJIDEA (there is a free version which is user-friendly). IntelliJ is an amazing IDE. I'm personally too stuck with Eclipse, but I regulary used the other products from Jetbrains that are based in IntelliJ (RubyMine and WebStorm). And it's good that Jetbrains open-sourced some parts of IntelliJ. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] [ jump-pilot-Feature Requests-3405249 ] Fill out tool (or paint)
Thanks Jukka. I need to get a build of our current source code so I can check out some of these changes. Landon On Tue, Jan 24, 2012 at 7:14 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, It is a new tool in the editing toolbox. -Jukka- -Alkuperäinen viesti- Lähettäjä: Landon Blake [mailto:sunburned.surve...@gmail.com] Lähetetty: 24. tammikuuta 2012 17:13 Vastaanottaja: OpenJump develop and use Aihe: Re: [JPP-Devel] [ jump-pilot-Feature Requests-3405249 ] Fill out tool (or paint) Michael: How is the tool accessed through the menus? Thanks. Landon 2012/1/22 Michaël Michaud michael.mich...@free.fr: Le 22/01/2012 19:45, Landon Blake a écrit : In AutoCAD this can be done using the boundary or region commands. I agree it would be a neat tool to have for OJ! Sounds like a good candidate for an OJ code sprint. Already in OpenJUMP ;o) Michaël Landon On Sun, Jan 1, 2012 at 1:09 PM, SourceForge.netnore...@sourceforge.net wrote: Feature Requests item #3405249, was opened at 2011-09-06 13:50 Message generated for change (Comment added) made by michaudm You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=679909aid=3 405249group_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: New Tools Menu Function Group: None Status: Closed Priority: 5 Private: No Submitted By: michael michaud (michaudm) Assigned to: Nobody/Anonymous (nobody) Summary: Fill out tool (or paint) Initial Comment: Would be nice to have a button in edit toolbox to create the smallest polygon around a mouse click using visible (or selected) features as its boundary. Options could be : - use all visible / use selected only - create a polygon / create a polygon without hole -- Comment By: michael michaud (michaudm) Date: 2012-01-01 13:09 Message: FillPolygonTool has been added to the source code repository on 2012-01-01 -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=679909aid=3 405249group_id=118054 -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint,
Re: [JPP-Devel] osgeo live-dvd / documentation
I told Cameron I would work on some screenshots for our qucikstart on the OSGeo Live product. I know some e-mails have bounced back and forth on this. I didn't want to start work until I shot across the bow of the mailing list. Is anyone already doing this? If not, I will start on the quickstart improvements tomorrow. Thanks. Landon 2012/1/25 Michaël Michaud michael.mich...@free.fr: Hi, For the tutorial - maybe I can look over it again on the weekend for necessary text edits. The issue is that several new screenshots need to be made as a lot of changes have been happening since 1.3.x in the menus (with respect to renaming). And that is gonna take a few hours. I think there is no urgency, just noticed that our documentation is organized by OJ version, and even if documentation written for 1.3 or 1.4 are still very useful, users may not check these directories. So maybe we can already put ongoing documentation in 1.5. my 2 cts Michaël stefan Am 24.01.12 01:09, schrieb Michaël Michaud: Hi, OK, could opened it and have a quick look. Everything seems to work (currently, OpenJUMP 1.5.0 r2618) As a remainder - change the link to the final version in .sh (Ede) - add a link to plugin repository from overview page (Michael) - switch version number from 1.5.0 to 1.5.1 (Michael) - update the osgeo worksheet from darft - final (Michael) - add tutorial in the new 1.5 documentation folder on sourceforge as soon as possible (Stefan ?) Michaël Le 22/01/2012 19:17, edgar.sol...@web.de a écrit : On 22.01.2012 19:00, edgar.sol...@web.de wrote: as you don't have vmware available this might prove a bit difficult.. but, having the payer installed and a virtual machin i sent you ... try this hack: vmware player of course, ede -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] General refactoring of OpenJUMP
Thanks for explaining Benjamin. I understand now. Smart move using your framework to create the Workbench instance for testing. I will need to check that out. Landon On Wed, Jan 25, 2012 at 7:57 AM, Benjamin Gudehus hasteb...@googlemail.com wrote: Hi Landon! 2012/1/22 Landon Blake sunburned.surve...@gmail.com One of my challenges when trying to unit test parts of the OJ core previously has been the number of inter-dependencies. Did you come up with a mock or stub for WorkbenchContext? I really see some value in sharing mocks and stubs for OJ core components. No, I didn't mock WorkbenchContext. TestTools.buildWorkbench() uses some methods from JUMPWorkbench.main() to create the Workbench with WorkbenchContext and WorkbenchFrame. I looked at the code here: http://openjump-tools-docs.googlecode.com/git/javadoc/index.html I must admit I'm a little confused. Are you writing an OJ specific unit testing framework from scratch. I didn't see any references to JUnit or another unit testing framework in your code. Since JUnit 4 you may add annotations to Plain Old Java Objects/Classes (POJOs). I use annotations like @Test and @Setup in the test classes. Keep up the good work Benjamin. I wish I had more time to keep up with what you were doing. Thanks. Landon P.S- I really appreciate the tips about running OJ from Eclipse and having it load an extension defined in another Eclipse Project. I'll have to mess around with that, but I may be back to ask for help on getting the Eclipse runtime configuration file set up so I can do this. --Benjamin -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] MultiInputDialog is a jack of all trades device
It sounds like the MultiInputDialog class could evolve into a little RCP framework for plug-ins? Landon On Wed, Jan 25, 2012 at 8:13 AM, Benjamin Gudehus hasteb...@googlemail.com wrote: Hi Michaël! 2012/1/19 Michaël Michaud michael.mich...@free.fr Hi, Let's see ! I will write something about the (1) code interface concepts and (2) appealing functional design in a later post. I've significantly reworked the MultiInputDialog design about one year ago, because I wanted to make it extendable to MultiTabInputDialog and to add some other components like the one to choose a Layer's attribute. I did not want to create a second framework and spent a considerable effort to make it more extendable without breaking anything. And it works well. One can even use the JCS Conflation Suite back from 2003 which makes use of MultiInputDialog and it works with newer versions of OpenJUMP. A long time before, I tried to introduce buoy ,which, I thought, had a clever design for UI development (still used by simple query plugin), but I used MultiInputDialog for all further developments. Of course, there are probably other (better) ways to do, so I'm quite interested into your proposition. By the way, what is your use case ? The use case is creating simple plugin configuration dialogs for scripting enviroments, with the JComponents as fields in a class or with them within a HashMap. Michaël --Benjamin -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Tests in DeleteDuplicateGeometriesTest
I've pushed my refactorings to improve readability to the repository. For the future we could run a parser over the classes to extract the language/translation strings for the language files: private String langName = Delete Duplicate Geometries; private String langDescription = deletes features with similar geometry; --Benjamin 2012/1/25 Benjamin Gudehus hasteb...@googlemail.com Here are some ideas/questions for refactoring of the class: 1. List configuration parameters prominently (Layer itemLayer, boolean deleteOnlySameAttributes) So it is easier to see what parameters could be tested or used. 2. List language strings prominently (String langDescription, String langDeleteOnlySameAttributes, ...) So it is easier to find the translation strings in the translation files. 3. Split contents of initialize() into two methods (initializeLanguageStrings, initializeMenuItem) [Neal Ford calls this Composed Method ( http://www.ibm.com/developerworks/java/library/j-eaed4/index.html)] 4. Why is createEnableCheck static? 5. TaskMonitor is not used in delete(), delete() should return a FeatureCollection. 6. Extract attributesEqual logic into a new method areAttributesEqual(). 7. Never use one letter (or two letter) variable names ;) 8. Is there a better way to use while (it.hasNext())? I always used for (Feature feature in featureCollection) in Groovy, but this is not that simple in Java :( I will make these changes to the classes and add some test cases to the testing class. Then I will commit my changes to trunk. (We really need to dump Subversion in some point of time and switch to Git or Mercurial!) --Benjamin 2012/1/15 Benjamin Gudehus hasteb...@googlemail.com including 8 strict features = including 8 strict duplicates ;) 2012/1/15 Benjamin Gudehus hasteb...@googlemail.com 2012/1/15 Michaël Michaud michael.mich...@free.fr It took me a while to make it work, because in the same time, I tried to use Eclipse, then Netbeans that I've never really used for a big project. It was a horrible experience. How can Eclipse be so popular ? I'm really wondering. But JUnit also works for Netbeans, does it? I'm personally a fan of Eclipse, because of GroovyEclipse and Mylyn. Makes life so much easier. Finally, I could optimize DeleteDuplicateItemsPlugIn and create a unit-test. For a 50 000 building layer, it takes about 1 s instead of 2 mn ! Wow, that's much. I looked at a diff for the changes and saw the IndexedFeatureCollection and the HashSet. I wonder if there is a webapplication to upload the diff and review/comment it online. Here is a small suggestion for an improvement to the test: // when: union by attribute is called ... // Dataset has 41 features, including // 8 strict duplicates - 33 features after process assertEquals(...) Could be changed to: // when: processed a dataset with 41 features, including 8 strict features ... // then: results with 33 features assertEquals(...) For me the given-when-then comments are accually part of the code. Would also like to give a second try to IntelliJIDEA (there is a free version which is user-friendly). IntelliJ is an amazing IDE. I'm personally too stuck with Eclipse, but I regulary used the other products from Jetbrains that are based in IntelliJ (RubyMine and WebStorm). And it's good that Jetbrains open-sourced some parts of IntelliJ. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] General refactoring of OpenJUMP
Yes, that's pretty good. I have some time in the next couple of days to write some tests classes. 2012/1/26 Landon Blake sunburned.surve...@gmail.com Thanks for explaining Benjamin. I understand now. Smart move using your framework to create the Workbench instance for testing. I will need to check that out. Landon On Wed, Jan 25, 2012 at 7:57 AM, Benjamin Gudehus hasteb...@googlemail.com wrote: Hi Landon! 2012/1/22 Landon Blake sunburned.surve...@gmail.com One of my challenges when trying to unit test parts of the OJ core previously has been the number of inter-dependencies. Did you come up with a mock or stub for WorkbenchContext? I really see some value in sharing mocks and stubs for OJ core components. No, I didn't mock WorkbenchContext. TestTools.buildWorkbench() uses some methods from JUMPWorkbench.main() to create the Workbench with WorkbenchContext and WorkbenchFrame. I looked at the code here: http://openjump-tools-docs.googlecode.com/git/javadoc/index.html I must admit I'm a little confused. Are you writing an OJ specific unit testing framework from scratch. I didn't see any references to JUnit or another unit testing framework in your code. Since JUnit 4 you may add annotations to Plain Old Java Objects/Classes (POJOs). I use annotations like @Test and @Setup in the test classes. Keep up the good work Benjamin. I wish I had more time to keep up with what you were doing. Thanks. Landon P.S- I really appreciate the tips about running OJ from Eclipse and having it load an extension defined in another Eclipse Project. I'll have to mess around with that, but I may be back to ask for help on getting the Eclipse runtime configuration file set up so I can do this. --Benjamin -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Annual Conference for OpenJUMP?
It sounds like OSGeo folks in North America are going to start having an annual conference here in the US. This year it is in Washington DC. That got me thinking about hosting an annual conference for OpenJUMP. I know our worldwide developer base makes a traditional conference a challenge. (I certainly don't have the money to fly to Europe.) :] But I think a virtual conference would be possible. We could prepare a series of video lectures and demonstrations, and host them to a dedicated event web site. There may even be a way to open an IRC channel for a few hours after the videos are posted to answer questions from video viewers. It seems like enthusiasm for OpenJUMP has recently increased, and it would be good to capture some of that energy. If we are successful in getting our OpenJUMP annual conference off the ground, we could work to coordinate it with the OSGeo North American conference in 2013. I think the exposure for OpenJUMP would be a really good thing. We might even be able to coordinate an annual conference with a major release of OpenJUMP, and use the conference videos to demonstrate improvements in the new release. I'm willing to put together a few videos and to edit videos prepared by others. I'm also willing to prepare and host the conference web page. We might even be able to ask for sponsors to help pay for some of the costs associated with preparing the conference media. (I'm curious how our user base might respond to that.) I've got a full plate this spring and summer, but I could make something happen towards the end of the year. Or, we could start work now and plan on launching the conference in conjunction with the OSGeo North American Conference in 2013. Let me know if there is any interest among our development community. If there is, we might consider forming a team to plan and coordinate the conference. Landon P.S. - I'm still planning on an OJ code/doc sprint in the Spring. I'm shooting for some time in May. I'm currently investigating the possibility of hosting the code sprint as a California OSGeo Chapter event. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel