Sometimes when opening projects, NetBeans will display a "Task scanning" progress bar on the status bar. What exactly is it scanning for? Is it possible to turn it off as I noticed that sometimes it takes a while and maybe it's just my installation but sometimes I have to force it to stop when closing NetBeans.
It is a "Task List" plugin working. It does this:
Provides the Task List window, which lists places of interest in your project, such as lines that contain "TODO", "XXX", "PENDING", Java compilation errors, and so on. You can click an entry in the list to navigate to the corresponding place in your code.
You can remove it by going to "Tools > Plugins" menu, "Installed" tab, selecting "Task List" from the installed plugin list and clicking "Uninstall" button. (These instructions are for NetBeans 6.5, but should be somewhat alike for all the other versions).
But I would advise against removing it - I find it pretty useful. There are times when I forget about several TODO's, and Tasks window is a great way to look 'em up.
If you can't see that window, you can access it through "Window > Task" menu, or by pressing Ctrl+6 (again, these instructions are for NetBeans 6.5)
Using Neatbeans 7.2.1
You can go to Tools->Options->Miscellaneous then under the Files tab uncheck Enable auto-scanning of sources. Whenever you want to have Netbeans scan you project you can go to Source->Scan for External Changes.
Tools->options->C++, or whichever language you are working with, under the Other tab uncheck Reparse on File Change. Whenever you want to reparse right click your project Code Assistance->Reparse Project.
It is scanning for the // TODO blarblar and // FIXME .... alikes.
You can disable it by removing the plugin.
In Netbeans 7.0.1 you can't disable the Task List definitively.
Instead you can limit/avoid scan :
Right click in Tasks window
Filter -> Edit
Unselect all
You can also cancel the running "Task scanning" process :
Right click on the progress bar
Click Cancel process
Related
When I try to use the "Open call hierarchy" function in Eclipse, all of sudden it has stopped working. I don't get any results, it just shows the name of the method I wanted to see the call hierarchy for. This happens for all methods I try, even though they are all called by other methods.
I've tried opening eclipse with -clean -refresh, opening and closing eclipse and the project, updating the project, renaming the .metadata-file, and so far nothing has worked.
I've checked that it searches the whole workspace, and there are no filters on.
Exit Eclipse
Go into Workspace Directory/.metadata/.plugins/org.eclipse.jdt.core
Delete savedIndexNames.txt
Delete all *.index
Restart Eclipse
The search results should now show up.
No need for deleting indexes/re-install eclipse etc.
Go to "Call Hierarchy" tab (open by Ctrl + Alt + h)
On the upper right corner, there are 2 options:
"Show Caller Hierarchy" (icon, 2 dots directing to 1 dot)
"Show Callee Hierarchy" (icon, 1 dot directing to 2 dots)
Change it to "Show Caller Hierarchy"
Go to window->perspective-> reset perspective.
Changing Installed JRE to JDK from Windows|Preferences|Java|Installed JREs worked for me.
Change Windows|Preferences|Java|Installed JREs, set the default to a JDK.
Version: 2021-09 (4.21.0)
Build id: 20210910-1417
Maybe you have a search scope issue. I faced this issue, my eclipse coul'nt find any callers in third projects that uses the method i selected (i also tryed to remove the indexes, restart eclipse, close/open projects, and that was'nt enough so far). I Eventually realized the caller search has a "Search Scope" , that can be set to current workspace/current Project/working set. The item "search scope" is in the "call hierarchy" window menu, opened by top-right arrow. I set it to "current workspace" and then it was ok
I just want to test the plugin but now I need to uninstall netbeans IDE to remove this plugin? Now I really can't see the image on the screen! It´s hard!What I should to do without uninstall of the IDE?
Menu -> Tools (Alt-T) -> Plugins (G)
Select "Installed" (one left of rightmost tab) Tab
Click the Show Details Checkbox
Type ez-on-da-ice in search textbox.
Select ez-on-da-ice in list.
Click the Uninstall Button (rightmost button directly under the list)
Click the Uninstall Button in the Dialog
Finish, netbeans will restart.
If you can't see things well enough to follow these instructions, you could try adjusting your monitor settings first.
You can also delete your Netbeans user configuration directory to get back to default settings. (see http://wiki.netbeans.org/FaqWhatIsUserdir)
Namely, I am working on a "New project wizard" plugin. When new project is created I open my perspective to display the project there. It is displayed as expected, but I can not run it since I can not see "Run configurations" menu item under my "Run" menu. I've been looking for a way to get this menu item back with no success. Now, I got curious why is it invisible. Someone knows it already?
Use Window > Customize Perspective.
Look at the Command Groups Availability and select Launch.
You may also want Launch on Tool Bar Visibility.
I have a console-based C project in Eclipse. Is there a button I can press to launch my application in a Command Prompt window?
You can run your application as an External Tool, and there's a toolbar item for that. Looks like a green circle with a white arrow, beside a red toolbox. I'm a Java developer so I don't really know the CDT, but at least in the JDT you can run any command line tool in this way. (If it's not in your toolbar, right-click the toolbar and choose Customize Perspective… then find the External Tools item under Launch, and add it.)
First, click the down-arrow beside the button and then choose External Tools Configurations…. In the dialog, select Program from the left side and then click the New button in the toolbar. You are basically creating a shortcut that will live in the toolbar. At this point you can fill out the command line details to run your application. There's a lot of goodies like setting up environment variables, requiring a build of your projects before launching, etc. When you're done, save it, and you can run it as often as you like by clicking the arrow-and-toolbox button. You can come back and edit it later too, make duplicates, etc.
If you're working with a team, or you just want to do a really nice job:
In the Common tab, under Save as, choose Shared File. This will create a file in your project to represent the tool shortcut that you're building. That means you can check it into your source tree, and others can use it too. These files are XML so you want to check them in as text, not binary.
Start your working directory with ${workspace_loc} so that anyone who checks out your project can run it without having to adjust the shortcut for their file system.
Not directly, but you could configure an Ant task to run it (if it doesn't require console input), or you can configure firing up a JVM under Run|External Tools.
I use a lot of eclipse shortcuts, but for some tasks there arnt any convenient ones. For example I frequently look at the subversion history for java files.
I see these icons next to the right-click menu items that I assume I should be able to place on the eclipse taskbar so that I can save a couple of mouse clicks. But I havnt been able to figure out how to do that yet.
I am talking about the icon next to RightClick-Team-Show History once you install the subclipse plugin. I would like this icon to be on my taskbar so I can just do a single click and look at the history.
Any suggestions?
Other tips on customizing eclipse for java development are also welcome.
Take a look at my answer for similar question: How to add undo / redo buttons to toolbar in Eclipse?
It is possible to do the same for Show History command. Differences are: 1) you need to declare dependency on org.tigris.subversion.subclipse.ui plugin, and command ID you are looking for is org.tigris.subversion.subclipse.ui.showresourceinhistoryaction. You may want to include custom icon to avoid having long "Show History" button on your toolbar.
Update: Here is downloadable plugin for you: showsvnhistory_1.0.0.jar
The only way I know of to "customize" the Eclipse taskbar is via Window -> Customize Perspective. Oddly enough, the "Commands" tab has some influence on the toolbar.
But the developer of whatever component you want to use must have enabled the commmand and (at least for me), SVN doesn't offer a history button.
Maybe some XML hacking is more helpful here?