Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3669426
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:14:30+00:00 2026-05-19T02:14:30+00:00

I am using Eclipse 3.6.1 Build id: M20100909-0800 and Aptana Studio 2.0.5 which is

  • 0

I am using Eclipse 3.6.1 Build id: M20100909-0800 and Aptana Studio 2.0.5 which is based on Eclipse 3.5.2 (both on OS X) and in both programs the external tools feature seems to swallow double quotes and whitespace for the ${selected_text} variable.

Isn’t the ${selected_text} variable essentially useless with the mentioned behaviour?
Is there a way around that or maybe a hidden setting somewhere?

Thanks for reading.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:14:31+00:00Added an answer on May 19, 2026 at 2:14 am

    This could easily be considered a safety/security feature.

    I suggest "${selected_text}".

    …but if it’s eating ALL whitespace, that won’t really help. Huh. Maybe it’s clever enough to detect the quotes and preserve the whitespace… but probably not.


    Okay, I did a little poking around. Quotes within the argument list itself are preserved, as per my initial suggestion above. I found the following auto-generated argument list that was working Just Fine:

    -os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog
    -debug “${workspace_loc:/com.cardiff.bpm.ide.webforms.ui/debug.options}”

    But if your text selection contains quotes, I’d expect it to be handled as per the underlying OS. Windows “cmd” does some… creative things with them for example. My *nix-fu is Not Mighty, so I couldn’t tell you what OS X will do under the covers, but I suspect that’s where you’ll find your solution.

    You may have to do something goofy like URL-encode your selection, and use some command line tool to un-encode it before passing it to your desired external tool once the text is out of Eclipse’s clutches.

    A (very) quick look around my 3.6.1 UI didn’t turn up that would do this automagically for you, but there’s probably a plugin out there somewhere that’ll add that feature to an editor’s context (right click) menu.

    I’d expect the HTML editor to have this ability already… but I don’t see anything other than “smart insert mode” that sounds promising, and I don’t see that working either.


    That doth bloweth goats, most heartily, yay for weeks on end. E’en till yon goat hath a rash, most unpleasant in both severity and locality. Verily.

    I don’t think you’re getting my proposed solution:

    1. Set up your tool so it’ll de-url-encode-ificate the incoming string with some proposed command line tool.
    2. In your editor (in eclipse), URL-encode the text you wish to select and pass to the tool. Manually.
    3. Run the tool on the selected (url-encoded) text.
    4. Revert the selected text. Also manually. Probably just “undo”.

    “1” is why I was looking for some eclipse UI way of url-encoding a selection. The HTML Editor won’t even do it when you paste into an attribute string. Sheesh.

    Two Other Options:

    1. Fix the bug yourself. Open Source and all that.
    2. Write a plugin that exposes it’s own version of ${selected_text} that doesn’t strip out all the strings.
    3. Hey! SED! Replace the quotes with some random (unused in any selection you might make) high-ascii character and sed it back to a double quote instead of the proposed de-url-encode-ificationizer. You’d still have to manually edit/undo the text, but at least you won’t have to “"” Actually search/replace over a given selection makes that less painful than one might think.

    I’m not sure what the scope of #2 is, but I’d image if you don’t have any eclipse plugin experience the thought might be rather daunting. There might even be a sample plugin that exposes such a variable, though I haven’t checked.


    I don’t think we’re communicating.

    You don’t select text with quotes in it. You select mangled text, and sed demangles it back into quotes for you.

    For example, you have the string print("hello world"); in your editor and want to send that to your tool.

    1. change it to print(~hello world~); in your editor. Manually or via a script or whatever.
    2. select it
    3. run your tool, maybe wrapped in a script that’ll sed the ~s back to "s.
    4. change it back to print("hello world");.

    This is a manual process. It’s not pretty. Bug workarounds are like that. You can probably come up with a monkey script to convert quotes to Something Else, and “undo” is easy. You might even be able to get your script attached to a keyboard short cut… dunno. And ~ is a lousy choice for a replacement character, it’s just the first thing I could think of that was rare enough to be a decent example.

    Are we communicating yet?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an Ant build script to collate my Eclipse-based application for distribution. One
I'm using eclipse to build an android app which is tracked in TFS. There's
We currently build our Android (Java) projects using the built-in Eclipse build tools. Then
I am using Eclipse with GWT and trying to build a Web based application.
I am using Eclipse 3.6 product export to build an Equinox-based OSGi application. I
I'm using Eclipse's AntRunner to build a set of plugins, but I'm having trouble
I am using Eclipse 3.4.1 Build M20080911-1700 I have tried to change the classpath
currently, I am developing web-apps using Eclipse. The build is done using Maven. The
As an experiment we want to build our products using the Eclipse java compiler
I'm using Eclipse (Build id: 20090920-1017) to write my Symfony web application and in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.