weka.gui.CommandToCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of command-to-code-weka-package Show documentation
Show all versions of command-to-code-weka-package Show documentation
Adds a menu item to the GUIChooser's main menu for converting command-lines into code snippets.
The newest version!
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/**
* CommandToCode.java
* Copyright (C) 2016 University of Waikato, Hamilton, NZ
*/
package weka.gui;
import weka.gui.GUIChooser.GUIChooserMenuPlugin;
import javax.swing.JMenuBar;
/**
* Adds menu item to GUIChooser for converting command lines into code.
*
* @author FracPete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public class CommandToCode
extends CommandToCodePanel
implements GUIChooserMenuPlugin {
private static final long serialVersionUID = -2702722973297948417L;
/**
* Get the name to display in title bar of the enclosing JFrame for the
* plugin
*
* @return the name to display in the title bar
*/
@Override
public String getApplicationName() {
return "Command to code";
}
/**
* Get the menu that the plugin is to be listed in
*
* @return the menu that the plugin is to be listed in
*/
@Override
public Menu getMenuToDisplayIn() {
return Menu.TOOLS;
}
/**
* Get the text entry to appear in the menu
*
* @return the text entry to appear in the menu
*/
@Override
public String getMenuEntryText() {
return "Command to code";
}
/**
* Return the menu bar for this plugin
*
* @return the menu bar for this plugin or null if it does not use a menu
* bar
*/
@Override
public JMenuBar getMenuBar() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy