javax.swing.text.StyledDocument.removeUndoableEditListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中javax.swing.text.StyledDocument.removeUndoableEditListener()方法的一些代码示例,展示了StyledDocument.removeUndoableEditListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StyledDocument.removeUndoableEditListener()方法的具体详情如下:
包路径:javax.swing.text.StyledDocument
类名称:StyledDocument
方法名:removeUndoableEditListener

StyledDocument.removeUndoableEditListener介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-insync

  1. private void removeUndoableEditListener() {
  2. if (styledDocument != null && undoableEditListenerAdded.compareAndSet(true, false)) {
  3. styledDocument.removeUndoableEditListener(this);
  4. }
  5. }

代码示例来源:origin: org.netbeans.api/org-openide-text

  1. public void run() {
  2. getDoc().removeUndoableEditListener(getUndoRedo());

代码示例来源:origin: org.netbeans.api/org-openide-text

  1. /** Is called under getLock () to close the document.
  2. */
  3. private boolean doCloseDocument() {
  4. boolean fireEvent = false;
  5. // notifies the support that
  6. cesEnv().removePropertyChangeListener(getListener());
  7. try {
  8. LOCAL_CLOSE_DOCUMENT.set(Boolean.TRUE);
  9. callNotifyUnmodified();
  10. } finally {
  11. LOCAL_CLOSE_DOCUMENT.set(Boolean.FALSE);
  12. }
  13. StyledDocument d = getDoc();
  14. if (d != null) {
  15. d.removeUndoableEditListener(getUndoRedo());
  16. addRemoveDocListener(d, false);
  17. }
  18. if (positionManager != null) {
  19. positionManager.documentClosed();
  20. }
  21. documentStatus = DOCUMENT_NO;
  22. fireEvent = true;
  23. setDoc(null, false);
  24. kit = null;
  25. getUndoRedo().discardAllEdits();
  26. updateLineSet(true);
  27. return fireEvent;
  28. }

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

  1. public void run () {
  2. doc.removeUndoableEditListener (getUndoRedo ());

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

  1. public void run () {
  2. doc.removeUndoableEditListener (getUndoRedo ());

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

  1. /** Is called under getLock () to close the document.
  2. */
  3. private void doCloseDocument () {
  4. prepareTask = null;
  5. // notifies the support that
  6. env ().removePropertyChangeListener(getListener());
  7. notifyUnmodified ();
  8. if (doc != null) {
  9. doc.removeUndoableEditListener (getUndoRedo ());
  10. doc.removeDocumentListener(getListener());
  11. }
  12. if (positionManager != null) {
  13. positionManager.documentClosed ();
  14. documentStatus = DOCUMENT_NO;
  15. fireDocumentChange(doc, true);
  16. }
  17. documentStatus = DOCUMENT_NO;
  18. doc = null;
  19. kit = null;
  20. getUndoRedo().discardAllEdits();
  21. updateLineSet (true);
  22. }

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

  1. /** Is called under getLock () to close the document.
  2. */
  3. private void doCloseDocument () {
  4. prepareTask = null;
  5. // notifies the support that
  6. env ().removePropertyChangeListener(getListener());
  7. notifyUnmodified ();
  8. if (doc != null) {
  9. doc.removeUndoableEditListener (getUndoRedo ());
  10. doc.removeDocumentListener(getListener());
  11. }
  12. if (positionManager != null) {
  13. positionManager.documentClosed ();
  14. documentStatus = DOCUMENT_NO;
  15. fireDocumentChange(doc, true);
  16. }
  17. documentStatus = DOCUMENT_NO;
  18. doc = null;
  19. kit = null;
  20. getUndoRedo().discardAllEdits();
  21. updateLineSet (true);
  22. }

相关文章