@Override public void onFinished(BuildStatus buildStatus){
  if (buildStatus == BuildStatus.SUCCESSFUL) {
    projectExplorer.reloadChildren();
    namesByTypes.clear();
    widgetByTypes.clear();
    view.clear();
    updateGenerateButton();
  }
}

@ Override public void onFinished ( BuildStatus buildStatus ) { if ( buildStatus == BuildStatus . SUCCESSFUL ) { projectExplorer . reloadChildren ( ) ; namesByTypes . clear ( ) ; widgetByTypes . clear ( ) ; view . clear ( ) ; updateGenerateButton ( ) ; } }
callback used when build has been finished
