gpt4 book ai didi

net.sf.taverna.zaria.ZBasePane.setEditable()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 12:01:31 27 4
gpt4 key购买 nike

本文整理了Java中net.sf.taverna.zaria.ZBasePane.setEditable()方法的一些代码示例,展示了ZBasePane.setEditable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZBasePane.setEditable()方法的具体详情如下:
包路径:net.sf.taverna.zaria.ZBasePane
类名称:ZBasePane
方法名:setEditable

ZBasePane.setEditable介绍

[英]Call setEditable on the single child
[中]

代码示例

代码示例来源:origin: net.sf.taverna.t2.ui-impl/zaria

public void actionPerformed(ActionEvent e) {
    boolean edit = ZBasePane.this.editable;
    ZBasePane.this.setEditable(!edit);
  }
};

代码示例来源:origin: net.sf.taverna.t2.ui-impl/workbench-impl

public void actionPerformed(ActionEvent e) {
    int ret = JOptionPane.showConfirmDialog(basePane,
        "Are you sure you wish to delete the current perspective",
        "Delete perspective?", JOptionPane.YES_NO_OPTION);
    if (ret == JOptionPane.YES_OPTION) {
      PerspectiveSPI p = (PerspectiveSPI) ModelMap.getInstance()
          .getModel(ModelMapConstants.CURRENT_PERSPECTIVE);
      if (p != null) {
        modelMap.setModel(ModelMapConstants.CURRENT_PERSPECTIVE,
            null);
        basePane.setEditable(false); // cancel edit mode
        // so perspective can be changed after deletion
        try {
          CustomPerspectiveFactory.getInstance().saveAll(
              customPerspectives);
        } catch (FileNotFoundException e1) {
          logger.error("No file to save custom perspectives", e1);
        } catch (IOException e1) {
          logger
              .error(
                  "Error writing custom perspectives to file",
                  e1);
        }
        selectFirstPerspective();
      }
    }
  }
}

代码示例来源:origin: uk.org.mygrid.taverna/taverna-workbench

modelMap.setModel(ModelMap.CURRENT_PERSPECTIVE,
  null);
basePane.setEditable(false); // cancel edit mode

代码示例来源:origin: uk.org.mygrid.taverna/zaria

pane.setEditable(true);
myFrame.getContentPane().add(pane, BorderLayout.CENTER);
myFrame.setVisible(true);

代码示例来源:origin: uk.org.mygrid.taverna/taverna-workbench

basePane.setEditable(false);

代码示例来源:origin: net.sf.taverna.t2.ui-impl/zaria

setEditable(this.editable);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com