当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
AntProjectEvent (NetBeans Ant Project API) - NetBeans API Javadoc 4.1.0
org.netbeans.spi.project.support.ant
Class AntProjectEvent
java.lang.Object
java.util.EventObject
org.netbeans.spi.project.support.ant.AntProjectEvent
- All Implemented Interfaces:
- Serializable
- public final class AntProjectEvent
- extends EventObject
Event object corresponding to a change made in an Ant project's metadata.
The event source is an AntProjectHelper
.
- See Also:
AntProjectListener
,
Serialized Form
getHelper
public AntProjectHelper getHelper()
- Get the associated Ant project helper object.
- Returns:
- the project helper which fired the event
getPath
public String getPath()
- Get the path to the modified (or created or deleted) file.
Paths typically used are:
AntProjectHelper.PROJECT_PROPERTIES_PATH
AntProjectHelper.PRIVATE_PROPERTIES_PATH
AntProjectHelper.PROJECT_XML_PATH
AntProjectHelper.PRIVATE_XML_PATH
However for properties files, other paths may exist if the project
uses them for some purpose.
- Returns:
- a project-relative path
isExpected
public boolean isExpected()
- Check whether the change was produced by calling methods on
AntProjectHelper
or whether it represents a change
detected on disk.
- Returns:
- true if the change was triggered by in-memory modification methods,
false if occurred on disk in the metadata files and is being loaded