public abstract class CopyPasteReferenceProcessor<TRef extends PsiElement> extends CopyPastePostProcessor<ReferenceTransferableData>
EP_NAME
Constructor and Description |
---|
CopyPasteReferenceProcessor() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addReferenceData(PsiElement element,
java.util.ArrayList<? super ReferenceData> array,
int startOffset,
java.lang.String qClassName,
java.lang.String staticMemberName) |
protected abstract void |
addReferenceData(PsiFile file,
int startOffset,
PsiElement element,
java.util.ArrayList<ReferenceData> to) |
java.util.List<ReferenceTransferableData> |
collectTransferableData(PsiFile file,
Editor editor,
int[] startOffsets,
int[] endOffsets)
This method will be run in the dispatch thread with alternative resolve enabled
|
java.util.List<ReferenceTransferableData> |
extractTransferableData(java.awt.datatransfer.Transferable content) |
protected abstract TRef [] |
findReferencesToRestore(PsiFile file,
RangeMarker bounds,
ReferenceData[] referenceData) |
void |
processTransferableData(Project project,
Editor editor,
RangeMarker bounds,
int caretOffset,
Ref<java.lang.Boolean> indented,
java.util.List<ReferenceTransferableData> values) |
protected abstract void |
removeImports(PsiFile file,
java.util.Set<java.lang.String> imports) |
protected PsiElement |
resolveReferenceIgnoreOverriding(PsiPolyVariantReference reference) |
protected abstract void |
restoreReferences(ReferenceData[] referenceData,
TRef[] refs,
java.util.Set<java.lang.String> imported) |
public java.util.List<ReferenceTransferableData> collectTransferableData(PsiFile file, Editor editor, int[] startOffsets, int[] endOffsets)
CopyPastePostProcessor
collectTransferableData
in class CopyPastePostProcessor<ReferenceTransferableData>
protected abstract void addReferenceData(PsiFile file, int startOffset, PsiElement element, java.util.ArrayList<ReferenceData> to)
public java.util.List<ReferenceTransferableData> extractTransferableData(java.awt.datatransfer.Transferable content)
extractTransferableData
in class CopyPastePostProcessor<ReferenceTransferableData>
public void processTransferableData(Project project, Editor editor, RangeMarker bounds, int caretOffset, Ref<java.lang.Boolean> indented, java.util.List<ReferenceTransferableData> values)
processTransferableData
in class CopyPastePostProcessor<ReferenceTransferableData>
protected abstract void removeImports(PsiFile file, java.util.Set<java.lang.String> imports)
protected static void addReferenceData(PsiElement element, java.util.ArrayList<? super ReferenceData> array, int startOffset, java.lang.String qClassName, java.lang.String staticMemberName)
protected abstract TRef [] findReferencesToRestore(PsiFile file, RangeMarker bounds, ReferenceData[] referenceData)
protected PsiElement resolveReferenceIgnoreOverriding(PsiPolyVariantReference reference)
protected abstract void restoreReferences(ReferenceData[] referenceData, TRef[] refs, java.util.Set<java.lang.String> imported)