Package weka.gui

Examples of weka.gui.ViewerDialog.showDialog()


   
    final int classIndex = m_AttVisualizePanel.getColoringIndex();
    copy   = new Instances(m_Instances);
    copy.setClassIndex(classIndex);
    dialog = new ViewerDialog(null);
    result = dialog.showDialog(copy);
    if (result == ViewerDialog.APPROVE_OPTION) {
      try {
        addUndoPoint();
      }
      catch (Exception e) {
View Full Code Here


  ViewerDialog dialog = new ViewerDialog(null);
  String filename = m_List.getSelectedValue().toString();
  int result;
  try {
    DataSource source = new DataSource(filename);
    result = dialog.showDialog(source.getDataSet());
    // nasty workaround for Windows regarding locked files:
    // if file Reader in Loader is not closed explicitly, we cannot
    // overwrite the file.
    source = null;
    System.gc();
View Full Code Here

   
    final int classIndex = m_AttVisualizePanel.getColoringIndex();
    copy   = new Instances(m_Instances);
    copy.setClassIndex(classIndex);
    dialog = new ViewerDialog(null);
    result = dialog.showDialog(copy);
    if (result == ViewerDialog.APPROVE_OPTION) {
      try {
        addUndoPoint();
      }
      catch (Exception e) {
View Full Code Here

         
          dialog = new ViewerDialog(null);
          dialog.setTitle(
              Messages.getInstance().getString("ArffTable_RelationalCellEditor_RelationalCellEditor_ViewerDialog_Text")
              + ((ArffSortedTableModel) getModel()).getInstances().attribute(m_ColumnIndex - 1).name());
          result = dialog.showDialog(m_CurrentInst);
          if (result == ViewerDialog.APPROVE_OPTION) {
            m_CurrentInst = dialog.getInstances();
            fireEditingStopped();
          }
          else {
View Full Code Here

         
          dialog = new ViewerDialog(null);
          dialog.setTitle(
              "Relational attribute Viewer - "
              + ((ArffSortedTableModel) getModel()).getInstances().attribute(m_ColumnIndex - 1).name());
          result = dialog.showDialog(m_CurrentInst);
          if (result == ViewerDialog.APPROVE_OPTION) {
            m_CurrentInst = dialog.getInstances();
            fireEditingStopped();
          }
          else {
View Full Code Here

  ViewerDialog dialog = new ViewerDialog(null);
  String filename = m_List.getSelectedValue().toString();
  int result;
  try {
    DataSource source = new DataSource(filename);
    result = dialog.showDialog(source.getDataSet());
    // nasty workaround for Windows regarding locked files:
    // if file Reader in Loader is not closed explicitly, we cannot
    // overwrite the file.
    source = null;
    System.gc();
View Full Code Here

   
    final int classIndex = m_AttVisualizePanel.getColoringIndex();
    copy   = new Instances(m_Instances);
    copy.setClassIndex(classIndex);
    dialog = new ViewerDialog(null);
    result = dialog.showDialog(copy);
    if (result == ViewerDialog.APPROVE_OPTION) {
      try {
        addUndoPoint();
      }
      catch (Exception e) {
View Full Code Here

   
    final int classIndex = m_AttVisualizePanel.getColoringIndex();
    copy   = new Instances(m_Instances);
    copy.setClassIndex(classIndex);
    dialog = new ViewerDialog(null);
    result = dialog.showDialog(copy);
    if (result == ViewerDialog.APPROVE_OPTION) {
      try {
        addUndoPoint();
      }
      catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.