1 19 package org.netbeans.modules.j2ee.clientproject; 20 21 import java.beans.PropertyChangeListener ; 22 import java.beans.PropertyChangeEvent ; 23 import org.openide.util.RequestProcessor; 24 import org.netbeans.api.java.classpath.ClassPath; 25 import org.netbeans.api.project.Project; 26 import org.netbeans.spi.project.support.ant.PropertyEvaluator; 27 28 class MainClassUpdater implements PropertyChangeListener { 30 31 private static RequestProcessor performer = new RequestProcessor(); 32 33 private final Project project; 34 private final PropertyEvaluator eval; 35 private final UpdateHelper helper; 36 private final ClassPath sourcePath; 37 private final String mainClassPropName; 38 40 public MainClassUpdater (Project project, PropertyEvaluator eval, UpdateHelper helper, ClassPath sourcePath, String mainClassPropName) { 41 this.project = project; 42 this.eval = eval; 43 this.helper = helper; 44 this.sourcePath = sourcePath; 45 this.mainClassPropName = mainClassPropName; 46 this.eval.addPropertyChangeListener (this); 47 } 49 50 public void propertyChange(PropertyChangeEvent evt) { 51 if (mainClassPropName.equals(evt.getPropertyName())) { 52 } 54 } 55 56 108 public synchronized void unregister () { 109 } 114 115 142 } 143 | Popular Tags |