本文整理了Java中javax.swing.text.StyledDocument.removeUndoableEditListener()
方法的一些代码示例,展示了StyledDocument.removeUndoableEditListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StyledDocument.removeUndoableEditListener()
方法的具体详情如下:
包路径:javax.swing.text.StyledDocument
类名称:StyledDocument
方法名:removeUndoableEditListener
暂无
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-insync
private void removeUndoableEditListener() {
if (styledDocument != null && undoableEditListenerAdded.compareAndSet(true, false)) {
styledDocument.removeUndoableEditListener(this);
}
}
代码示例来源:origin: org.netbeans.api/org-openide-text
public void run() {
getDoc().removeUndoableEditListener(getUndoRedo());
代码示例来源:origin: org.netbeans.api/org-openide-text
/** Is called under getLock () to close the document.
*/
private boolean doCloseDocument() {
boolean fireEvent = false;
// notifies the support that
cesEnv().removePropertyChangeListener(getListener());
try {
LOCAL_CLOSE_DOCUMENT.set(Boolean.TRUE);
callNotifyUnmodified();
} finally {
LOCAL_CLOSE_DOCUMENT.set(Boolean.FALSE);
}
StyledDocument d = getDoc();
if (d != null) {
d.removeUndoableEditListener(getUndoRedo());
addRemoveDocListener(d, false);
}
if (positionManager != null) {
positionManager.documentClosed();
}
documentStatus = DOCUMENT_NO;
fireEvent = true;
setDoc(null, false);
kit = null;
getUndoRedo().discardAllEdits();
updateLineSet(true);
return fireEvent;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void run () {
doc.removeUndoableEditListener (getUndoRedo ());
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void run () {
doc.removeUndoableEditListener (getUndoRedo ());
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Is called under getLock () to close the document.
*/
private void doCloseDocument () {
prepareTask = null;
// notifies the support that
env ().removePropertyChangeListener(getListener());
notifyUnmodified ();
if (doc != null) {
doc.removeUndoableEditListener (getUndoRedo ());
doc.removeDocumentListener(getListener());
}
if (positionManager != null) {
positionManager.documentClosed ();
documentStatus = DOCUMENT_NO;
fireDocumentChange(doc, true);
}
documentStatus = DOCUMENT_NO;
doc = null;
kit = null;
getUndoRedo().discardAllEdits();
updateLineSet (true);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Is called under getLock () to close the document.
*/
private void doCloseDocument () {
prepareTask = null;
// notifies the support that
env ().removePropertyChangeListener(getListener());
notifyUnmodified ();
if (doc != null) {
doc.removeUndoableEditListener (getUndoRedo ());
doc.removeDocumentListener(getListener());
}
if (positionManager != null) {
positionManager.documentClosed ();
documentStatus = DOCUMENT_NO;
fireDocumentChange(doc, true);
}
documentStatus = DOCUMENT_NO;
doc = null;
kit = null;
getUndoRedo().discardAllEdits();
updateLineSet (true);
}
内容来源于网络,如有侵权,请联系作者删除!