@SuppressWarnings("rawtypes")
 @Override
 public void actionPerformed(ActionEvent arg0) {
   ReFrame actionHandler = ReFrame.getActiveFrame();
   if (actionHandler instanceof AbstractFileDisplay) {
     displayProto(((AbstractFileDisplay) actionHandler).getFileView().getLayout());
   } else if (actionHandler instanceof IDisplayFrame
       && (((IDisplayFrame) actionHandler).getActiveDisplay() instanceof AbstractFileDisplay)) {
     displayProto(((IDisplayFrame) actionHandler).getActiveDisplay().getFileView().getLayout());
   }
 }
  /**
   * @see net.sf.RecordEditor.utils.screenManager.AbstractActiveScreenAction#checkActionEnabled()
   */
  @SuppressWarnings("rawtypes")
  @Override
  public void checkActionEnabled() {
    ReFrame actionHandler = ReFrame.getActiveFrame();

    //		System.out.println("Show Proto Available: " + (actionHandler != null)
    //				+ " " + (actionHandler instanceof AbstractFileDisplay)
    //				+ " " + (actionHandler instanceof DisplayFrame
    //						  && (((DisplayFrame) actionHandler).getActiveDisplay() instanceof
    // AbstractFileDisplay)));
    super.setEnabled(
        actionHandler != null
            && (actionHandler instanceof AbstractFileDisplay
                || (actionHandler instanceof IDisplayFrame
                    && (((IDisplayFrame) actionHandler).getActiveDisplay()
                        instanceof AbstractFileDisplay))));
  }