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