I'm using the JavaCC Eclipse Plug-in 1.5.30 with Eclipse Luna Service 2(4.4.2).
When I use JavaCC to generate java files from the st4tic.jtb program grammar, Eclipse seems to completely ignore them when I do a file search.
In the navigator view, all of the generated files have appended to their names e.g. NodeList.java <st4tic.jtb>
There is an option for the plugin to not mark generated files as generated.
Related
I have a small problem with my Eclipse IDE PyDev plugin - when I'm developing a program using Python with libraries in *.pyd format, I can't go to definition, because It's binary format. But there are corresponding *.pyi files with source code. How to "force" PyDev to use *.pyi files instead of *.pyd files for Go To Definition?
I have a WAR file with Java codebase. I need to decompile my war to a project in Eclipse
To do that I install Eclipse Jee 2018-12 and I had clicked in File->import and I selected warFile, and I put my file war
but I have this when I go to src to see code java I have just package
When I click in open type hiererchy i have this
How I can get source file content?
i always prefer to do it outside eclipse. its pretty easy if you just want to view the code.
you can use tools like jdecompiler . just select/open you war file.
I am trying to add a export action to the Eclipse File > Export dialog. I've tried adding it through plugin.xml (see below update about dropins vs plugins folder) and while it works in a Mars 2 (Eclipse Platform / RCP version 4.5.2) instance it does not work with version 4.6.2 where I'm intending to use the jar. Previously the plugin.xml did not work also for a menu item, however I was able to do that programmatically (but seemingly not add an export wizard programmatically).
Update 2: It seems it may have to do with the eclipse's configuration config.ini file or Equinox Transforms (see https://wiki.eclipse.org/Equinox_Transforms). I think it may be the later because the plugins run and you can add ui elements later (like the aforementioned menu) with programming, but not with the plugin.xml. Also the config.ini makes reference to the Equinox Transforms class.
Update 1: The plugin.xml not running seems to be related to something to do with the dropins folder.
Foo.jar provides some exports and was provided by the vendor through a P2 update site I believe and exists in a plugins folder.
When I rename Foo.jar to Foo.jar.old and re run the app (with -clean) the exports are removed (Good)
When I name it back to Foo.jar in the plugins folder it re adds the exports on startup (Good)
When I move Foo.jar to the dropins folder the plugin DOES LOAD (it's listed in Help > Installation Details > Plugins), however the export options specified in the plugin.xml are not populated. (Bad)
Is there a difference between the eclipse dropins folder and the eclipse plugins folder of a P2 update site?
I have since confirmed it was a Equinox Transform in use (it shows up in the plugin list). Upon searching for jar files mentioning transform one had the xlst files in the jar and unzipping them, editing them, rezipping them to a jar file and replacing the original fixed the problem (I did have to run eclipse.exe -clean otherwise it did cache the old one and seem not to work).
Also of note look at the config.ini it should make reference to Equinox Transforms.
In some eclipse installations I have noted that they are able to view all the source files inside a jar(may be if the jar has source files packaged in it or another jar for source?).
If we ctrl+click or f3 on a class type, then it shows the source code of the JAVA API for that class. Likewise for many classes. even for some third party classes like apache's. But in my installation i just get a white screen with the name of the jar and some mess of unreadable content. And also previously I have got javadocs of JAVA API very well before when i hover my mouse over the class or function names. But in my current installation even that is gone.
How to get java docs and source file viewing in eclipse? i am using eclipse juno... downloaded within 6months..
Make sure that Eclipse is using a full JDK rather than just a JRE. Look in Preferences / Java / Installed JREs to see what Eclipse is using.
I am using Eclipse Indigo with CDT 8.0.2 to browse through the code of a C++ library. The library is also installed on my system. Many times when I go to a declaration of a function, Eclipse finds the declaration in a file under /usr/local/include, even though the header file is also in the project.
Can I avoid this behavior? For now I'd be okay with limiting the indexer to index only files within the project. In the Indexer Preferences, I unchecked Index source files not included in the build without success.