/** * Prints a stack trace out for the exception, and * any nested exception that it may have embedded in * its Status object. */ @Override public void printStackTrace() { printStackTrace(System.err); }
/** * Prints a stack trace out for the exception, and * any nested exception that it may have embedded in * its Status object. */ public void printStackTrace() { printStackTrace(System.err); }
public void printStackTrace() { if (this.coreException != null) { System.err.println(this); System.err.println("Stack trace of embedded core exception:"); //$NON-NLS-1$ this.coreException.printStackTrace(); } else { super.printStackTrace(); } } }
@Override public void printStackTrace() { if (this.coreException != null) { System.err.println(this); System.err.println("Stack trace of embedded core exception:"); //$NON-NLS-1$ this.coreException.printStackTrace(); } else { super.printStackTrace(); } } }
public void printStackTrace() { if (this.coreException != null) { System.err.println(this); System.err.println("Stack trace of embedded core exception:"); //$NON-NLS-1$ this.coreException.printStackTrace(); } else { super.printStackTrace(); } } }
private void verbose_failure(CoreException e) { Util.verbose( "CPContainer SET - FAILED DUE TO EXCEPTION\n" + //$NON-NLS-1$ " container path: " + this.containerPath, //$NON-NLS-1$ System.err); e.printStackTrace(); }
private static void notifyExtensions(IConfigurationElement[] postImportElement, IProject project) { for (int i = 0; i < postImportElement.length; i++) { try { J2EEModulePostImportHandler postCreate = (J2EEModulePostImportHandler) postImportElement[i].createExecutableExtension("className"); //$NON-NLS-1$ postCreate.moduleImported(project); } catch (CoreException e) { e.printStackTrace(); } } }
IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for(IProject project: projects){ try { project.delete(true, true, monitor); } catch (CoreException e) { e.printStackTrace(); } }
private TextChange getTextChange() { try { return createTextChange(); } catch (CoreException e) { e.printStackTrace(); } return null; }
private void verbose_failure(CoreException e) { Util.verbose( "CPContainer SET - FAILED DUE TO EXCEPTION\n" + //$NON-NLS-1$ " container path: " + this.containerPath, //$NON-NLS-1$ System.err); e.printStackTrace(); }
protected Map internalGetProfiles() { if (mProfiles == null) { try { load(); } catch (CoreException e) { e.printStackTrace(); return new HashMap(); } } return mProfiles; }
public boolean readElement(IConfigurationElement element) { if (TAG_BINDINGS_HELPER.equals(element.getName())) { try { addHelper((IJNDIBindingsHelper) element.createExecutableExtension(ATT_CLASS)); } catch (CoreException e) { e.printStackTrace(); return false; } return true; } return false; }
public RutaChecker(IScriptProject project) { buildParticipants = new ArrayList<IBuildParticipant>(); try { buildParticipants.add(new RutaProjectChecker()); buildParticipants.add(new RutaLanguageChecker()); buildParticipants.add(new RutaEngineAndCallChecker(project)); } catch (CoreException e) { e.printStackTrace(); } }
public static void setAutoBuild(boolean b) { System.out.println("Setting auto-build to " + b); IWorkspace workspace = ResourcesPlugin.getWorkspace(); try { IWorkspaceDescription desc = workspace.getDescription(); desc.setAutoBuilding(b); workspace.setDescription(desc); } catch (CoreException e) { e.printStackTrace(); } } }
public static void setSourceAttachmentProperty(IPath path, String property) { if (property == null) { JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, PackageFragmentRoot.NO_SOURCE_ATTACHMENT); } else { JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, property); } try { ResourcesPlugin.getWorkspace().getRoot().setPersistentProperty(getSourceAttachmentPropertyName(path), property); } catch (CoreException e) { e.printStackTrace(); } }
public static void createGitIgnore(IJavaProject project, IProgressMonitor monitor) { try { createProjectFile(project, monitor, generateGitIGnore(), null, ".gitignore"); } catch (CoreException e) { e.printStackTrace(); } }
public static void setSourceAttachmentProperty(IPath path, String property) { if (property == null) { JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, PackageFragmentRoot.NO_SOURCE_ATTACHMENT); } else { JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, property); } try { ResourcesPlugin.getWorkspace().getRoot().setPersistentProperty(getSourceAttachmentPropertyName(path), property); } catch (CoreException e) { e.printStackTrace(); } }
public static void setSourceAttachmentProperty(IPath path, String property) { if (property == null) { JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, PackageFragmentRoot.NO_SOURCE_ATTACHMENT); } else { JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, property); } try { ResourcesPlugin.getWorkspace().getRoot().setPersistentProperty(getSourceAttachmentPropertyName(path), property); } catch (CoreException e) { e.printStackTrace(); } }
public static void destroyProject(String projectName) { IWorkspaceRoot root = getWorkspace(); IProject project = root.getProject(projectName); try { project.delete(true, null); } catch (CoreException e) { e.printStackTrace(); } }
public static void createOpenProject(String projectName) { IWorkspaceRoot root = getWorkspace(); IProject project = root.getProject(projectName); try { project.create(null); project.open(null); } catch (CoreException e) { e.printStackTrace(); } }