create collapsible code block eclipse - eclipse

To make my code clean and tidy on eclipse, I wonder if it is feasible to code surrounded by Any tag to be able to retract as a function.
I use eclipse "Juno" for android development.

Yes, you can use the plugin "Coffee Bytes Code Folding".
With Indigo or Juno, you might need to grab the latest version of that plugin at "this page" (or google "com.cb.eclipse.folding_1.0.7.jar" for Juno-compatible version).
You will find all the illustrations in the SO question: "How to use Coffee-Bytes code folding":

Related

How to develop something as a group in Eclipse

My friend and I were searching for already built-in features in Eclipse or plugins that allow you to develop code in a group, or to be more specific, in a pair.
I found only a single plugin that provides such features, however it is quite hard to install.
Are there any simple solutions for Eclipse, or should I use a different editor?
You could use Git/GitHub or a similar form of version control. I am pretty sure Eclipse has built in support for Git.

folding with eclipse

I'm working on a project rather imposing on eclipse. I like to know if it is possible to create folding (text retractable piece) used by eclipse with methods and comment but in my case the piece of text in a method?
Sorry in advance for my English
Yes it is possible, see this link: Folding in Eclipse Text Editors. (I found this with google)
Yes it is possible.
Just use a third party plugin like Coffee-Bytes Plugin.
If you are on eclipse Juno or Kepler, you need to google around for a 1.0.7 version of the jar provided in the archive.

To modify a core eclipse plugin

In order to modify an eclipse plugin, what are the steps to find its editable code ?
I read and debug source provided with eclipse distribution but to try a fix in org.eclipse.jdt.internal.corext.codemanipulation behavior I need to make it editable.
Well, the source repository is available at eclipse.org, the plugin compiled with the source should be available from the standard eclipse update site.
I'm guessing you are considering changing the source, recompiling and using your plugin instead of the standard one? There is a different way to change functionality, its with fragments. For example, look at a question I asked earlier, follow the links in my text and Andrews answer for more information.

Are there any Eclipse language IDEs -plugins- that use JavaCC?

I'm using JavaCC to create a language plugin for Eclipse and I wanted to know if there are any stable language IDEs for Eclipse that use JavaCC to create their AST representations and Lexer/Parser files. Thanks.
I don't know of any stable ones, however, the Eclipse IMP project supports creating IDE using any parser generator. Sadly, the project does not seem especially active (the last release is almost a year old), and documentation is a bit scarce.
However, it features a half-working example (crated with LPG), that I believe it could be adapted for JavaCC as well.
I tried a Google search for
"import org.eclipse" "import org.javacc"
hoping to find a web page with the text of a .java file from some plugin that included both. No results came up. Nonetheless there may well be a plugin that uses JavaCC, but completely segregates the code that depends on JavaCC from code that depends on Eclipse. Hmm.

still need smarty syntax highlighting in Eclipse PDT

How do I get smarty syntax highlighting in Eclipse PDT?
The only project I was able to find is SmartyPDT, but it's outdated and isn't working with my current Eclipse install (PDT All in one, with Eclipse 3.5).
EDIT:
I recently found this post asking the same question from a long time ago. But the plugin linked in the accepted answer there is out of date now.
EDIT: removed "(no accepted answer)" from title. it was misleading.
I've used both SmartyPDT and SSE*.
SmartyPDT is finicky and it took some time for me to get it working. Unfortunately, after an OS reinstall my custom jars don't work anymore, so I've been using SSE.
It is quite basic but better than nothing.
It is described in English at bar54.
Download it from Google's translated version.
Update:
Example of SSE http://www.freeimagehosting.net/uploads/1c07de77d7.png
*I guess this is what it's called, the page is in Japanese.
About Using Aptana + Eclipse: They removed support for Smarty in Aptana Studio 2 because they were going to "join forces with the eclipse PDT team", but with "unknown schedule as to when or whether smarty support will come to pdt".
Anyways, they also offer to download the "old" Aptana Studio, which works for me like a charm, I wouldn't want to miss smarty support ever again:
https://aptanastudio.tenderapp.com/faqs/installing-aptana-studio/downloading-aptana-studio-151-and-aptana-php
It works in parallel with PDT2, cause for some reason the php support of Aptana is not so good in 1.5.1 - but the smarty support is cheesy :).
what does Aptana use? I think its Smarty enabled..and it integrates with Eclipse PDT and the other choice is Zend Studio which is built on top of Eclipse PDT
Great article about integration Eclipse Helios + PDT + Smarty
http://www.ikravets.com/computers-life/programming/2010/09/27/eclipse-helios-pdt-smarty (Use translation to English on this page)
I use SmartyPDT, as suggested in this related question.
Just follow as strictly as possible the installation procedure. Worked for me without too much hassle.