本文整理汇总了Java中com.intellij.openapi.editor.event.DocumentListener.documentChanged方法的典型用法代码示例。如果您正苦于以下问题:Java DocumentListener.documentChanged方法的具体用法?Java DocumentListener.documentChanged怎么用?Java DocumentListener.documentChanged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.editor.event.DocumentListener
的用法示例。
在下文中一共展示了DocumentListener.documentChanged方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: changedUpdate
import com.intellij.openapi.editor.event.DocumentListener; //导入方法依赖的package包/类
private void changedUpdate(@NotNull DocumentEvent event, long newModificationStamp) {
try {
getLineSet().changedUpdate(event);
setModificationStamp(newModificationStamp);
if (!ShutDownTracker.isShutdownHookRunning()) {
DocumentListener[] listeners = getCachedListeners();
for (DocumentListener listener : listeners) {
try {
listener.documentChanged(event);
}
catch (Throwable e) {
log(e);
}
}
}
}
finally {
myEventsHandling = false;
}
}
示例2: changedUpdate
import com.intellij.openapi.editor.event.DocumentListener; //导入方法依赖的package包/类
private void changedUpdate(DocumentEvent event, long newModificationStamp) {
try {
if (LOG.isDebugEnabled()) LOG.debug(event.toString());
myLineSet.changedUpdate(event);
setModificationStamp(newModificationStamp);
if (!ShutDownTracker.isShutdownHookRunning()) {
DocumentListener[] listeners = getCachedListeners();
for (DocumentListener listener : listeners) {
try {
listener.documentChanged(event);
}
catch (Throwable e) {
LOG.error(e);
}
}
}
}
finally {
myEventsHandling = false;
}
}
示例3: changedUpdate
import com.intellij.openapi.editor.event.DocumentListener; //导入方法依赖的package包/类
private void changedUpdate(@NotNull DocumentEvent event, long newModificationStamp, ImmutableText prevText) {
try {
if (LOG.isDebugEnabled()) LOG.debug(event.toString());
myLineSet = getLineSet().update(prevText, event.getOffset(), event.getOffset() + event.getOldLength(), event.getNewFragment(), event.isWholeTextReplaced());
myFrozen = null;
if (myTabTrackingRequestors > 0) {
updateMightContainTabs(event.getNewFragment());
}
setModificationStamp(newModificationStamp);
if (!ShutDownTracker.isShutdownHookRunning()) {
DocumentListener[] listeners = getCachedListeners();
for (DocumentListener listener : listeners) {
try {
listener.documentChanged(event);
}
catch (Throwable e) {
LOG.error(e);
}
}
}
}
finally {
myEventsHandling = false;
}
}
示例4: documentChanged
import com.intellij.openapi.editor.event.DocumentListener; //导入方法依赖的package包/类
@Override
public void documentChanged(DocumentEvent event) {
if (myBulkUpdateInProgress) {
return;
}
myUpdateInProgress = false;
if (!isSoftWrappingEnabled()) {
return;
}
for (DocumentListener listener : myDocumentListeners) {
listener.documentChanged(event);
}
}
示例5: documentChanged
import com.intellij.openapi.editor.event.DocumentListener; //导入方法依赖的package包/类
@Override
public void documentChanged(DocumentEvent event) {
for (DocumentListener documentListener : myDocumentListeners) {
documentListener.documentChanged(event);
}
}
示例6: documentChanged
import com.intellij.openapi.editor.event.DocumentListener; //导入方法依赖的package包/类
public void documentChanged(DocumentEvent event) {
for (DocumentListener documentListener : myDocumentListeners) {
documentListener.documentChanged(event);
}
}