congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FileScriptingPanel.checkModified
Code IndexAdd Tabnine to your IDE (free)

How to use
checkModified
method
in
weka.gui.scripting.FileScriptingPanel

Best Java code snippets using weka.gui.scripting.FileScriptingPanel.checkModified (Showing top 6 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-stable

 /**
  * Fired when action got executed.
  * 
  * @param e        the event
  */
 public void actionPerformed(ActionEvent e) {
  if (!checkModified())
 return;
  
  if (m_Script.getFilename() == null)
 return;
  
  try {
 m_Script.start(m_Args);
  }
  catch (Exception ex) {
 ex.printStackTrace();
 JOptionPane.showMessageDialog(
   FileScriptingPanel.this, 
   "Error running script:\n" + ex, 
   "Error", 
   JOptionPane.ERROR_MESSAGE);
  }
 }
}
origin: Waikato/weka-trunk

 /**
  * Fired when action got executed.
  * 
  * @param e        the event
  */
 public void actionPerformed(ActionEvent e) {
  if (!checkModified())
 return;
  
  if (m_Script.getFilename() == null)
 return;
  
  try {
 m_Script.start(m_Args);
  }
  catch (Exception ex) {
 ex.printStackTrace();
 JOptionPane.showMessageDialog(
   FileScriptingPanel.this, 
   "Error running script:\n" + ex, 
   "Error", 
   JOptionPane.ERROR_MESSAGE);
  }
 }
}
origin: nz.ac.waikato.cms.weka/weka-stable

 /**
  * Fired when action got executed.
  * 
  * @param e        the event
  */
 public void actionPerformed(ActionEvent e) {
  boolean	ok;
  int	retVal;
  
  if (!checkModified())
 return;
  
  retVal = m_FileChooser.showOpenDialog(FileScriptingPanel.this);
  if (retVal != JFileChooser.APPROVE_OPTION)
   return;
  
  ok = m_Script.open(m_FileChooser.getSelectedFile());
  m_TextCode.setCaretPosition(0);
  if (!ok)
 JOptionPane.showMessageDialog(
   FileScriptingPanel.this, 
   "Couldn't open file '" + m_FileChooser.getSelectedFile() + "'!");
  
  notifyTitleUpdatedListeners(new TitleUpdatedEvent(FileScriptingPanel.this));
 }
}
origin: Waikato/weka-trunk

 /**
  * Fired when action got executed.
  * 
  * @param e        the event
  */
 public void actionPerformed(ActionEvent e) {
  boolean	ok;
  int	retVal;
  
  if (!checkModified())
 return;
  
  retVal = m_FileChooser.showOpenDialog(FileScriptingPanel.this);
  if (retVal != JFileChooser.APPROVE_OPTION)
   return;
  
  ok = m_Script.open(m_FileChooser.getSelectedFile());
  m_TextCode.setCaretPosition(0);
  if (!ok)
 JOptionPane.showMessageDialog(
   FileScriptingPanel.this, 
   "Couldn't open file '" + m_FileChooser.getSelectedFile() + "'!");
  
  notifyTitleUpdatedListeners(new TitleUpdatedEvent(FileScriptingPanel.this));
 }
}
origin: Waikato/weka-trunk

 WindowEvent    event;
 if (!checkModified())
return;
origin: nz.ac.waikato.cms.weka/weka-stable

 WindowEvent    event;
 if (!checkModified())
return;
weka.gui.scriptingFileScriptingPanelcheckModified

Javadoc

Checks whether the script is modified and asks the user to save it or not. If everything is fine and one can ignore the modified state, true is returned.

Popular methods of FileScriptingPanel

  • add
  • createActionTable
    The following two methods allow us to find an action provided by the editor kit by its name.
  • getAboutPanel
    Returns a panel to be displayed with the AboutAction.
  • getName
  • getPlainTitle
    Returns the title (without the filename).
  • newCodePane
    Creates a new JTextPane for the code.
  • newScript
    Returns an initialized script object.
  • notifyTitleUpdatedListeners
  • open
    Opens the specified file.
  • setLayout
  • showInfo
    Updates the info shown in the bottom panel.
  • updateAction
    Updates the action and returns it.
  • showInfo,
  • updateAction

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • String (java.lang)
  • Permission (java.security)
    Legacy security code; do not use.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now