/** * Update the container. The containerSuggestion should always be a new * BndContainer ... */ public void requestClasspathContainerUpdate(IPath containerPath, IJavaProject project, IClasspathContainer containerSuggestion) throws CoreException { JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { containerSuggestion }, null); }
@Override public void requestClasspathContainerUpdate(IPath containerPath, IJavaProject project, IClasspathContainer containerSuggestion) throws CoreException { // The only supported update is to modify the source attachment JavaCore.setClasspathContainer(containerPath, new IJavaProject[] {project}, new IClasspathContainer[] {containerSuggestion}, null); }
/** * Update the container. The containerSuggestion should always be a new * BndContainer ... */ public void requestClasspathContainerUpdate(IPath containerPath, IJavaProject project, IClasspathContainer containerSuggestion) throws CoreException { JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { containerSuggestion }, null); }
public void requestClasspathContainerUpdate(IPath containerPath, IJavaProject project, IClasspathContainer containerSuggestion) throws CoreException { JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { containerSuggestion }, null); }
private static void setClasspathContainer(IJavaProject eclipseProject, List<IClasspathEntry> classpathEntries, IProgressMonitor monitor) throws JavaModelException { IClasspathContainer classpathContainer = GradleClasspathContainer.newInstance(classpathEntries); JavaCore.setClasspathContainer(GradleClasspathContainer.CONTAINER_PATH, new IJavaProject[] { eclipseProject }, new IClasspathContainer[] { classpathContainer }, monitor); }
@Override public void initialize(IPath containerPath, IJavaProject javaProject) throws CoreException { try { JavaCore.setClasspathContainer(PDECore.JAVA_SEARCH_CONTAINER_PATH, new IJavaProject[] {javaProject}, new IClasspathContainer[] {new ExternalJavaSearchClasspathContainer()}, null); } catch (OperationCanceledException e) { throw e; } }
public void initialize(IPath containerPath, IJavaProject javaProject) throws CoreException { try { JavaCore.setClasspathContainer( PDECore.JAVA_SEARCH_CONTAINER_PATH, new IJavaProject[] {javaProject}, new IClasspathContainer[]{new ExternalJavaSearchClasspathContainer()}, null); } catch (OperationCanceledException e) { throw e; } }
public void initialize(IPath ipath, IJavaProject project) throws CoreException { JBPMClasspathContainer container = new JBPMClasspathContainer(project, ipath); JavaCore.setClasspathContainer(ipath, new IJavaProject[] { project }, new IClasspathContainer[] { container }, null); }
@Override public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (isValidJUnitContainerPath(containerPath)) { JUnitContainer container= getNewContainer(containerPath); JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { container }, null); } }
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (isValidJUnitContainerPath(containerPath)) { JUnitContainer container= getNewContainer(containerPath); JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { container }, null); } }
@Override public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (CONTAINER_ID.equals(containerPath)) { final IClasspathContainer container = new SARLClasspathContainer(containerPath); JavaCore.setClasspathContainer(containerPath, new IJavaProject[] {project}, new IClasspathContainer[] {container}, null); } }
private void resetContainer() { IJavaProject jProject = getProxyProject(); try { if (jProject != null) { JavaCore.setClasspathContainer( PDECore.JAVA_SEARCH_CONTAINER_PATH, new IJavaProject[] {jProject}, new IClasspathContainer[]{new ExternalJavaSearchClasspathContainer()}, null); } } catch (JavaModelException e) { } }
private void resetContainer() { IJavaProject jProject = getProxyProject(); try { if (jProject != null) { JavaCore.setClasspathContainer(PDECore.JAVA_SEARCH_CONTAINER_PATH, new IJavaProject[] {jProject}, new IClasspathContainer[] {new ExternalJavaSearchClasspathContainer()}, null); saveStates(); } } catch (JavaModelException e) { } }
public void initialize(IPath containerPath, IJavaProject javaProject) throws CoreException { IProject project = javaProject.getProject(); IPluginModelBase model = PluginRegistry.findModel(project); JavaCore.setClasspathContainer( PDECore.REQUIRED_PLUGINS_CONTAINER_PATH, new IJavaProject[] { javaProject }, new IClasspathContainer[] {new RequiredPluginsClasspathContainer(model)}, null); }
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (isValidTestNGContainerPath(containerPath)) { IClasspathEntry[] entries = BuildPathSupport.getTestNGLibraryEntries(); TestNGContainer testNGContainer = new TestNGContainer(containerPath, entries); JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { testNGContainer }, null); } }
@Override protected IStatus run(IProgressMonitor monitor) { try { JavaCore.setClasspathContainer( containerPath, new IJavaProject[] {javaProject}, new IClasspathContainer[] {containerSuggestion}, monitor); } catch (CoreException ex) { return SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR, ex); } return SARLEclipsePlugin.getDefault().createOkStatus(); } };
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (isJSFLibraryContainer(containerPath)) { String libId= containerPath.lastSegment(); JSFLibrary ref= JSFLibraryRegistryUtil.getInstance().getJSFLibraryRegistry().getJSFLibraryByID(libId); if (ref != null) { JSFLibraryClasspathContainer container= new JSFLibraryClasspathContainer(ref); JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { container }, null); } } }
@Override public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (isUserLibraryContainer(containerPath)) { String userLibName = containerPath.segment(1); UserLibrary userLibrary = JavaModelManager.getUserLibraryManager().getUserLibrary(userLibName); if (userLibrary != null) { UserLibraryClasspathContainer container = new UserLibraryClasspathContainer(userLibName); JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { container }, null); } else if (JavaModelManager.CP_RESOLVE_VERBOSE || JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE) { verbose_no_user_library_found(project, userLibName); } } else if (JavaModelManager.CP_RESOLVE_VERBOSE || JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE) { verbose_not_a_user_library(project, containerPath); } }
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (isUserLibraryContainer(containerPath)) { String userLibName = containerPath.segment(1); UserLibrary userLibrary = JavaModelManager.getUserLibraryManager().getUserLibrary(userLibName); if (userLibrary != null) { UserLibraryClasspathContainer container = new UserLibraryClasspathContainer(userLibName); JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { container }, null); } else if (JavaModelManager.CP_RESOLVE_VERBOSE || JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE) { verbose_no_user_library_found(project, userLibName); } } else if (JavaModelManager.CP_RESOLVE_VERBOSE || JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE) { verbose_not_a_user_library(project, containerPath); } }
public void initialize(IPath containerPath, IJavaProject project) throws CoreException { if (isUserLibraryContainer(containerPath)) { String userLibName = containerPath.segment(1); UserLibrary userLibrary = JavaModelManager.getUserLibraryManager().getUserLibrary(userLibName); if (userLibrary != null) { UserLibraryClasspathContainer container = new UserLibraryClasspathContainer(userLibName); JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { container }, null); } else if (JavaModelManager.CP_RESOLVE_VERBOSE || JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE) { verbose_no_user_library_found(project, userLibName); } } else if (JavaModelManager.CP_RESOLVE_VERBOSE || JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE) { verbose_not_a_user_library(project, containerPath); } }