/* (non-Javadoc)
  * Method declared on IElementChangedListener.
  */
 public void elementChanged(final ElementChangedEvent event) {
   try {
     processDelta(event.getDelta());
   } catch (JavaScriptModelException e) {
     JavaScriptPlugin.log(e.getStatus());
   }
 }
Ejemplo n.º 2
0
 /** Observe the changes of the JSDT "Include Path" to synchronize tern script paths. */
 @Override
 public void elementChanged(ElementChangedEvent event) {
   IJavaScriptElementDelta delta = event.getDelta();
   if (delta.getKind() == IJavaScriptElementDelta.CHANGED) {
     // retrieve the JSDT Project if delta is about "Includes Path"
     // changes.
     IJavaScriptProject jsProject = getJavaScriptProjectIfClassPathChanged(delta);
     if (jsProject != null) {
       Job configJob = new ConfigureJob(jsProject);
       configJob.setRule(jsProject.getProject());
       configJob.schedule();
     }
   }
 }