Java Code Examples for org.netbeans.modules.maven.api.NbMavenProject#removeWatchedPath()
The following examples show how to use
org.netbeans.modules.maven.api.NbMavenProject#removeWatchedPath() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OtherRootNodeFactory.java From netbeans with Apache License 2.0 | 5 votes |
@Override public void removeNotify() { NbMavenProject watch = project.getLookup().lookup(NbMavenProject.class); watch.removePropertyChangeListener(this); watch.removeWatchedPath(MAIN); //NOI18N watch.removeWatchedPath(TEST); //NOI18N FileObject fo = project.getProjectDirectory().getFileObject(MAIN); if (fo != null) { fo.removeFileChangeListener(fcl); } fo = project.getProjectDirectory().getFileObject(TEST); if (fo != null) { fo.removeFileChangeListener(fcl); } }
Example 2
Source File: GroovySourcesNodeFactory.java From netbeans with Apache License 2.0 | 5 votes |
@Override public void removeNotify() { NbMavenProject watch = project.getLookup().lookup(NbMavenProject.class); watch.removePropertyChangeListener(this); watch.removeWatchedPath(MAIN_GROOVY); watch.removeWatchedPath(TEST_GROOVY); removeListener(MAIN_GROOVY); removeListener(TEST_GROOVY); }