public synchronized void propertyChange(PropertyChangeEvent evt) {
JTextComponent jtc = EditorRegistry.focusedComponent();
if (jtc == null) return;
Document active = jtc.getDocument();
Object sourceProperty = active.getProperty(Document.StreamDescriptionProperty);
if (!(sourceProperty instanceof DataObject)) return;
FileObject activeFile = ((DataObject)sourceProperty).getPrimaryFile();
TimesCollectorPeer.getDefault().select(activeFile);
}
Install.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录