public void setSelectedEARComponent(IVirtualComponent component) { selectedEARComponent = component; fireNotification(new ClasspathModelEvent(ClasspathModelEvent.EAR_PROJECT_CHANGED)); }
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)); }
public void resetClassPathSelection(ArchiveManifest mf) { initializeSelection(mf); fireNotification(new ClasspathModelEvent(ClasspathModelEvent.CLASS_PATH_RESET)); }
/** * Updates the manifest Class-Path:, and sends out a notification of type * {@link ClasspathModelEvent#CLASS_PATH_CHANGED} */ public void updateManifestClasspath() { if (classPathSelection != null && classPathSelection.isModified()) { manifest.setClassPath(classPathSelection.toString()); fireNotification(new ClasspathModelEvent(ClasspathModelEvent.CLASS_PATH_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)); } }
/** * 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)); }
public void selectEAR(int index) { ArchiveManifest mf = new ArchiveManifestImpl((ArchiveManifestImpl) getArchive().getManifest()); JavaEEArchiveUtilities.INSTANCE.closeArchive(earFile); selectedEARComponent = availableEARComponents[index]; initializeSelection(mf); fireNotification(new ClasspathModelEvent(ClasspathModelEvent.EAR_PROJECT_CHANGED)); }
/** * @see Listener#handleEvent(Event) */ public void handleEvent(Event event) { ClasspathModelEvent evt = new ClasspathModelEvent(ClasspathModelEvent.CLASS_PATH_CHANGED); model.fireNotification(evt); if (event.widget == upButton) upButtonSelected(); else if (event.widget == downButton) downButtonSelected(); else if (event.widget == selectAllButton) selectAllButtonSelected(); else if (event.widget == deselectAllButton) deselectAllButtonSelected(); else if (event.widget == useServerJARsBtn) handleServerJARsButtonSelected(); else if (event.widget == useClientJARsBtn) handleClientJARsButtonSelected(); else if (event.widget == useAnyJARsBtn) handleAnyJARsButtonSelected(); else if(event.widget == projectJarButton) handleSelectProjectJarButton(); else if(event.widget == externalJarButton) handleSelectExternalJarButton(); else if(event.widget == addVariableButton) handleSelectVariableButton(); }