public void updateView(){
  if (fInputElement != null && fParentComposite != null) {
    IndicatorViewState oldState=fStateMap.get(fInputElement);
    boolean reload=fFilesToReoad.contains(fInputElement);
    if (reload || oldState == null) {
      JsonObject jsonObject=DroidsafePluginUtilities.parseIndicatorFile(fInputElement);
      if (jsonObject == null)       return;
      fFilesToReoad.remove(fInputElement);
      fState=new IndicatorViewState(fInputElement,jsonObject,getSecuritySpec(),oldState);
      fStateMap.put(fInputElement,fState);
    }
 else {
      fState=oldState;
    }
    setPartName(fState.indicatorType);
    showPage(PAGE_VIEWER);
    fTreeViewer.setInput(fState.jsonObject);
    if (fTreeViewer.getSorter() == null)     sortByField(getSortByField());
  }
 else {
    setPartName(DEFAULT_PART_NAME);
  }
}

public void updateView ( ) { if ( fInputElement != null && fParentComposite != null ) { IndicatorViewState oldState = fStateMap . get ( fInputElement ) ; boolean reload = fFilesToReoad . contains ( fInputElement ) ; if ( reload || oldState == null ) { JsonObject jsonObject = DroidsafePluginUtilities . parseIndicatorFile ( fInputElement ) ; if ( jsonObject == null ) return ; fFilesToReoad . remove ( fInputElement ) ; fState = new IndicatorViewState ( fInputElement , jsonObject , getSecuritySpec ( ) , oldState ) ; fStateMap . put ( fInputElement , fState ) ; } else { fState = oldState ; } setPartName ( fState . indicatorType ) ; showPage ( PAGE_VIEWER ) ; fTreeViewer . setInput ( fState . jsonObject ) ; if ( fTreeViewer . getSorter ( ) == null ) sortByField ( getSortByField ( ) ) ; } else { setPartName ( DEFAULT_PART_NAME ) ; } }
update the content of the outline view .
