コード例 #1
0
 private void pop(DetailView.PreviewEditorState pushed) {
   if (pushed.getFile() != null) {
     myDetailView.navigateInPreviewEditor(
         new DetailView.PreviewEditorState(
             pushed.getFile(), pushed.getNavigate(), pushed.getAttributes()));
   } else {
     myDetailView.clearEditor();
   }
 }
コード例 #2
0
  public void doUpdateDetailView(DetailView panel, boolean editorOnly) {
    Project project = ((XBreakpointBase) myBreakpoint).getProject();

    XSourcePosition sourcePosition = myBreakpoint.getSourcePosition();
    if (sourcePosition != null) {
      if (!showInEditor(panel, sourcePosition.getFile(), sourcePosition.getLine())) {
        return;
      }
    } else {
      panel.clearEditor();
    }

    if (!editorOnly) {

      XLightBreakpointPropertiesPanel<XBreakpoint<?>> propertiesPanel =
          new XLightBreakpointPropertiesPanel<XBreakpoint<?>>(
              project, getManager(), myBreakpoint, true);
      propertiesPanel.loadProperties();
      panel.setDetailPanel(propertiesPanel.getMainPanel());
    }
  }
コード例 #3
0
 public void setDetailView(DetailView detailView) {
   myDetailView = detailView;
   myDetailController.setDetailView(new MyDetailView(myDetailView.getEditorState()));
 }