コード例 #1
0
 /*
  * (non-Javadoc)
  *
  * @see com.iw.plugins.spindle.editors.IReconcileListener#reconciled(java.lang.Object)
  */
 public void reconciled(Object reconcileResults) {
   try {
     fReconciledObject = reconcileResults;
     setXMLOutlineInput();
     fTapestryOutlinePage.setInput(fReconciledObject);
     if (fCurrentPage == fTapestryOutlinePage || fCurrentPage == fMessagePage) {
       if (fReconciledObject == null) {
         fMessagePoster.postMessage("Outline is not available.");
         fPageTurner.post(fMessagePage);
       } else {
         fPageTurner.post(fTapestryOutlinePage);
       }
     }
   } catch (IllegalArgumentException e) {
     fMessagePoster.postMessage("internalError");
     fPageTurner.post(fMessagePage);
   } catch (RuntimeException e) {
     UIPlugin.log(e);
     throw e;
   } finally {
     fToggleAction.setEnabled(true);
   }
 }
コード例 #2
0
 /*
  * (non-Javadoc)
  *
  * @see com.iw.plugins.spindle.editors.IReconcileListener#reconcileStarted()
  */
 public void reconcileStarted() {
   fReconciledObject = null;
   fToggleAction.setEnabled(false);
 }