> -----Original Message----- > From: Andreas Stefik [mailto:[email protected]] > Sent: Friday, August 13, 2010 10:59 AM > To: Jim Idle > Cc: [email protected] > Subject: Re: [antlr-interest] Syntax- highlighter and completition > > Hey there, > > Yes, you can use any of the netbeans platform code standalone. As for the > Jar size, this is not entirely correct.
Yep, it is. Just create a blank Netbeans Platform Application on 6.9 without anything else and see how much code you need to package it as a single jar with dependencies: 7,329KB Then add a few modules! > The size of the NetBeans platform apps > generated (i.e., what is bundled), is correlated with the properties you set in > your module suite. In other words, if you include C compilers, java compilers, > and all sorts of other goodies built into netbeans then, yes, your distribution > can be a few hundred megs. If, however, you don't include them (and you > shouldn't, if you don't need them), then the files are not particularly large. I > forget off the top of my head the size of an empty module suite distro, but it > isn't much, for modern software. Ah, and therein lies the rub. Why does 'modern' software need to be so 'big'? No need to answer that ;-) So, we are talking about personal opinion as to what is 'big' and I am from an era where a 300K shared runtime library in C would be considered pretty huge :-) Now, I personally think Netbeans is really good; I worked on the integration of ANTLR/JavaFX with some of the Netbeans team and I use Netbeans over anything else as a Java IDE. But there is no getting away from the fact that all these Java platforms require lots of jars and dependencies and the memory footprint can be a problem. So, as I said, if such things are not a problem for your environment then it matters little, but for instance I have a project where I would have liked to use it, but the embedded device just does not have enough storage to deliver it to the client for instance. Jim > > Stefik > > > > On Fri, Aug 13, 2010 at 10:56 AM, Jim Idle <[email protected]> wrote: > > You can use the Netbeans SDK/Framework to create your own standalone > > system, however it is a rather large set of jars. That only matters is > > space would be a constraint though. However it saves you the trouble > > of coding docking toolbars, editing and so on and you can let someone else > maintain all that . > > > > Jim > > > >> -----Original Message----- > >> From: [email protected] [mailto:antlr-interest- > >> [email protected]] On Behalf Of "Paul Bouché (NSN - DE, Berlin)" > >> Sent: Friday, August 13, 2010 1:35 AM > >> To: ext Andreas Stefik > >> Cc: [email protected]; [email protected] > >> Subject: Re: [antlr-interest] Syntax- highlighter and completition > >> > >> Hi, > >> > >> so this is really interesting. Do you know if the text editing > >> components > > are > >> available standalone from NetBeans - I heard such a thing? > >> > >> BR, > >> Paul > >> > >> ext Andreas Stefik schrieb: > >> > Hi there, > >> > > >> > Another option you have is to use the NetBeans platform for these > >> > editor tasks. Basically, you keep a list of whatever you want > >> > (e.g., what methods have been parsed, what variables, tokens), and > >> > you pass them to the platform's APIs specifically designed for > >> > parsing, highlighting, etc. All of the threading/highlighting/user > >> > interface work is done for you, is commercially scalable, and works > >> > extremely well behind the scenes. > >> > > >> > Like anything, it isn't trivial to do, but the APIs for > >> > parsing/code completion/syntax highlighting are pretty > >> > straightforward and there are tutorials online on how to do it with > >> > ANTLR. Here's one, for > >> > example: > >> > > >> > http://wiki.netbeans.org/Netbeans_Rcp_Antlr_Integration_Index > >> > > >> > Hope that helps, > >> > > >> > Andreas Stefik > >> > > >> > On Thu, Aug 12, 2010 at 5:40 AM, <[email protected]> wrote: > >> > > >> >> Helllo!! > >> >> > >> >> I think this is an old topic, but looking at the list I haven't > >> >> found a clear answer to the problem. I am trying to do a system > >> >> that opens in a swing panel an specific type file, which follows > >> >> my specific grammar and allows its editing. > >> >> Hence, I want to add syntax-highlighting and also auto completion > >> >> to the file (both in the editing and in the only reading), But > >> >> also I should show the syntax tree. > >> >> > >> >> I have my ANTLR grammar running (pluto.g) and tested with current > >> >> output as a flat AST tree. But I am not entirely sure what to do next. > >> >> > >> >> My first option is to specify as output templates and use directly > >> >> from the parser grammar StringTemplate with the output specifying > >> >> the colors, font, etc in a kind of HTML similar code and later > >> >> plug-in in the swing panel Second option, is to create a Parser > >> >> Tree and later on, use the templates Third, forget the parser and > >> >> just use the lexer???? > >> >> > >> >> The problem is that the final goal of the system is to create SQL > >> >> queries to insert/modify in a DB the information that contains the > >> grammar. > >> >> > >> >> Any outputs are welcome, thanks > >> >> > >> >> > >> >> > >> >> Nieves Salor Moral > >> >> > >> >> List: http://www.antlr.org/mailman/listinfo/antlr-interest > >> >> Unsubscribe: > >> >> http://www.antlr.org/mailman/options/antlr-interest/your-email-add > >> >> res > >> >> s > >> >> > >> >> > >> >> > >> > > >> > List: http://www.antlr.org/mailman/listinfo/antlr-interest > >> > Unsubscribe: > >> > http://www.antlr.org/mailman/options/antlr-interest/your-email-addr > >> > ess > >> > > >> > >> > >> List: http://www.antlr.org/mailman/listinfo/antlr-interest > >> Unsubscribe: > >> http://www.antlr.org/mailman/options/antlr-interest/your- > >> email-address > > > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > > Unsubscribe: > > http://www.antlr.org/mailman/options/antlr-interest/your-email-address > > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
