1 package com.bull.eclipse.jonas; 2 3 7 8 import org.eclipse.core.resources.IProject; 9 import org.eclipse.core.resources.IResourceChangeEvent; 10 import org.eclipse.core.resources.IResourceChangeListener; 11 import org.eclipse.swt.widgets.Display; 12 15 public class JonasProjectChangeListener implements IResourceChangeListener, JonasPluginResources { 16 17 20 public void resourceChanged(IResourceChangeEvent event) { 21 if( event.getResource() instanceof IProject) { 22 final JonasProject project = JonasProject.create((IProject)event.getResource()); 23 if(project != null) { 24 25 Display.getDefault().syncExec( 26 new Runnable () { 27 public void run() { 28 49 } 50 } 51 ); 52 53 54 } 55 } 56 } 57 58 } 59 | Popular Tags |