Home
last modified time | relevance | path

Searched refs:formatted (Results 1 – 13 of 13) sorted by relevance

/sdk/find_java/src/source/
Dutils.cpp31 CString formatted; in msgBox() local
34 formatted.setv(text, ap); in msgBox()
37 MessageBoxA(NULL, formatted.cstr(), "Android SDK Manager", MB_OK | MB_ICONINFORMATION); in msgBox()
42 CString formatted; in displayLastError() local
45 formatted.setv(description, ap); in displayLastError()
50 formatted.add("\r\n"); in displayLastError()
51 formatted.add(error.cstr()); in displayLastError()
54 fprintf(stderr, "%s\n", formatted.cstr()); in displayLastError()
56 MessageBox(NULL, formatted.cstr(), "Android SDK Manager - Error", MB_OK | MB_ICONERROR); in displayLastError()
/sdk/find_java2/src/
Dutils.cpp90 CString formatted; in msgBox() local
93 formatted.FormatV(text, ap); in msgBox()
97 MessageBox(NULL, formatted, gAppName, MB_OK | MB_ICONINFORMATION); in msgBox()
126 CString formatted; in displayLastError() local
129 formatted.FormatV(description, ap); in displayLastError()
133 formatted.Append(_T("\r\n")); in displayLastError()
134 formatted.Append(error); in displayLastError()
137 _ftprintf(stderr, _T("%s\n"), (LPCTSTR) formatted); in displayLastError()
141 MessageBox(NULL, formatted, name, MB_OK | MB_ICONERROR); in displayLastError()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategy.java356 String formatted = sb.toString(); in format() local
357 ReplaceEdit replaceEdit = createReplaceEdit(document, replaceStart, replaceEnd, formatted, in format()
386 int replaceEnd, String formatted, XmlFormatPreferences prefs) { in createReplaceEdit() argument
401 for (int i = 0; i < formatted.length(); i++) { in createReplaceEdit()
402 if (!Character.isWhitespace(formatted.charAt(i))) { in createReplaceEdit()
403 formatted = formatted.substring(i); in createReplaceEdit()
419 for (int i = 0, n = formatted.length(); i < n; i++) { in createReplaceEdit()
420 char c = formatted.charAt(i); in createReplaceEdit()
469 for (int i = formatted.length() - 1; i >= 0; i--) { in createReplaceEdit()
470 char c = formatted.charAt(i); in createReplaceEdit()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DEclipseXmlPrettyPrinterTest.java79 String formatted = sb.toString(); in checkFormat() local
80 if (!expected.equals(formatted)) { in checkFormat()
81 System.out.println(formatted); in checkFormat()
83 assertEquals(expected, formatted); in checkFormat()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/formatting/
DAndroidXmlFormattingStrategyTest.java31 private void check(String before, int replaceStart, int replaceEnd, String formatted, in check() argument
37 replaceEnd, formatted, prefs); in check()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DUnwrapRefactoring.java217 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); in computeChanges() local
218 if (formatted != null) { in computeChanges()
219 rootEdit = formatted; in computeChanges()
DVisualRefactoring.java1316 String formatted = EclipseXmlPrettyPrinter.prettyPrint(actual, formatPrefs, style, in reformat() local
1324 int lastDifference = formatted.length(); in reformat()
1328 for (int i = 0, j = start; i < formatted.length() && j < end; i++, j++) { in reformat()
1329 if (formatted.charAt(i) != oldContents.charAt(j)) { in reformat()
1342 for (int i = formatted.length() - 1, j = end - 1; in reformat()
1345 if (formatted.charAt(i) != oldContents.charAt(j)) { in reformat()
1352 end -= (formatted.length() - lastDifference); in reformat()
1354 formatted = formatted.substring(firstDifference, lastDifference); in reformat()
1357 formatted); in reformat()
DWrapInRefactoring.java398 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); in computeChanges() local
399 if (formatted != null) { in computeChanges()
400 rootEdit = formatted; in computeChanges()
DUseCompoundDrawableRefactoring.java365 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); in computeChanges() local
366 if (formatted != null) { in computeChanges()
367 rootEdit = formatted; in computeChanges()
DExtractStyleRefactoring.java384 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); in computeChanges() local
385 if (formatted != null) { in computeChanges()
386 rootEdit = formatted; in computeChanges()
DChangeLayoutRefactoring.java323 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT); in computeChanges() local
324 if (formatted != null) { in computeChanges()
325 rootEdit = formatted; in computeChanges()
DExtractIncludeRefactoring.java375 MultiTextEdit formatted = reformat(doc.get(), rootEdit, in handleIncludingFile() local
377 if (formatted != null) { in handleIncludingFile()
378 rootEdit = formatted; in handleIncludingFile()
/sdk/eclipse/
Dchanges.txt405 - The generated XML will be better formatted. Full XML formatter