mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Old fields removed
This commit is contained in:
@@ -217,7 +217,7 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
|
||||
public void commitTransaction(Document document){
|
||||
final DocumentChangeTransaction documentChangeTransaction = myTransactionsMap.get(document);
|
||||
if(documentChangeTransaction == null) return;
|
||||
if(documentChangeTransaction.getTransactionRange() == null) return; // Nothing to do
|
||||
if(documentChangeTransaction.getAffectedFragments().size() == 0) return; // Nothing to do
|
||||
try{
|
||||
final PsiElement changeScope = documentChangeTransaction.getChangeScope();
|
||||
final PsiTreeChangeEventImpl fakeEvent = new PsiTreeChangeEventImpl(changeScope.getManager());
|
||||
@@ -276,8 +276,6 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
|
||||
|
||||
public class DocumentChangeTransaction{
|
||||
List<Pair<TextRange,StringBuffer>> myAffectedFragments = new ArrayList<Pair<TextRange, StringBuffer>>();
|
||||
private TextRange myTransactionRange = null;
|
||||
private final StringBuffer myTransactionBuffer = new StringBuffer();
|
||||
private final Document myDocument;
|
||||
private final PsiElement myChangeScope;
|
||||
|
||||
@@ -286,10 +284,6 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
|
||||
myChangeScope = scope;
|
||||
}
|
||||
|
||||
public TextRange getTransactionRange() {
|
||||
return myTransactionRange;
|
||||
}
|
||||
|
||||
public List<Pair<TextRange, StringBuffer>> getAffectedFragments() {
|
||||
return myAffectedFragments;
|
||||
}
|
||||
@@ -298,10 +292,6 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
|
||||
return myChangeScope;
|
||||
}
|
||||
|
||||
public StringBuffer getTransactionBuffer() {
|
||||
return myTransactionBuffer;
|
||||
}
|
||||
|
||||
public void replace(int start, int length, String str){
|
||||
final int startInFragment;
|
||||
final StringBuffer fragmentReplaceText;
|
||||
|
||||
Reference in New Issue
Block a user