public void setSelectedEARComponent(IVirtualComponent component) { selectedEARComponent = component; fireNotification(new ClasspathModelEvent(ClasspathModelEvent.EAR_PROJECT_CHANGED)); }
public void resetClassPathSelection(ArchiveManifest mf) { initializeSelection(mf); fireNotification(new ClasspathModelEvent(ClasspathModelEvent.CLASS_PATH_RESET)); }
/** * Gets the stateValidator. * * @return Returns a ResourceStateValidator */ public ResourceStateValidator getStateValidator() { if (stateValidator == null) stateValidator = createStateValidator(); return stateValidator; }
/** * Sets the manfest on the archive, updates the classpath selection, and notifies */ public void setManifest(ArchiveManifest newManifest) { try { J2EEProjectUtilities.writeManifest(getProject(), newManifest); } catch (IOException e) { handleOpenFailureException(e); } getClassPathSelection(); // Ensure the selection is initialized. fireNotification(new ClasspathModelEvent(ClasspathModelEvent.MANIFEST_CHANGED)); }
/** * Sets the isSelected for the classpath element and sends out a notification of type * {@link ClasspathModelEvent#CLASS_PATH_CHANGED} */ public void setSelection(ClasspathElement element, boolean selected) { element.setSelected(selected); if (!isWLPModel()) { updateManifestClasspath(); } else { // at least fire the change event fireNotification(new ClasspathModelEvent(ClasspathModelEvent.CLASS_PATH_CHANGED)); } }
public void setProject(IProject project) { this.project = project; initializeComponent(); getAvailableEARComponents(); }
public boolean performCancel() { model.dispose(); return true; }
public boolean isWLPEntry() { return model.isWLPModel(); }
public ClassPathSelection getClassPathSelectionForWLPs() { if (classPathWLPSelection == null) initializeSelectionForWLPs(); return classPathWLPSelection; }
/** * Execute a command within the editing domain. */ public void execute(String label, Command command) { executeViaUndoManager(label, command); }
/** * @see com.ibm.etools.emf.workbench.ResourceStateInputProvider#getNonResourceFiles() */ public List getNonResourceFiles() { if (nonResourceFiles == null) initNonResourceFiles(); return nonResourceFiles; }
public IVirtualComponent[] getAvailableEARComponents() { if (availableEARComponents == null) refreshAvailableEARs(); return availableEARComponents; }
public ClassPathSelection getClassPathSelection() { if (classPathSelection == null) initializeSelection(null); return classPathSelection; }
public static String getString(String key, Object[] args, int x) { return getString(key); } }
/** * @see org.eclipse.emf.ecore.resource.Resource.Factory#createResource(URI) */ public Resource createResource(URI uri) { J2EEXMIResource resource = new J2EEXMIResource(uri); return resource; } }
public UpdateProjectClasspath(String sourceFolder, String componentName, IProject jProject){ addSrcFolderToProject(sourceFolder, componentName, jProject); }
public void fireSavedEvent() { fireNotification(new ClasspathModelEvent(ClasspathModelEvent.MODEL_SAVED)); }
/** * Updates the manifest Main-Class:, and sends out a notification of type * {@link ClasspathModelEvent#MAIN_CLASS_CHANGED} */ public void updateMainClass(String mainClass) { manifest.setMainClass(mainClass); fireNotification(new ClasspathModelEvent(ClasspathModelEvent.MAIN_CLASS_CHANGED)); }
/** * Updates the manifest Main-Class:, and sends out a notification of type * {@link ClasspathModelEvent#MAIN_CLASS_CHANGED} */ public void updateImplVersion(String implVersion) { manifest.setImplemenationVersion(implVersion); fireNotification(new ClasspathModelEvent(ClasspathModelEvent.IMPL_VERSION_CHANGED)); }