Find hardcoded Strings in legacy application [duplicate] - java

This question already has answers here:
Extract all string from a java project
(5 answers)
Closed 8 years ago.
I inherited a Java-Application with many many hardcoded Strings that should have been localized. THe code-base is huge and I need an overview about all the used hardcoded String values in the code. Is there a tool (or an IDE-function; I use Eclipse and IntelliJ IDEA) that extracts all strings from Java-classes?

With Eclipse you can use the menu option Source > Externalize Strings...
This only works on a single file at a time however.

I would recomend you to run your code through SonarCube. It's great tool that gives you a good overview the projects technical debt.

Related

Is it possible to highlight the background of methods, for loops, while loops etc.? [duplicate]

This question already has answers here:
eclipse plugin for bluej interface [closed]
(2 answers)
Closed 4 years ago.
I've recently tried to switch from Bluej (we used that in school) to eclipse (which seems to be way more widespread) but I have some trouble distinguishing between different loops and methods etc. I am used to everything being highlighted. Is there a way to make it look like in BlueJ?
Thanks in advance!
NetBeans is another widely used IDE if you're willing to switch to it, it also has a BlueJ plugin. However, it's only available for NetBeans 6.5

alternative for Javadoc? [duplicate]

This question already has answers here:
Are there some good and modern alternatives to Javadoc? [closed]
(12 answers)
Closed 8 years ago.
I have been using Java for years I really like the language except javadoc.
The document generated by javadoc makes me feel I am browsing web in 1990s. To make some beauty doc you have to insert obscure html tags which make your comments almost unreadable before generating html file.
I am seeking some alternative for javadoc, reStructuredText is my first choice but there is no doclet for it. Another choice is markdown, but it mainly aims to html so I treat it as my last resort if I can't figure out any other way.
I am also considering split comment from java file, but it bothers developers who browse code in IDE.
Any good ideas?
You may not need to use an alternative to Javadoc.
If you are using Java 7, the new version of Javadoc has been redesigned.
Here's an example of the output: Java 7 Reference

How to use prolog rules in a java application [duplicate]

This question already has answers here:
Embedded Prolog Interpreter/Compiler for Java
(13 answers)
Closed 8 years ago.
I hope my question is not a duplicate... I have implemented some rules using Prolog. I would like to ask if there is any way to use these rules in a java application. I do not want to implement everything in java from scratch. I would like to embed the code written in Prolog in a java application. Thanks in advance.
There are various ways. But judging from your question you're looking for a quick solution.
JPL (since i notice a lot of people are using SWI nowadays):
http://www.swi-prolog.org/FAQ/Java.html
The GNU Prolog library for Java:
http://www.gnu.org/software/gnuprologjava/
SICtus (It comes with syntax examples, etc so it shouldn't be hard for you to use it quickly)
http://sicstus.sics.se/sicstus/docs/3.7.1/html/sicstus_12.html
tuProlog (Said to be the easiest to use, beginner friendly)
http://www.alice.unibo.it/xwiki/bin/view/Tuprolog/

Eclipse Debugger Icons [duplicate]

This question already has answers here:
Where can I find the source files of eclipse icons? [closed]
(4 answers)
Closed 1 year ago.
I'm looking for a way to be able to find the icons used by the Eclipse Java Debugger (in particular like the icons that are used in the variable debugging view). Does any one know where the icons are located in the eclipse folders, or whether there is some kind of easy way eclipse has provided a developer to allow them easy access to those icons (for example I can easily import ISharedImages for those particular icons)?
Here's an online resource:
Additional, ctrl+f for "Reuse" at the official site:
You might want to try directly from the source repo
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.debug.ui/icons/

Java/Scala library to generate Java source code [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
A Java API to generate Java source files
Is there a good library for generating Java source code (not bytecode)?
CodeModel and Eclipse JDT worked for this fellow, and he ultimately chose CodeModel.
Try this http://code.google.com/p/javaparser/ i use this to rewrite huge portions of my existing code base, also ASTs can be constructed with this and it is a readable wrapper written over eclipse core....

Categories

Resources