How can I use argument only file name on Eclipse External Tools? - eclipse

I make batch file to use with Eclipse External tool.
I refer this site: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-exttools.htm
In this site, Variable Example "${resource_name}",it's results is "MyFile.txt"
I want to use arguments like "MyFile", What can I do like this?
Thanks!:)

This is the plugin you might be looking for
https://github.com/basti1302/startexplorer
eclipse plugin called "path tools" seems promising as well
Check this link as well..
Eclipse external tool for Qt .ui to .py with pyuic

Related

Eclipse find source file from library

For debugging it is often helpful to read the library's source code. When pointing at a library function which I want to inspect and opening the context menu and click on 'Open Declaration' in my own written code I will just have a look at the corresponding header file.
How do I show the corresponding source/cpp file in Eclipse?
If I just search for the file in the source folders (using OS tools) I can't use Eclipse methods like 'Open call hierarchy', so, that won't be a satisfying solution. Thanks.
You can tell the debugger where to find source files. In the Run or Debug Configurations dialog, there is a Source tab when you select a particular configuration. That's where you can specify so-called Source Containers.
For more details, see the Eclipse CDT help page.

Is there a way to include .launch files with a plugin for eclipse?

I am trying to create a plugin that will automatically generate an external tool when eclipse opens. I have looked into some options and it seems the best way to get it done is by loading a .launch file, with the information to create the external tool, into eclipse when the plugin is run. Up to now I have not been able to find a way to do this, does anyone know how it could be accomplished?
You can use DebugUITools to launch your .launch file. More information you can find in this eclipse article.

Groovydocs on Eclipse

My enviroment:
OSX 10.7.4
Eclipse SDK
Version: 4.2.0
Build id: I20120608-1400
Does anyone know how to generate groovydocs via eclipse? I cant find any plugins to help me generate them. I have Groovy-Eclipse (Required) & Groovy Eclipse SDK (optional) installed.
If you have any solutions, please explain.
You will need to run them from the command line. If you want some amount of Eclipse integration, you can run them as an external tool. You can create an external tool here:
In the dialog that pops up, specify the path to groovydoc. In the argument section, place this (as well as any other options you want):
${folder_prompt:running groovydoc?:/Default/file/path}
This will open a folder prompt with the default file path specified. The choice of folder will be used as the argument to the groovydoc invocation.

Invoke the Command line with a Netbeans plugin

i am developing a Netbeans Plugin where i need to invoke a command(windows bath file) which can be executed with the command prompt. is there a way to invoke that batch file from the Netbeans plugin?
Thanks !!!
You can use Runtime.exec or alternatively you can have a look at the NetBeans Developer FAQ specifically the page on External Processes I would think.

Is it possible to add external command line tools to Netbeans?

Is it possible to use external command line tools in Netbeans?
Thank you.
After searching and searching and searching, this feature is just missing in netbeans although it would absolutely straightforward to implement and has been ask by user for 2 more than years...
Regards,
Stéphane
There is a Terminal window in NetBeans 7:
Open the menu, Window -> Output -> Terminal
What about using an Ant target? Ant files are quite comfortable to run from Netbeans.
<exec executable="${executable-full-path}" ...
The best option I've found is to use jmarsault's plugin that he calls NetBeans Command Shortcuts. This give you an icon in the command line where you can add command and terminal scripts to run. The display shows in the output window.
Installation files are available here and he has kept it up to date with the newest versions of NetBeans.
NetBeans Command Shortcut plugin
Installation:
Download the .nbm file for your version of NetBeans
Open Tools / Plugins / Downloaded / Add Plugins...
Select the .nbm file and allow the installation of the plugin.
In since at least version 9.0, there are two decent options:
Just create a script file. (I think you need the C++ plugin for this. Otherwise you have to create it outside NetBeans or as a text file.) In my case I created a JLinkGDBServer.sh that just executes JLinkGDBServer as a prerequisite to start an embedded debug session. This automatically sends the executable's output to a NetBeans terminal.
Add a tool to Tools/Options/Miscellaneous/SendTo. SendTo is a pop-up menu item for certain project entities, for example files but not the project. In my case, I could add a SendTo running the executable and use it by right-clicking on for example the .elf file (although for the GDB server I don't need any file name as an argument).