/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
ChangeLayoutRefactoring.java | 231 MultiTextEdit rootEdit = new MultiTextEdit(); 243 rootEdit.addChild(new ReplaceEdit(mSelectionStart + open, oldLength, name)); 245 rootEdit.addChild(new ReplaceEdit(mSelectionStart + close, oldLength, name)); 250 String newId = ensureIdMatchesType(layout, mTypeFqcn, rootEdit); 261 rootEdit.addChild(edit); 278 convertLinearToRelative(rootEdit); 279 removeUndefinedAttrs(rootEdit, layout); 280 addMissingWrapContentAttributes(rootEdit, layout, oldType, newType, null); 283 convertAnyToRelative(rootEdit, oldType, newType); 285 //removeUndefinedLayoutAttrs(rootEdit, layout) [all...] |
ChangeViewRefactoring.java | 165 MultiTextEdit rootEdit = new MultiTextEdit(); 166 change.setEdit(rootEdit); 182 rootEdit.addChild(new ReplaceEdit(region.getStartOffset() + open, 187 rootEdit.addChild(new ReplaceEdit(region.getStartOffset() + close, oldLength, 193 String newId = ensureIdMatchesType(element, mTypeFqcn, rootEdit); 207 rootEdit.addChild(edit); 216 removeUndefinedAttrs(rootEdit, element); 223 private void removeUndefinedAttrs(MultiTextEdit rootEdit, Element element) { 240 removeAttribute(rootEdit, element, attribute.getNamespaceURI(), name); 246 setAttribute(rootEdit, element, ANDROID_URI, getAndroidNamespacePrefix() [all...] |
UnwrapRefactoring.java | 182 MultiTextEdit rootEdit = new MultiTextEdit(); 193 setAttribute(rootEdit, newRoot, attribute.getNamespaceURI(), 214 removeElementTags(rootEdit, mContainer, Collections.<Element>emptyList() /* skip */, 217 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); 219 rootEdit = formatted; 223 change.setEdit(rootEdit);
|
WrapInRefactoring.java | 210 MultiTextEdit rootEdit = new MultiTextEdit(); 225 rootEdit.addChild(edit); 250 rootEdit.addChild(deletion); 348 rootEdit.addChild(deletion); 366 rootEdit.addChild(beginEdit); 385 rootEdit.addChild(newline); 395 rootEdit.addChild(endEdit); 398 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); 400 rootEdit = formatted; 404 change.setEdit(rootEdit); [all...] |
VisualRefactoring.java | [all...] |
ExtractStyleRefactoring.java | 354 MultiTextEdit rootEdit = new MultiTextEdit(); 360 removeAttribute(rootEdit, attr); 370 setAttribute(rootEdit, element, null, null, ATTR_STYLE, value); 374 if (rootEdit.hasChildren()) { 384 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); 386 rootEdit = formatted; 390 change.setEdit(rootEdit);
|
UseCompoundDrawableRefactoring.java | 211 MultiTextEdit rootEdit = new MultiTextEdit(); 337 id = ensureHasId(rootEdit, text, null, false); 348 rootEdit.addChild(edit); 362 rootEdit.addChild(replace); 365 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); 367 rootEdit = formatted; 371 change.setEdit(rootEdit);
|
ExtractIncludeRefactoring.java | 348 MultiTextEdit rootEdit = new MultiTextEdit(); 358 rootEdit.addChild(replace); 371 rootEdit.addChild(edit); 375 MultiTextEdit formatted = reformat(doc.get(), rootEdit, 378 rootEdit = formatted; 393 change.setEdit(rootEdit);
|
GridLayoutConverter.java | 123 Element layout, boolean flatten, MultiTextEdit rootEdit, CanvasViewInfo rootView) { 127 mRootEdit = rootEdit; [all...] |
RelativeLayoutConversionHelper.java | 113 Element layout, boolean flatten, MultiTextEdit rootEdit, CanvasViewInfo rootView) { 117 mRootEdit = rootEdit; [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
AndroidTypeMoveParticipant.java | 245 MultiTextEdit rootEdit = new MultiTextEdit(); 246 rootEdit.addChildren(edits.toArray(new TextEdit[edits.size()])); 249 change.setEdit(rootEdit);
|
AndroidPackageRenameParticipant.java | 405 MultiTextEdit rootEdit = new MultiTextEdit(); 406 rootEdit.addChildren(edits.toArray(new TextEdit[edits.size()])); 409 change.setEdit(rootEdit);
|
AndroidTypeRenameParticipant.java | 386 MultiTextEdit rootEdit = new MultiTextEdit(); 387 rootEdit.addChildren(edits.toArray(new TextEdit[edits.size()])); 390 change.setEdit(rootEdit);
|
RenameResourceParticipant.java | 513 MultiTextEdit rootEdit = new MultiTextEdit(); 514 rootEdit.addChildren(edits.toArray(new TextEdit[edits.size()])); 517 change.setEdit(rootEdit);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
TemplateHandler.java | 726 MultiTextEdit rootEdit = new MultiTextEdit(); 727 rootEdit.addChild(new ReplaceEdit(0, currentXml.length(), contents)); 728 change.setEdit(rootEdit); [all...] |