/** * Constructor for JARDependencyPropertiesControl */ public JARDependencyPropertiesPage(final IProject project, final J2EEDependenciesPage page) { super(); J2EEComponentClasspathUpdater.getInstance().pauseUpdates(); this.project = project; this.propPage = page; this.display = propPage.getShell().getDisplay(); }
pauseUpdates(); Iterator iterator = projects.iterator(); while(iterator.hasNext()){
public static void install(IPath containerPath, IJavaProject javaProject) { try{ J2EEComponentClasspathUpdater.getInstance().pauseUpdates(); Integer hashCode = new Integer(javaProject.getProject().hashCode()); Object key = keys.get(hashCode); if(key == null){ keys.put(hashCode, hashCode); key = hashCode; } final IJavaProject[] projects = new IJavaProject[]{javaProject}; final J2EEComponentClasspathContainer container = new J2EEComponentClasspathContainer(containerPath, javaProject); container.update(); final IClasspathContainer[] conts = new IClasspathContainer[]{container}; try { JavaCore.setClasspathContainer(containerPath, projects, conts, null); previousSelves.put(key, container); } catch (JavaModelException e) { Logger.getLogger().log(e); } } finally { J2EEComponentClasspathUpdater.getInstance().resumeUpdates(); } }
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { try { J2EEComponentClasspathUpdater.getInstance().pauseUpdates(); updateEARDD(monitor); super.execute(monitor, info); return OK_STATUS; } finally { J2EEComponentClasspathUpdater.getInstance().resumeUpdates(); } }
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (monitor != null) { monitor.beginTask("", 3); } try { J2EEComponentClasspathUpdater.getInstance().pauseUpdates(); IStatus status = validateEditEAR(); if( status.isOK() ){ status = super.execute(submon(monitor, 1), info); if (!status.isOK()) return Status.CANCEL_STATUS; updateEARDD(submon(monitor, 1)); updateModuleRuntimes(submon(monitor, 1)); } return status; } finally { if (monitor != null) { monitor.done(); } J2EEComponentClasspathUpdater.getInstance().resumeUpdates(); } }
public IStatus execute(IProgressMonitor monitor, IAdaptable anInfo) throws ExecutionException { try { J2EEComponentClasspathUpdater.getInstance().pauseUpdates(); this.info = anInfo; moduleFile = (Archive) model.getProperty(IJ2EEComponentImportDataModelProperties.FILE); archiveWrapper = (ArchiveWrapper)model.getProperty(IJ2EEComponentImportDataModelProperties.ARCHIVE_WRAPPER); monitor.beginTask(ProjectSupportResourceHandler.getString(ProjectSupportResourceHandler.Importing_archive, new Object [] { archiveWrapper.getPath() }), computeTotalWork()); doExecute(monitor); return OK_STATUS; } finally { try { if (virtualComponent != null) { J2EEComponentClasspathUpdater.getInstance().queueUpdate(virtualComponent.getProject()); } } finally { J2EEComponentClasspathUpdater.getInstance().resumeUpdates(); model.dispose(); monitor.done(); } } }
public void resourceChanged(IResourceChangeEvent event) { boolean scheduleJob = false; try { pauseUpdates(); switch (event.getType()){ case IResourceChangeEvent.PRE_CLOSE: