[program-l] Re: FW: [program-java] Re: Scripting for Eclipse....

  • From: "J. R. Westmoreland" <jr@xxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 9 Oct 2009 08:49:56 -0600

Travis,

An interesting thought.
I don't usually use the sound and other scheme functionality. So that one
hadn't even crossed the mind.

J. R.

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Travis Roth
Sent: Friday, October 09, 2009 8:33 AM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: FW: [program-java] Re: Scripting for Eclipse....

Hi Jim,
Hmm I see... I just opened Eclipse and I noticed, according to JAWS anyways,
that different comments seem to have different colored text. So I'd question
if all comments have the blue line you mention?
The way that should work to do this is to use the Schemes manager to detect
certain colored text and speak a message, or play a sound, when it
encounters a certain text color. You could then set up the different comment
colors. 
That said I just set one color scheme and JAWS 11 beta is failing to obey my
setting, so I don't know what's going on there. (Using the Colors scheme
which just announces all color changes does work, so JAWS obviously Can
detect the color changes when it wants too. And this is working in another
application that I use the technique. Possibly I just don't have quite the
correct colors selected.)
I am not sure if this is the solution you had in mind but in my view if it
works it?s a feature JAWS already has and would be easier than any
alternative which would require a lot of scripting to reinvent a feature
JAWS seems to have already. The key probably is to deermine what the various
color combinations are and get them programmed into the scheme.



-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Corbett, James
Sent: Friday, October 09, 2009 7:14 AM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: FW: [program-java] Re: Scripting for Eclipse....

Travis:

There is a multitude of ways to perform a commenting in a Java project. One
needs to realize that first of all there is actual Java syntax in lets say
the class, next there would be different syntax from a JSP page, then you
could have a resource property file and then the ever ominous xml files.

So in Java you could have the double slash, a slash with a single star that
denotes a block of commented text and each line with in would simply have a
star prefixed, then you could have a single slash with a double star and
each line there after prefixed with a star which then denotes a commented
block for the purpose of documentation for a Java Doc which is used for
creating an API. In the JSP page, you would have the same syntax that would
be used in an HTML document.... "<!-- -->".... Same as the XML files. In a
property file the use of the number sign or pound character is used.

In Eclipse there are different editors for each of the above mentioned and
all can be touched as a means of making a simple logic change.

So it's not as easy as it first seems.

Jim 

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Travis Roth
Sent: October 8, 2009 22:50
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: FW: [program-java] Re: Scripting for Eclipse....

Hi Jim,
I am not sure I understand... This comment line you're talking about, it
does not have a comment mark in front of it such as // ?
How do you get such a line commented out if there is not code commenting it
out? (Ok, you're right I am not an Eclipse expert.)

And this light-blue highlight, apparently since it is the only item denoting
a comment, is it above, below, beside, etc., the line? And the color differs
from the text and regular background colors?



From: program-java-bounce@xxxxxxxxxxxxx
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Thursday, October 08, 2009 9:52 AM
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Scripting for Eclipse....



Hi:

OK, I've been in denial for the past eight years with regards to
scripting.... So now I have to take the plunge.

I've a tutorial on scripting so that's not really the issue at the moment,
what I want to accomplish is while scrolling an editor if a line of code is
commented out, there usually is a light blue hi-light around the commented
line. Can I detect this color enhancement and if so can I add my own comment
to the indication of the line. I would like for it to say somehing brief
like just the word comment?

Since we are all in the same boat, perhaps this could be a group project.
Those of you who are scripters and those of us that are high end users of
the IDE could get our heads together? What do y'all think?

J.



James M. Corbett

A - Technical Specialist
GST/HST Micros | Micros de la TPS/TVH
Business Suite Assessing Systems (BSAS) Revenue and Accounting Systems
Directorate (RASD) | Direction des Systèmes de revenu et de comptabilité
(DSRC) Information Technology Branch (ITB) | Direction générale de
l'informatique (DGI) Canada Revenue Agency | Agence du revenue du Canada

(613) 941-1338

...hope you guessed my name. ...but what's bothering you is the nature of my
game!

The Rolling Stones




** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq


** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: