How can I disable "Scan for external changes" in netbeans? - java

How do I disable "Scan for external changes" in netbeans ?

By Unmarking the checkbox here
Go to menu: Tools/Options/Miscellaneous/Files => ❑ Enable auto-scanning of sources

In Netbeans(Windows), Go to "Tools > Options > Miscellaneous/Files ", You will
find an option called "Enable auto-scanning of sources".
In case if you want to manually refresh (scan) your sources. Then right click the folder in Netbeans Projects window (or any explorere window like Favourites, Files, etc.,) you will find the option called 'Refresh Folder'.
Note : This option will be enabled only after you disabled the auto-scanning options.

On Mac go to menu:
NetBeans/Preferences/Miscellaneous/Files and uncheck ❑ Enable auto-scanning of sources
Works for NetBeans version 8.0.2, MacOs 10.10.2 Yosemite

I'm using MAC Netbeans 8.1 and I dont have NetBeans/Preferences/Miscellaneous/Files Can someone help please? checking external changes is using all CPU
I dont have Preferences in my main menu
PS: I found my solution; I just mention it for others who run into the same issue ; just use this short key to open Cmd-, to open the menu: NetBeans/Preferences/Miscellaneous/Files

Related

Make Eclipse forget “remember my decision” for Terminate/relaunch application

While debugging java application in eclipse, the dialog for opting Relaunch/terminate appeared. I have selected the option to terminate the application, but now unable to change this option.
In eclipse settings, section Java > Debug, try checking the box 'Show error when hot code replace fails'.

Organize imports in eclipse java

enter image description here
I'm working on a JUnit project on eclipse , please help me to organize imports ,because im using checkList plugin. I tried source +organize imports also , I tried Control+Shift +o , but both of them did not work . can you help .
To enable this, go to Windows -> Preferences -> Java -> Editor -> Save Actions and then enable Perform the selected action on save -> Organize imports. After this, whenever you save a java file, eclipse will remove the unused imports automatically.
Little googling might help
To fix this issue:
Go to Preferences -> General -> Keys Click on Filters... and de-select Filter uncategorized commands then Ok.
Then look for the command Go To Symbol in File and select it. Then click on Unbind and then Apply and Close
Ctrl+Shift+O. should now work.
Note:
Also unbind any other conflicting commands and leave only one command for Ctrl+Shift+O and set the When to Editing Java Source.

There is no Run menu or toolbar button in Eclipse Juno

I'm trying to follow the Android Development Tutorial - this page: http://developer.android.com/training/basics/firstapp/running-app.html
I am stuck - I cannot run the application. The instructions say "Open one of your project's files and click Run from the toolbar." However, there is no "Run" button on the toolbar, and there is no obvious option to choose from the "Run" dropdown on the menubar (see screenshot below).
Further down on that page, the instructions say "In Eclipse, click Android Virtual Device Manager from the toolbar." That button is also not there!
Am I missing something really obvious? I am on the Java perspective, and I have tried "Window -> Reset Perspective", but I am unable to run the application.
Any help would be appreciated.
EDIT: Under Window -> Customize Perspective -> Menu Visibility, I only have this - ticking Run unfortunately doesn't add anything - nor does ticking Launch under "Toolbar Visibility", when I try that I get the error Launch cannot be made visible because it is in the unavailable null command group. Would you like to switch to the Command Group Availability tab?.
You can add it like Window -> CustomizePerspective -> Menu Visibility -> Run -> Ok
or still can run your project by
Right clicking on your project which you want to run from the project explorer and select Run as and then Android application....T daaa...
If still the problem is there check
The "Run As -> Android Application" is no longer an option in my Eclipse Run Configuration
"Run as" android application is missing
Window -> Customize Perspective -> Toolbar Visibility -> tick Launch -> Press ok
Window -- > Open Perspective --> Java
If the entire toolbar is missing then you can use
Window -> Appearance -> Show Toolbar
Don't modified BuildConfig.java file,that file is generate by android sdk.
You can download android Tutorial video help youself improve.

Open Type (Ctrl+Shift+T) in Eclipse from every window

If I type Ctrl+Shift+T in Eclipse, an Open Type window opens. But this works only if I am in a Java file (or in the Package Explorer area).
I want to open the same window when I press Ctrl+Shift+T regardless of the resource (E.g.: if the open file is .js, .class or .xml).
How can I achieve this?
Details:
Operating system: Windows 7
IDE: Eclipse Luna (4.4)
I tried to:
go to Window > Preferences > General > Keys > type "Open Type" / "Ctrl+Shift+T"
let only the following line for Ctrl+Shift+T / Open Type:
Command: Open Type
Binding: Ctrl+Shift+T
When: In Windows
Category: Navigate
but it doesn't work.
You should filter by the binding, not the command:
go to Window > Preferences > General > Keys
Type "Ctrl+Shift+T"
Press Unbind Command for all bindings except the one you described above
After applying the changes, the "Open (Java) Type" dialog should also open when in a JavaScript editor.
This occurs because there are two different "Open Type" commands that share the same key binding (one of which only applies to Javascript files). This can be changed as follows:
Go to Window - Preferences.
Open General - Keys.
Type "Open Type" in the filter text box at the top.
In the default setup there are two "Open Type" entries, each with a binding of CTRL+SHIFT+T: Select the one with a description of "Open a type in a Java editor" (with "When:" set to "Javascript View").
Move the cursor into the "Binding:" field and either delete it (e.g. with the delete or backspace key) or if preferred assign it with a different (unused) combination such as ALT+CTRL+SHIFT+T.
Press the Apply button followed by the OK button.
I have it When -> Editing JavaScript Source and it works fine whatever I use it on xml, properties or sql files. Running on Luna version.
It happened to me because I was in the Resource perspective. Switching to the Java perspective fixed it.
I had to set "Open Type" when in "JavaScript View" and now it works for me. I'm using Spring Tool Suite:
Version: 3.6.3.SR1 Platform: Eclipse Luna SR1 (4.4.1)
And this bug was reported

Eclipse 'loading descriptor' takes ages

We have a Java Spring MVC based project using Eclipse (Juno - the latest build), using the latest JVM 1.7 and Tomcat 7. Eclipse is pretty fast, and everything is set to default settings. Once it is all loaded up, it is lightning fast, which makes a pleasant change.
However, the only gripe is that if I open a project, it begins 'Loading descriptor', which as far as I can tell is our 185-line web.xml file. Sometimes this might take 5 minutes to load, sometimes might just not load at all. This prevents any changes being made, as the system waits for the descriptor to load before anything else happens. Pressing the stop button on this leaves the system 'waiting' for the cancel to go through, and the only way out seems to be to kill the java process is the task manager. If it does by chance load, then the system runs fine (unless you open another project for reference, then the fun begin again).
Is there some configuration that skips the descriptor (e.g. is it something to do with validation that can be skipped) or would there be some reason that the descriptor might not load properly?
This happens when your Project Explorer is open. Uncheck unnecessary options at Project Explorer's "Customize View" dialog. On the top right corner of the Project Explorer panel there is menu called "Customize View", go to the second tab called "Content" and uncheck unwanted options...
That problem occurred because "Project Explorer" performs loading of environment descriptor.
So after the eclipse was loaded, choose "Windows" -> "Open Perspective" -> "Java". It will open the "Package Explorer" instead of "Project Explorer".
You need to be quick and get it done before the eclipse load the descriptor.
As you mentioned you could try disabling all 'xml' based validations like so :
Start by disabling all XML / XSL based validation towards the bottom
in Windows -> Preferences -> Validation :
Type 'Validation' in Eclipse preferences and disable any XML related
validations, like so:
and,
Might be worth to try out the following:
Check your proxy settings. Are they such that if required your Eclipse would be able to connect to the internet ? The reason I ask is, with XML files Eclipse attempts to download the related schema files.
Also, check Eclipse' error log view to see whether there is something specific that it's trying to do when it hangs.
Do you have a source control plugin inside eclipse which is linked to the project containing the web.xml file ? If so, if you disconnect your network does it help ? Infact, I would recommend disconnecting your network connection and try opening the problematic project.
If this is an old workspace from a previous version of Eclipse, try importing this project into a new workspace ?
Hope the above helps.
Yes, the problem is in "Project Explorer". If you like to use the "Java EE" perspective (which by default opens "Project Explorer" view) then close the "Project Explorer" view and open the "Package Explorer" view.
Changed Explorer to Package Explorer
Window->Show View->Other->Java->Package Explorer
It works now.
In my case, renaming the web.xml to web-fail.xml stops the hanging.
At least, I replaced my 2.4 schema definition with the 3.1
`<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
`
and everything works fine again
My way to succes was deleting the project from the eclipse. And removing ".classpath",".settings" and ".project" files(".settings" is a directory). After that importing project into eclipse as existing maven project.

Categories