Pmd Editor For Mac
Hi Stephen, On 14:30, Stephen Nutbrown wrote: > Hi Andreas, > > Many thanks for your message. Yesterday I wanted to have a little play > around as I am fairly new to the PMD source code, however it looks > like it will be fairly straight forwards as it all seems well > organised. That's good to hear:) > I managed to fork the repository, and just for my own experiments I > actually started but with swing rather than javafx, so I could keep it > using java 6.
By Steve Smith Rivers Wild Flies. One of the great summer hatches of the west is the Pale Morning Dun. When the weather starts to warm and the rivers return to their normal flows, the PMD hatch is one of the most reliable hatches all summer long. In The Welkin Suite IDE, you can use different PMD rulesets for each of your TWS projects, or you can set up the PMD execution based on one the same ruleset for all your projects, as we have implemented both global and project PMD settings for this.
I put this in pmd-core under the util package. I could > create everything we need in swing, so we don't require java 8. > However, it would be nice to have javafx as I could make it look a bit > better and it would be easier to edit the layouts if ever we need to. Mac best editor for artwork cleanup. Best youtube video editor for beginners. > I have some experience working with both of them, so either is fine > with me - I suppose this mostly comes down to how people are using > PMD. > If I was to do it in swing it would be fine in java 6 and so wouldn't > need a new module, and I could re-use some of the existing designer > code.
If I do it in javafx, I would probably create something which > would replace the designer and also act as a ruleset editor rather > than as separate UIs. We could also add screens for executing PMD and > have various inputs for the possible arguments, but perhaps that is > something for the future if it's wanted. > > Ultimately, I can do either swing or javafx, for my purposes either > work but I don't know about other users, do you have any particular > preference? For me, either way is ok - swing or javafx. However, I don't want to limit you.
If you think, javafx would look better, then I think, we should go with javafx. As the UI is the one thing, we would make screenshots from and put them onto the sourceforge project page:) IMHO - as the GUI is used on desktop systems, I would expect to have there always the latest java runtime available (thanks to auto-update), so I don't see a problem in using java8. It just needs to be a separate (maven) module. In summary: If I have a vote, I'd vote for javafx:) In order to make your decision a bit easier, I just pushed a 'pmd-ui' module, to which you can add the GUI:) -> Just pull from github my commit and add src/main/java. And make sure, you use java8 (verify with 'mvn --version') when building pmd.
The pmd-ui module will be included in the pmd-dist binary package, so you can add a batch file to start the GUI under pmd-dist/src/main/scripts. Regards, Andreas > From my investigation of the existing code, the RuleSetFactory has a > method to get registered rulesets (getRegisteredRuleSets()) which > works a treat, and I created a couple of additional methods within my > new package for importing an external ruleset xml, or importing > (recursively) a directory containing rulesets - again existing PMD > code actually does most of the work here so it's not a big task. > > I noticed PMD also already has a RuleSetWriter which creates the XML > output - I have used this and it works, so it's not actually much work > at all.
Image Editor For Mac Book Pro
The main question is just if we want to use javafx or continue > with swing. It's mostly just UI work, as the existing classes seem to > contain most of the things we need, the model and logic side of things > will be very straight forwards. > > I haven't pushed any of my updates to github on my fork, as I was > mostly just looking to investigate some of the existing code and > decide how to do it - what I have at the moment is just a few methods > which I can use in javafx or swing, and a very simple UI which isn't > complete, so I haven't invested much time in creating it in swing - > whichever way we chose to do it is fine.
> > What do you think? For me, JavaFX has some nice views which we can use > to probably save a lot of time (and which make life easier editing it > too), but swing lets us keep everything working under java 6. I'm > leaning towards keeping it all working for java 6, it just means a bit > more work making it look good. > > Thanks, > Stephen Nutbrown > > > On 31 May 2015 at 10:29, Andreas Dangel wrote: >> Hi Stephen, >> >> I also think, this ruleset editor would be a very useful piece for PMD.