package android.security.extractor.ui;

import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class ProjectSelectPageListener implements Listener {

	private AndroidSecurityExtractorWizardPage page;
	
	public ProjectSelectPageListener(AndroidSecurityExtractorWizardPage page) {
		this.page = page;
	}

	public void handleEvent(Event event) {
		// TODO Auto-generated method stub
		if (this.page.getCurrentProjectIndex() == event.index-1 ) {
			this.page.loadJavaProject();
		}
		
		this.page.dialogChanged();
	}
	
}
