public String getDescription() { return "Persisted container [" + this.containerPath //$NON-NLS-1$ + " for project [" + this.project.getElementName() //$NON-NLS-1$ + "]]"; //$NON-NLS-1$ }
private void verbose_not_a_user_library(IJavaProject project, IPath containerPath) { Util.verbose( "UserLibrary INIT - FAILED (not a user library)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath); //$NON-NLS-1$ } }
private void verbose_not_a_user_library(IJavaProject project, IPath containerPath) { Util.verbose( "UserLibrary INIT - FAILED (not a user library)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath); //$NON-NLS-1$ } }
private void verbose_no_container_initializer_found(IJavaProject project, IPath containerPath) { Util.verbose( "CPContainer INIT - no initializer found\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath); //$NON-NLS-1$ }
private void verbose_container_using_failure_container(IJavaProject project, IPath containerPath, ClasspathContainerInitializer initializer) { Util.verbose( "CPContainer INIT - FAILED (using failure container)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath + '\n' + //$NON-NLS-1$ " initializer: " + initializer); //$NON-NLS-1$ }
void verbose_missbehaving_container_null_entries(IJavaProject project, IPath containerPath) { Util.verbose( "CPContainer GET - missbehaving container (returning null as classpath entries)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath + '\n' + //$NON-NLS-1$ " classpath entries: <null>" //$NON-NLS-1$ ); }
private void verbose_container_using_failure_container(IJavaProject project, IPath containerPath, ClasspathContainerInitializer initializer) { Util.verbose( "CPContainer INIT - FAILED (using failure container)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath + '\n' + //$NON-NLS-1$ " initializer: " + initializer); //$NON-NLS-1$ }
private void verbose_not_a_user_library(IJavaProject project, IPath containerPath) { Util.verbose( "UserLibrary INIT - FAILED (not a user library)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath); //$NON-NLS-1$ } }
private void verbose_container_using_failure_container(IJavaProject project, IPath containerPath, ClasspathContainerInitializer initializer) { Util.verbose( "CPContainer INIT - FAILED (using failure container)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath + '\n' + //$NON-NLS-1$ " initializer: " + initializer); //$NON-NLS-1$ }
private void verbose_not_a_user_library(IJavaProject project, IPath containerPath) { Util.verbose( "UserLibrary INIT - FAILED (not a user library)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath); //$NON-NLS-1$ } }
void verbose_missbehaving_container_null_entries(IJavaProject project, IPath containerPath) { Util.verbose( "CPContainer GET - missbehaving container (returning null as classpath entries)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath + '\n' + //$NON-NLS-1$ " classpath entries: <null>" //$NON-NLS-1$ ); }
private void verbose_batching_containers_initialization(IJavaProject javaProjectToInit, IPath containerToInit) { Util.verbose( "CPContainer INIT - batching containers initialization\n" + //$NON-NLS-1$ " project to init: " + (javaProjectToInit == null ? "null" : javaProjectToInit.getElementName()) + '\n' + //$NON-NLS-1$ //$NON-NLS-2$ " container path to init: " + containerToInit); //$NON-NLS-1$ }
private void verbose_triggering_container_initialization(IJavaProject project, IPath containerPath, ClasspathContainerInitializer initializer) { Util.verbose( "CPContainer INIT - triggering initialization\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " container path: " + containerPath + '\n' + //$NON-NLS-1$ " initializer: " + initializer); //$NON-NLS-1$ }
private void verbose_no_user_library_found(IJavaProject project, String userLibraryName) { Util.verbose( "UserLibrary INIT - FAILED (no user library found)\n" + //$NON-NLS-1$ " project: " + project.getElementName() + '\n' + //$NON-NLS-1$ " userLibraryName: " + userLibraryName); //$NON-NLS-1$ }
private void verbose_batching_containers_initialization(IJavaProject javaProjectToInit, IPath containerToInit) { Util.verbose( "CPContainer INIT - batching containers initialization\n" + //$NON-NLS-1$ " project to init: " + (javaProjectToInit == null ? "null" : javaProjectToInit.getElementName()) + '\n' + //$NON-NLS-1$ //$NON-NLS-2$ " container path to init: " + containerToInit); //$NON-NLS-1$ }
@Override protected IApiFilterStore createApiFilterStore() throws CoreException { long time = System.currentTimeMillis(); IApiFilterStore store = new ApiFilterStore(getJavaProject()); if (ApiPlugin.DEBUG_PROJECT_COMPONENT) { System.out.println("Time to create api filter store for: [" + fProject.getElementName() + "] " + (System.currentTimeMillis() - time) + "ms"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } return store; }
public String getProjectScopeDescription(IJavaProject project, boolean includeJRE) { if (includeJRE) { return Messages.format(SearchMessages.ProjectScope, BasicElementLabels.getJavaElementName(project.getElementName())); } else { return Messages.format(SearchMessages.ProjectScopeNoJRE, BasicElementLabels.getJavaElementName(project.getElementName())); } }
private RefactoringStatus createWarning(Exception e) { RefactoringStatus result= new RefactoringStatus(); result.addWarning(Messages.format(FixMessages.PotentialProgrammingProblemsFix_calculatingUIDFailed_exception, new String[] {fProject.getElementName(), e.getLocalizedMessage()}), new RefactoringStatusContext() { public Object getCorrespondingElement() { return fProject; } }); return result; }
public IPath getOutputAbsolutePath(IJavaProject project) { final String projectName= project.getElementName(); final String outdir= getOutputDir(projectName, false); return new Path(project.getProject().getLocation().toOSString() + "/" + outdir); }
@Override public void run(ITextSelection selection) { ICompilationUnit compilationUnit= SelectionConverter.getInputAsCompilationUnit(fEditor); IJavaProject javaProject= compilationUnit.getJavaProject(); if (!JavaModelUtil.is17OrHigher(javaProject)) { String message= Messages.format(RefactoringMessages.SurroundWithTryMultiCatchAction_not17, BasicElementLabels.getJavaElementName(javaProject.getElementName())); MessageDialog.openInformation(JavaPlugin.getActiveWorkbenchShell(), getDialogTitle(), message); return; } super.run(selection); }