public CPListElementAttribute copy() { CPListElementAttribute result= new CPListElementAttribute(fBuiltIn); result.fParent= fParent; result.fKey= fKey; result.fValue= fValue; result.fStatus= fStatus; return result; }
public CPListElementAttribute copy() { CPListElementAttribute result= new CPListElementAttribute(fBuiltIn); result.fParent= fParent; result.fKey= fKey; result.fValue= fValue; result.fStatus= fStatus; return result; }
public CPListElementAttribute copy() { CPListElementAttribute result= new CPListElementAttribute(fBuiltIn); result.fParent= fParent; result.fKey= fKey; result.fValue= fValue; result.fStatus= fStatus; return result; }
private void createAttributeElement(String key, Object value, boolean builtIn) { fChildren.add(new CPListElementAttribute(this, key, value, builtIn)); }
private void createAttributeElement(String key, Object value, boolean builtIn) { fChildren.add(new CPListElementAttribute(this, key, value, builtIn)); }
private void createAttributeElement(String key, Object value, boolean builtIn) { fChildren.add(new CPListElementAttribute(this, key, value, builtIn)); }
/** * Reset the output folder for the given entry to the default output folder * * @param entry the <code>CPListElement</code> to be edited * @param project the Java project * @return an attribute representing the modified output folder * @throws JavaModelException */ public static CPListElementAttribute resetOutputFolder(CPListElement entry, IJavaProject project) throws JavaModelException { entry.setAttribute(CPListElement.OUTPUT, null); CPListElementAttribute outputFolder= new CPListElementAttribute(entry, CPListElement.OUTPUT, entry.getAttribute(CPListElement.OUTPUT), true); return outputFolder; }
/** * Reset the output folder for the given entry to the default output folder * * @param entry the <code>CPListElement</code> to be edited * @param project the Java project * @return an attribute representing the modified output folder * @throws JavaModelException */ public static CPListElementAttribute resetOutputFolder(CPListElement entry, IJavaProject project) throws JavaModelException { entry.setAttribute(CPListElement.OUTPUT, null); CPListElementAttribute outputFolder= new CPListElementAttribute(entry, CPListElement.OUTPUT, entry.getAttribute(CPListElement.OUTPUT), true); return outputFolder; }
/** * Reset the output folder for the given entry to the default output folder * * @param entry the <code>CPListElement</code> to be edited * @param project the Java project * @return an attribute representing the modified output folder * @throws JavaModelException */ public static CPListElementAttribute resetOutputFolder(CPListElement entry, IJavaProject project) throws JavaModelException { entry.setAttribute(CPListElement.OUTPUT, null); CPListElementAttribute outputFolder= new CPListElementAttribute(entry, CPListElement.OUTPUT, entry.getAttribute(CPListElement.OUTPUT), true); return outputFolder; }
private List resetOutputFolders(IJavaProject project, IProgressMonitor monitor) throws JavaModelException { if (monitor == null) monitor= new NullProgressMonitor(); try { IPackageFragmentRoot[] roots= project.getPackageFragmentRoots(); monitor.beginTask(NewWizardMessages.ClasspathModifier_Monitor_ResetOutputFolder, roots.length + 10); List entries= new ArrayList(); for (int i= 0; i < roots.length; i++) { monitor.worked(1); if (roots[i].isArchive()) continue; IClasspathEntry entry= roots[i].getRawClasspathEntry(); CPListElement element= CPListElement.createFromExisting(entry, project); CPListElementAttribute outputFolder= new CPListElementAttribute(element, CPListElement.OUTPUT, element.getAttribute(CPListElement.OUTPUT), true); entries.add(outputFolder); } return reset(entries, project, new SubProgressMonitor(monitor, 10)); } finally { monitor.done(); } }
private List<Object> resetOutputFolders(IJavaProject project, IProgressMonitor monitor) throws JavaModelException { if (monitor == null) monitor= new NullProgressMonitor(); try { IPackageFragmentRoot[] roots= project.getPackageFragmentRoots(); monitor.beginTask(NewWizardMessages.ClasspathModifier_Monitor_ResetOutputFolder, roots.length + 10); List<CPListElementAttribute> entries= new ArrayList<>(); for (int i= 0; i < roots.length; i++) { monitor.worked(1); IPackageFragmentRoot root= roots[i]; if (root.isArchive() || root.isExternal()) continue; IClasspathEntry entry= root.getRawClasspathEntry(); CPListElement element= CPListElement.createFromExisting(entry, project); CPListElementAttribute outputFolder= new CPListElementAttribute(element, CPListElement.OUTPUT, element.getAttribute(CPListElement.OUTPUT), true); entries.add(outputFolder); } return reset(entries, project, new SubProgressMonitor(monitor, 10)); } finally { monitor.done(); } }
private List<Object> resetOutputFolders(IJavaProject project, IProgressMonitor monitor) throws JavaModelException { if (monitor == null) monitor= new NullProgressMonitor(); try { IPackageFragmentRoot[] roots= project.getPackageFragmentRoots(); monitor.beginTask(NewWizardMessages.ClasspathModifier_Monitor_ResetOutputFolder, roots.length + 10); List<CPListElementAttribute> entries= new ArrayList<>(); for (int i= 0; i < roots.length; i++) { monitor.worked(1); IPackageFragmentRoot root= roots[i]; if (root.isArchive() || root.isExternal()) continue; IClasspathEntry entry= root.getRawClasspathEntry(); CPListElement element= CPListElement.createFromExisting(entry, project); CPListElementAttribute outputFolder= new CPListElementAttribute(element, CPListElement.OUTPUT, element.getAttribute(CPListElement.OUTPUT), true); entries.add(outputFolder); } return reset(entries, project, new SubProgressMonitor(monitor, 10)); } finally { monitor.done(); } }
entry= ClasspathModifier.getClasspathEntryFor(fCurrJProject.getPath(), fCurrJProject, IClasspathEntry.CPE_SOURCE); CPListElement parent= CPListElement.createFromExisting(entry, fCurrJProject); CPListElementAttribute outputFolder= new CPListElementAttribute(parent, CPListElement.OUTPUT, parent.getAttribute(CPListElement.OUTPUT), true); Object[] extendedChildren= new Object[children.length + 1];
entry= ClasspathModifier.getClasspathEntryFor(fCurrJProject.getPath(), fCurrJProject, IClasspathEntry.CPE_SOURCE); CPListElement parent= CPListElement.createFromExisting(entry, fCurrJProject); CPListElementAttribute outputFolder= new CPListElementAttribute(parent, CPListElement.OUTPUT, parent.getAttribute(CPListElement.OUTPUT), true); Object[] extendedChildren= new Object[children.length + 1];
entry= ClasspathModifier.getClasspathEntryFor(fCurrJProject.getPath(), fCurrJProject, IClasspathEntry.CPE_SOURCE); CPListElement parent= CPListElement.createFromExisting(entry, fCurrJProject); CPListElementAttribute outputFolder= new CPListElementAttribute(parent, CPListElement.OUTPUT, parent.getAttribute(CPListElement.OUTPUT), true); Object[] extendedChildren= new Object[children.length + 1];
elem.createAttributeElement(attrib.getName(), attrib.getValue(), false); } else if (attrib.getName().equals(MODULE)) { attribElem = new CPListElementAttribute(elem, MODULE, null, true); attribElem.setValue(getModuleAttributeValue(attribElem, attrib, extraAttributes)); elem.fChildren.add(attribElem);
boolean modulesAdded= addModuleNodes(entry, entries[0]); if (modulesAdded) { fChildren.add(beforeModules, new CPListElementAttribute(this, MODULE, new ModuleEncapsulationDetail[0], true)); return;