@Override public void onProjectClosed(ProjectActionEvent event){
  ProjectDescriptor project=event.getProject();
  final String projectTypeId=project.getType();
  boolean isJSProject=projectTypeId.endsWith("JS");
  if (isJSProject) {
    workspaceAgent.removePart(yeomanPartPresenter);
  }
}

@ Override public void onProjectClosed ( ProjectActionEvent event ) { ProjectDescriptor project = event . getProject ( ) ; final String projectTypeId = project . getType ( ) ; boolean isJSProject = projectTypeId . endsWith ( "JS" ) ; if ( isJSProject ) { workspaceAgent . removePart ( yeomanPartPresenter ) ; } }
remove yeoman panel when closing the project if this panel is displayed .
