/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
D | NewProjectPage.java | 358 IStatus status = NewTemplatePage.validateCombo(null, mThemeParameter, in updateTheme() local 360 if (status == null || status.isOK()) { in updateTheme() 756 IStatus status = mValues.template.validateTemplate(mValues.minSdkLevel, in validatePage() local 758 if (status != null && !status.isOK()) { in validatePage() 770 if (appStatus != null && (status == null in validatePage() 771 || appStatus.getSeverity() > status.getSeverity())) { in validatePage() 772 status = appStatus; in validatePage() 776 if (projectStatus != null && (status == null in validatePage() 777 || projectStatus.getSeverity() > status.getSeverity())) { in validatePage() 778 status = projectStatus; in validatePage() [all …]
|
D | NewTemplatePage.java | 602 IStatus status = mValues.getTemplateHandler().validateTemplate(minSdk, buildApi); in validatePage() local 604 if (status == null || status.isOK()) { in validatePage() 606 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validatePage() 625 if (status == null || status.isOK()) { in validatePage() 626 status = s; in validatePage() 633 if (status == null || status.isOK()) { in validatePage() 635 status = validateCombo(status, parameter, minSdk, buildApi); in validatePage() 640 setPageComplete(status == null || status.getSeverity() != IStatus.ERROR); in validatePage() 641 if (status != null) { in validatePage() 642 setMessage(status.getMessage(), in validatePage() [all …]
|
D | InstallDependencyPage.java | 238 IStatus status = null; in validatePage() local 243 status = new Status(IStatus.WARNING, AdtPlugin.PLUGIN_ID, in validatePage() 247 setPageComplete(status == null || status.getSeverity() != IStatus.ERROR); in validatePage() 248 if (status != null) { in validatePage() 249 setMessage(status.getMessage(), in validatePage() 250 status.getSeverity() == IStatus.ERROR in validatePage()
|
D | ActivityPage.java | 264 IStatus status = null; in validatePage() local 268 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validatePage() 272 status = templateHandler.validateTemplate(mValues.minSdkLevel, in validatePage() 277 setPageComplete(status == null || status.getSeverity() != IStatus.ERROR); in validatePage() 278 if (status != null) { in validatePage() 279 setMessage(status.getMessage(), in validatePage() 280 status.getSeverity() == IStatus.ERROR in validatePage()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
D | ExtractStringRefactoring.java | 389 RefactoringStatus status = new RefactoringStatus(); in checkInitialConditions() local 396 return status; in checkInitialConditions() 399 if (!checkSourceFile(mFile, status, monitor)) { in checkInitialConditions() 400 return status; in checkInitialConditions() 409 status.addFatalError("The file is read-only, please make it writeable first."); in checkInitialConditions() 410 return status; in checkInitialConditions() 414 if (!findSelectionInJavaUnit(mUnit, status, monitor)) { in checkInitialConditions() 415 return status; in checkInitialConditions() 424 return status; in checkInitialConditions() 444 if (!findSelectionInXmlFile(mFile, status, monitor)) { in checkInitialConditions() [all …]
|
D | ExtractStringDescriptor.java | 61 public Refactoring createRefactoring(RefactoringStatus status) throws CoreException { in createRefactoring() argument 66 status.addFatalError("Failed to recreate ExtractStringRefactoring from descriptor"); in createRefactoring()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ |
D | ApplicationInfoPage.java | 441 IStatus status = validatePackage(mValues.packageName); in validatePage() local 442 if (status == null || status.getSeverity() != IStatus.ERROR) { in validatePage() 445 status = validActivity; in validatePage() 448 if (status == null || status.getSeverity() != IStatus.ERROR) { in validatePage() 451 status = validMinSdk; in validatePage() 455 if (status == null || status.getSeverity() != IStatus.ERROR) { in validatePage() 458 status = validSourceFolder; in validatePage() 464 if (status == null || status.getSeverity() != IStatus.ERROR) { in validatePage() 469 status = validTestProject; in validatePage() 472 if (status == null || status.getSeverity() != IStatus.ERROR) { in validatePage() [all …]
|
D | SampleSelectionPage.java | 247 IStatus status = null; in validatePage() local 249 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validatePage() 252 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, "Choose a sample"); in validatePage() 254 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validatePage() 257 status = ProjectNamePage.validateProjectName(mValues.projectName); in validatePage() 261 setPageComplete(status == null || status.getSeverity() != IStatus.ERROR); in validatePage() 262 if (status != null) { in validatePage() 263 setMessage(status.getMessage(), in validatePage() 264 status.getSeverity() == IStatus.ERROR in validatePage()
|
D | ImportPage.java | 267 IStatus status = null; in validatePage() local 272 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validatePage() 275 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validatePage() 280 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validatePage() 285 status = ProjectNamePage.validateProjectName(project.getProjectName()); in validatePage() 286 if (status != null && !status.isOK()) { in validatePage() 291 project.getProjectName(), status.getMessage()); in validatePage() 292 status = new Status(status.getSeverity(), AdtPlugin.PLUGIN_ID, in validatePage() 297 status = null; // Don't leave non null status with isOK() == true in validatePage() 304 setPageComplete(status == null || status.getSeverity() != IStatus.ERROR); in validatePage() [all …]
|
D | ProjectNamePage.java | 432 IStatus status = null; in validatePage() local 437 status = validateProjectName(mValues.projectName); in validatePage() 440 if (status == null || status.getSeverity() != IStatus.ERROR) { in validatePage() 443 status = validLocation; in validatePage() 453 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validatePage() 462 setPageComplete(status == null || status.getSeverity() != IStatus.ERROR); in validatePage() 463 if (status != null) { in validatePage() 464 setMessage(status.getMessage(), in validatePage() 465 status.getSeverity() == IStatus.ERROR in validatePage()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | UnwrapRefactoring.java | 84 RefactoringStatus status = new RefactoringStatus(); in checkInitialConditions() local 90 status.addFatalError("No selection to wrap"); in checkInitialConditions() 91 return status; in checkInitialConditions() 96 status.addFatalError("Nothing to unwrap"); in checkInitialConditions() 97 return status; in checkInitialConditions() 117 status.addFatalError( in checkInitialConditions() 119 return status; in checkInitialConditions() 129 status.addFatalError( in checkInitialConditions() 131 return status; in checkInitialConditions() 139 status.addFatalError( in checkInitialConditions() [all …]
|
D | UseCompoundDrawableRefactoring.java | 118 RefactoringStatus status = new RefactoringStatus(); in checkInitialConditions() local 124 status.addFatalError("Nothing to convert"); in checkInitialConditions() 125 return status; in checkInitialConditions() 131 if (!validateNotEmpty(infos, status)) { in checkInitialConditions() 132 return status; in checkInitialConditions() 136 if (!validateContiguous(infos, status)) { in checkInitialConditions() 137 return status; in checkInitialConditions() 143 status.addFatalError("Nothing to convert"); in checkInitialConditions() 144 return status; in checkInitialConditions() 150 status.addFatalError("Must select exactly one LinearLayout"); in checkInitialConditions() [all …]
|
D | ChangeViewRefactoring.java | 96 RefactoringStatus status = new RefactoringStatus(); in checkInitialConditions() local 102 status.addFatalError("No selection to convert"); in checkInitialConditions() 103 return status; in checkInitialConditions() 109 if (!validateNotEmpty(infos, status)) { in checkInitialConditions() 110 return status; in checkInitialConditions() 116 status.addFatalError("Nothing to convert"); in checkInitialConditions() 117 return status; in checkInitialConditions() 121 return status; in checkInitialConditions()
|
D | WrapInRefactoring.java | 102 RefactoringStatus status = new RefactoringStatus(); in checkInitialConditions() local 108 status.addFatalError("No selection to wrap"); in checkInitialConditions() 109 return status; in checkInitialConditions() 118 if (!validateNotEmpty(infos, status)) { in checkInitialConditions() 119 return status; in checkInitialConditions() 123 if (!validateContiguous(infos, status)) { in checkInitialConditions() 124 return status; in checkInitialConditions() 130 status.addFatalError("Nothing to wrap"); in checkInitialConditions() 131 return status; in checkInitialConditions() 135 return status; in checkInitialConditions()
|
D | ExtractIncludeRefactoring.java | 134 RefactoringStatus status = new RefactoringStatus(); in checkInitialConditions() local 140 status.addFatalError("No selection to extract"); in checkInitialConditions() 141 return status; in checkInitialConditions() 149 if (!validateNotEmpty(infos, status)) { in checkInitialConditions() 150 return status; in checkInitialConditions() 153 if (!validateNotRoot(infos, status)) { in checkInitialConditions() 154 return status; in checkInitialConditions() 163 status.addWarning("No point in refactoring a single include tag"); in checkInitialConditions() 169 if (!validateContiguous(infos, status)) { in checkInitialConditions() 170 return status; in checkInitialConditions() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/exportgradle/ |
D | BuildFileCreator.java | 185 ExportStatus status = new ExportStatus(); in createBuildFiles() local 186 builder.setStatus(status); in createBuildFiles() 189 Set<IFile> confirmedFiles = validateEdit(files, status, shell); in createBuildFiles() 191 if (status.hasError()) { in createBuildFiles() 240 status.addFileStatus(ExportStatus.FileStatus.IO_FAILURE, in createBuildFiles() 242 status.setErrorMessage(e.getMessage()); in createBuildFiles() 260 status.addFileStatus(ExportStatus.FileStatus.IO_FAILURE, settingsFile); in createBuildFiles() 261 status.setErrorMessage(e.getMessage()); in createBuildFiles() 268 status.addFileStatus(ExportStatus.FileStatus.IO_FAILURE, mainBuildFile); in createBuildFiles() 269 status.setErrorMessage(e.getMessage()); in createBuildFiles() [all …]
|
D | ExportStatus.java | 33 void addFileStatus(@NonNull FileStatus status, @NonNull File file) { in addFileStatus() argument 34 mFileStatus.put(status, file); in addFileStatus()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ |
D | AndroidClasspathContainerPage.java | 144 StatusInfo status = new StatusInfo(); in setVisible() local 145 status.setError(""); //$NON-NLS-1$ in setVisible() 146 mCurrStatus = status; in setVisible() 156 protected void updateStatus(IStatus status) { in updateStatus() argument 157 mCurrStatus = status; in updateStatus() 158 setPageComplete(!status.matches(IStatus.ERROR)); in updateStatus() 160 StatusUtil.applyToStatusLine(this, status); in updateStatus() 172 protected void updateStatus(IStatus[] status) { in updateStatus() argument 173 updateStatus(StatusUtil.getMostSevere(status)); in updateStatus()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/binaryxml/ |
D | BinaryXMLDescriber.java | 54 int status = INVALID; in describe() local 64 status = VALID; in describe() 67 return status; in describe()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
D | TemplateHandlerTest.java | 347 IStatus status = values.template.validateTemplate( in checkTemplate() local 349 if (status != null && !status.isOK()) { in checkTemplate() 354 status = state.getTemplateHandler().validateTemplate( in checkTemplate() 356 if (status != null && !status.isOK()) { in checkTemplate() 460 IStatus status = values.template.validateTemplate( in checkProjectWithActivity() local 462 if (status != null && !status.isOK()) { in checkProjectWithActivity() 467 status = values.activityValues.getTemplateHandler().validateTemplate( in checkProjectWithActivity() 469 if (status != null && !status.isOK()) { in checkProjectWithActivity() 683 IStatus status = values.getTemplateHandler().validateTemplate( in checkProject() local 685 if (status != null && !status.isOK()) { in checkProject() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
D | NativeLibInJarException.java | 32 NativeLibInJarException(JarStatus status, String message, String libName, in NativeLibInJarException() argument 35 mStatus = status; in NativeLibInJarException()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
D | ColumnDialog.java | 98 IStatus status; in validate() local 102 status = new Status(IStatus.ERROR, AdtPlugin.PLUGIN_ID, in validate() 105 status = new Status(IStatus.OK, AdtPlugin.PLUGIN_ID, null); in validate() 107 updateStatus(status); in validate()
|
/sdk/find_lock/ |
D | find_lock.cpp | 243 int status = sNtQueryObjectFunc(h, 2, NULL, 0, &size); in getHandleType() local 244 if (status == STATUS_INFO_LENGTH_MISMATCH && size > 0) { in getHandleType() 247 status = sNtQueryObjectFunc(h, 2, buf, size, NULL); in getHandleType() 248 if (status == 0 && size > 96) { in getHandleType() 282 int status = sNtQueryObjectFunc(handle, 2, NULL, 0, &size); in isFileHandleType() local 283 if (status == STATUS_INFO_LENGTH_MISMATCH && size > 0) { in isFileHandleType() 286 status = sNtQueryObjectFunc(handle, 2, buf, size, NULL); in isFileHandleType() 287 if (status == 0 && size > 96) { in isFileHandleType() 329 DWORD status = sNtQueryInformationFileFunc(info->handle, iob, buf, sizeof(buf), 9); in FileNameThreadFunc() local 330 if (status == STATUS_SUCCESS) { in FileNameThreadFunc()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | UnwrapRefactoringTest.java | 53 RefactoringStatus status = refactoring.checkInitialConditions(new NullProgressMonitor()); in checkRefactoring() local 54 assertFalse(status.hasError()); in checkRefactoring()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
D | RefactoringTestBase.java | 65 RefactoringStatus status = refactoring.checkAllConditions(new NullProgressMonitor()); in checkRefactoring() local 66 assertNotNull(status); in checkRefactoring() 70 if (status.toString().trim().startsWith( in checkRefactoring() 78 assertEquals(status.toString().trim(), expectedWarnings.trim()); in checkRefactoring() 80 if (!status.isOK()) { in checkRefactoring() 83 assertTrue(status.toString(), status.isOK()); in checkRefactoring()
|