Thanks Simon for the reply. I just filed a bug for this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=355116
I also had a more severe problem for which I filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=355117 In case that I manage to fix any of these, can you point me to a document that describes the procedure for sending a patch? Thanks -B P.S. In future I will use the forum you mentioned for questions/comments, thanks for the pointer. On Wed, Aug 17, 2011 at 6:28 PM, Simon Kaegi <simon_ka...@ca.ibm.com> wrote: > Actually, this forum might be an even better place for these sorts of > questions -- http://www.eclipse.org/forums/eclipse.webtools > ..but still log a bug. > -Simon > > [image: Inactive hide details for Simon Kaegi---08/17/2011 06:16:53 PM---Hi > Bashir, Sorry I missed this until right now - our infrastru]Simon > Kaegi---08/17/2011 06:16:53 PM---Hi Bashir, Sorry I missed this until right > now - our infrastructure changed and I hadn't switched fr > > > From: > Simon Kaegi/Ottawa/IBM > To: > "General discussion of project-wide or architectural issues." < > wtp-dev@eclipse.org>, Bashir Sadjad <bas...@google.com> > Date: > 08/17/2011 06:16 PM > Subject: > Re: [wtp-dev] Formatter vs Indenter in JSDT > ------------------------------ > > > Hi Bashir, > > Sorry I missed this until right now - our infrastructure changed and I > hadn't switched from scanning the newsgroup to the mailing list. I think > this dev list is a fine place to ask these sorts of things. > With that being said if you want to get our attention and think you may > have found a problem (and in this case I think you have as formatter and > indenter should be consistent) I'd suggest logging a bug -- * > https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JSDT&component=General > *<https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JSDT&component=General> > > -Simon > > > [image: Inactive hide details for Bashir Sadjad ---08/17/2011 12:20:02 > PM---Ping! Is this the right place to ask JSDT related dev. ques]Bashir > Sadjad ---08/17/2011 12:20:02 PM---Ping! Is this the right place to ask JSDT > related dev. questions? > > > From: > Bashir Sadjad <bas...@google.com> > To: > wtp-dev@eclipse.org > Date: > 08/17/2011 12:20 PM > Subject: > Re: [wtp-dev] Formatter vs Indenter in JSDT > Sent by: > wtp-dev-boun...@eclipse.org > ------------------------------ > > > > Ping! > > Is this the right place to ask JSDT related dev. questions? > > -B > > On Wed, Aug 10, 2011 at 3:48 PM, Bashir Sadjad > <*bas...@google.com*<bas...@google.com>> > wrote: > > Hi, > > This is a question related to JSDT indenter which I hope this is the > right place to ask. > > The basic problem is that indenter and formatter are not consistent. > For example with some formatter preferences tweaks, I can get 4 spaces > before '[' in: > > var t = > [ > 'a', 'b' > ]; > > which is what I want. However if I select this segment and just run > indenter it changes the indent to 2 spaces. I cannot find any JSDT settings > that changes this indenter behavior. Debugging the code a little bit it > seems that org.eclipse.wst.jsdt.internal.ui.text.JavaIndenter has a > CorePrefs internal class with a prefAssignmentIndent field that determines > this indent. However this indent size is simply set to prefBlockIndent() > which is (eventually) hard-coded 1. So > > (i) Is this behavior intended? > (ii) If not is there any plan/open-bug to fix it? If yes, why (i.e., > shouldn't formatter and indenter be consistent)? > > Thanks > > -B > Bashir S. Sadjad > Google Waterloo, Canada > *http://sadjad.info* <http://sadjad.info/> > > > > > -- > Bashir S. Sadjad > Google Waterloo, Canada_______________________________________________ > > wtp-dev mailing list > wtp-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/wtp-dev > > > > -- Bashir S. Sadjad Google Waterloo, Canada
<<ecblank.gif>>
<<graycol.gif>>
_______________________________________________ wtp-dev mailing list wtp-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/wtp-dev