public boolean selectDependencyIfNecessary(IProject referencedProject) { getClassPathSelection(); if (classPathSelection == null || classPathSelection.hasDirectOrIndirectDependencyTo(referencedProject)) return false; ClasspathElement element = classPathSelection.getClasspathElement(referencedProject); if (element != null) { setSelection(element, true); return true; } return false; }
public void removeDependency(IProject referencedProject) { getClassPathSelection(); if (classPathSelection == null) return; ClasspathElement element = classPathSelection.getClasspathElement(referencedProject); if (element != null && element.isValid()) setSelection(element, false); }
public boolean selectDependencyIfNecessary(String jarName) { getClassPathSelection(); if (classPathSelection == null || classPathSelection.hasDirectOrIndirectDependencyTo(jarName)) return false; ClasspathElement element = classPathSelection.getClasspathElement(jarName); if (element != null) { setSelection(element, true); return true; } return false; }
public void removeDependency(String jarName) { getClassPathSelection(); if (classPathSelection == null) return; ClasspathElement element = classPathSelection.getClasspathElement(jarName); if (element != null && element.isValid()) setSelection(element, false); }
protected void availableJARCheckStateChanged(CheckStateChangedEvent event) { if (!J2EEProjectUtilities.isStandaloneProject(model.getComponent().getProject()) && (isReadOnly() || !validatateEdit() || (isMyClientJAR(event) && !event.getChecked()))) { availableJARsViewer.setChecked(event.getElement(), !event.getChecked()); return; } ClasspathElement element = (ClasspathElement) event.getElement(); model.setSelection(element, event.getChecked()); }