Home
last modified time | relevance | path

Searched refs:edits (Results 1 – 25 of 27) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DAndroidTypeMoveParticipant.java58 import org.eclipse.text.edits.MultiTextEdit;
59 import org.eclipse.text.edits.ReplaceEdit;
60 import org.eclipse.text.edits.TextEdit;
238 List<TextEdit> edits = new ArrayList<TextEdit>(); in addXmlFileChanges() local
240 addManifestReplacements(edits, root, document); in addXmlFileChanges()
242 addLayoutReplacements(edits, root, document); in addXmlFileChanges()
244 if (!edits.isEmpty()) { in addXmlFileChanges()
246 rootEdit.addChildren(edits.toArray(new TextEdit[edits.size()])); in addXmlFileChanges()
273 @NonNull List<TextEdit> edits, in addLayoutReplacements()
281 edits.add(new ReplaceEdit(start, end - start, mNewFqcn)); in addLayoutReplacements()
[all …]
DAndroidTypeRenameParticipant.java70 import org.eclipse.text.edits.MultiTextEdit;
71 import org.eclipse.text.edits.ReplaceEdit;
72 import org.eclipse.text.edits.TextEdit;
375 List<TextEdit> edits = new ArrayList<TextEdit>(); in addXmlFileChanges() local
378 addManifestReplacements(edits, root, document); in addXmlFileChanges()
380 addValueReplacements(edits, root, document); in addXmlFileChanges()
383 addLayoutReplacements(edits, root, document); in addXmlFileChanges()
385 if (!edits.isEmpty()) { in addXmlFileChanges()
387 rootEdit.addChildren(edits.toArray(new TextEdit[edits.size()])); in addXmlFileChanges()
414 @NonNull List<TextEdit> edits, in addLayoutReplacements()
[all …]
DAndroidPackageRenameParticipant.java69 import org.eclipse.text.edits.MultiTextEdit;
70 import org.eclipse.text.edits.ReplaceEdit;
71 import org.eclipse.text.edits.TextEdit;
398 List<TextEdit> edits = new ArrayList<TextEdit>();
400 addManifestReplacements(edits, root, document);
402 addLayoutReplacements(edits, root, document);
404 if (!edits.isEmpty()) {
406 rootEdit.addChildren(edits.toArray(new TextEdit[edits.size()]));
439 @NonNull List<TextEdit> edits,
447 edits.add(new ReplaceEdit(start, end - start, getNewClassName(tag)));
[all …]
DRenameResourceParticipant.java71 import org.eclipse.text.edits.MultiTextEdit;
72 import org.eclipse.text.edits.ReplaceEdit;
73 import org.eclipse.text.edits.TextEdit;
510 List<TextEdit> edits = new ArrayList<TextEdit>(); in addResourceXmlChanges() local
511 addReplacements(edits, root, document, folderType); in addResourceXmlChanges()
512 if (!edits.isEmpty()) { in addResourceXmlChanges()
514 rootEdit.addChildren(edits.toArray(new TextEdit[edits.size()])); in addResourceXmlChanges()
541 @NonNull List<TextEdit> edits, in addReplacements()
561 edits.add(new ReplaceEdit(start, end - start, mNewName)); in addReplacements()
580 edits.add(new ReplaceEdit(start, end - start, mXmlNewValue1)); in addReplacements()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRefactoringTest.java37 import org.eclipse.text.edits.MultiTextEdit;
38 import org.eclipse.text.edits.TextEdit;
123 MultiTextEdit edits = (MultiTextEdit) edit; in checkEdits() local
124 edits.apply(document); in checkEdits()
171 MultiTextEdit edits = (MultiTextEdit) edit; in checkEdits() local
172 edits.apply(document); in checkEdits()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
DEnabledTextEditGroup.java19 import org.eclipse.text.edits.TextEditGroup;
DExtractStringRefactoring.java74 import org.eclipse.text.edits.InsertEdit;
75 import org.eclipse.text.edits.MultiTextEdit;
76 import org.eclipse.text.edits.ReplaceEdit;
77 import org.eclipse.text.edits.TextEdit;
78 import org.eclipse.text.edits.TextEditGroup;
DReplaceStringsVisitor.java42 import org.eclipse.text.edits.TextEditGroup;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DTypographyFix.java68 List<TypographyDetector.ReplaceEdit> edits = in apply() local
70 for (TypographyDetector.ReplaceEdit edit : edits) { in apply()
DAddSuppressAnnotation.java63 import org.eclipse.text.edits.MultiTextEdit;
64 import org.eclipse.text.edits.TextEdit;
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategyTest.java22 import org.eclipse.text.edits.MalformedTreeException;
23 import org.eclipse.text.edits.ReplaceEdit;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DChangeViewRefactoring.java43 import org.eclipse.text.edits.MultiTextEdit;
44 import org.eclipse.text.edits.ReplaceEdit;
45 import org.eclipse.text.edits.TextEdit;
DWrapInRefactoring.java47 import org.eclipse.text.edits.DeleteEdit;
48 import org.eclipse.text.edits.InsertEdit;
49 import org.eclipse.text.edits.MultiTextEdit;
50 import org.eclipse.text.edits.TextEdit;
DVisualRefactoring.java70 import org.eclipse.text.edits.DeleteEdit;
71 import org.eclipse.text.edits.InsertEdit;
72 import org.eclipse.text.edits.MalformedTreeException;
73 import org.eclipse.text.edits.MultiTextEdit;
74 import org.eclipse.text.edits.ReplaceEdit;
75 import org.eclipse.text.edits.TextEdit;
367 List<TextEdit> edits = new ArrayList<TextEdit>(); in replaceIds() local
397 edits.add(new ReplaceEdit(start, end - start, referenceId)); in replaceIds()
403 return edits; in replaceIds()
DUseCompoundDrawableRefactoring.java64 import org.eclipse.text.edits.MultiTextEdit;
65 import org.eclipse.text.edits.ReplaceEdit;
66 import org.eclipse.text.edits.TextEdit;
DChangeLayoutRefactoring.java66 import org.eclipse.text.edits.MalformedTreeException;
67 import org.eclipse.text.edits.MultiTextEdit;
68 import org.eclipse.text.edits.ReplaceEdit;
69 import org.eclipse.text.edits.TextEdit;
DExtractIncludeRefactoring.java71 import org.eclipse.text.edits.InsertEdit;
72 import org.eclipse.text.edits.MultiTextEdit;
73 import org.eclipse.text.edits.ReplaceEdit;
74 import org.eclipse.text.edits.TextEdit;
DUnwrapRefactoring.java39 import org.eclipse.text.edits.MultiTextEdit;
DGridLayoutConverter.java72 import org.eclipse.text.edits.InsertEdit;
73 import org.eclipse.text.edits.MalformedTreeException;
74 import org.eclipse.text.edits.MultiTextEdit;
DExtractStyleRefactoring.java67 import org.eclipse.text.edits.InsertEdit;
68 import org.eclipse.text.edits.MultiTextEdit;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/renamepackage/
DApplicationPackageNameRefactoring.java57 import org.eclipse.text.edits.MalformedTreeException;
58 import org.eclipse.text.edits.MultiTextEdit;
59 import org.eclipse.text.edits.ReplaceEdit;
60 import org.eclipse.text.edits.TextEdit;
61 import org.eclipse.text.edits.TextEditGroup;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategy.java54 import org.eclipse.text.edits.MultiTextEdit;
55 import org.eclipse.text.edits.ReplaceEdit;
56 import org.eclipse.text.edits.TextEdit;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DGraphicalEditorPart.java152 import org.eclipse.text.edits.MalformedTreeException;
153 import org.eclipse.text.edits.MultiTextEdit;
154 import org.eclipse.text.edits.ReplaceEdit;
2487 MultiTextEdit edits = new MultiTextEdit(); in onClick() local
2502 edits.addChild(new ReplaceEdit(index, find.length(), replaceWith)); in onClick()
2514 edits.addChild(new ReplaceEdit(index, find.length(), replaceWith)); in onClick()
2528 edits.addChild(new ReplaceEdit(index, find.length(), replaceWith)); in onClick()
2532 edits.apply(document); in onClick()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DTemplateHandler.java80 import org.eclipse.text.edits.InsertEdit;
81 import org.eclipse.text.edits.MultiTextEdit;
82 import org.eclipse.text.edits.ReplaceEdit;
83 import org.eclipse.text.edits.TextEdit;
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRefactoringTestBase.java43 import org.eclipse.text.edits.TextEdit;

12