"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/rapidminer/gui/RapidMinerGUI.java" between
rapidminer-studio-9.4.1-src.tar.gz and rapidminer-studio-9.5.0-src.tar.gz

About: RapidMiner Studio is a code-free environment for designing advanced analytic processes with machine learning, data mining, text mining, predictive analytics and business analytics. Java source.

RapidMinerGUI.java  (rapidminer-studio-9.4.1-src):RapidMinerGUI.java  (rapidminer-studio-9.5.0-src)
skipping to change at line 56 skipping to change at line 56
import java.util.Properties; import java.util.Properties;
import java.util.logging.Level; import java.util.logging.Level;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JPopupMenu; import javax.swing.JPopupMenu;
import javax.swing.PopupFactory; import javax.swing.PopupFactory;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
import javax.swing.ToolTipManager; import javax.swing.ToolTipManager;
import javax.swing.UIManager; import javax.swing.UIManager;
import com.rapidminer.FileProcessLocation; import com.rapidminer.FileProcessLocation;
import com.rapidminer.NoOpUserError;
import com.rapidminer.Process; import com.rapidminer.Process;
import com.rapidminer.ProcessLocation; import com.rapidminer.ProcessLocation;
import com.rapidminer.RapidMiner; import com.rapidminer.RapidMiner;
import com.rapidminer.RepositoryProcessLocation; import com.rapidminer.RepositoryProcessLocation;
import com.rapidminer.core.io.data.source.DataSourceFactoryRegistry; import com.rapidminer.core.io.data.source.DataSourceFactoryRegistry;
import com.rapidminer.gui.actions.OpenAction; import com.rapidminer.gui.actions.OpenAction;
import com.rapidminer.gui.actions.search.ActionsGlobalSearch; import com.rapidminer.gui.actions.search.ActionsGlobalSearch;
import com.rapidminer.gui.actions.search.ActionsGlobalSearchGUIProvider; import com.rapidminer.gui.actions.search.ActionsGlobalSearchGUIProvider;
import com.rapidminer.gui.autosave.AutoSave; import com.rapidminer.gui.autosave.AutoSave;
import com.rapidminer.gui.dialog.EULADialog; import com.rapidminer.gui.dialog.EULADialog;
skipping to change at line 121 skipping to change at line 120
import com.rapidminer.tools.LaunchListener; import com.rapidminer.tools.LaunchListener;
import com.rapidminer.tools.LaunchListener.RemoteControlHandler; import com.rapidminer.tools.LaunchListener.RemoteControlHandler;
import com.rapidminer.tools.LogService; import com.rapidminer.tools.LogService;
import com.rapidminer.tools.ParameterService; import com.rapidminer.tools.ParameterService;
import com.rapidminer.tools.PlatformUtilities; import com.rapidminer.tools.PlatformUtilities;
import com.rapidminer.tools.RMUrlHandler; import com.rapidminer.tools.RMUrlHandler;
import com.rapidminer.tools.SystemInfoUtilities; import com.rapidminer.tools.SystemInfoUtilities;
import com.rapidminer.tools.SystemInfoUtilities.OperatingSystem; import com.rapidminer.tools.SystemInfoUtilities.OperatingSystem;
import com.rapidminer.tools.Tools; import com.rapidminer.tools.Tools;
import com.rapidminer.tools.plugin.Plugin; import com.rapidminer.tools.plugin.Plugin;
import com.rapidminer.tools.usagestats.CallToActionScheduler; import com.rapidminer.tools.usagestats.CtaEventAggregator;
import com.rapidminer.tools.usagestats.UsageStatistics; import com.rapidminer.tools.usagestats.UsageStatistics;
import com.rapidminer.tools.usagestats.UsageStatsScheduler; import com.rapidminer.tools.usagestats.UsageStatsScheduler;
import com.rapidminer.tools.usagestats.UsageStatsTransmissionDialog; import com.rapidminer.tools.usagestats.UsageStatsTransmissionDialog;
import com.vlsolutions.swing.docking.DockableContainerFactory; import com.vlsolutions.swing.docking.DockableContainerFactory;
import com.vlsolutions.swing.docking.ui.DockingUISettings; import com.vlsolutions.swing.docking.ui.DockingUISettings;
/** /**
* The main class if RapidMiner is started in GUI mode. This class keeps a refer ence to the * The main class if RapidMiner is started in GUI mode. This class keeps a refer ence to the
* {@link MainFrame} and some other GUI relevant information and methods. * {@link MainFrame} and some other GUI relevant information and methods.
* *
* @author Ingo Mierswa, Simon Fischer * @author Ingo Mierswa, Simon Fischer
*/ */
public class RapidMinerGUI extends RapidMiner { public class RapidMinerGUI extends RapidMiner {
public static final String PROPERTY_GEOMETRY_X = "rapidminer.gui.geometry .x"; public static final String PROPERTY_GEOMETRY_X = "rapidminer.gui.geometry .x";
public static final String PROPERTY_GEOMETRY_Y = "rapidminer.gui.geometry .y"; public static final String PROPERTY_GEOMETRY_Y = "rapidminer.gui.geometry .y";
public static final String PROPERTY_GEOMETRY_EXTENDED_STATE = "rapidminer .gui.geometry.extendedstate"; public static final String PROPERTY_GEOMETRY_EXTENDED_STATE = "rapidminer .gui.geometry.extendedstate";
public static final String PROPERTY_GEOMETRY_WIDTH = "rapidminer.gui.geom etry.width"; public static final String PROPERTY_GEOMETRY_WIDTH = "rapidminer.gui.geom etry.width";
public static final String PROPERTY_GEOMETRY_HEIGHT = "rapidminer.gui.geo metry.height"; public static final String PROPERTY_GEOMETRY_HEIGHT = "rapidminer.gui.geo metry.height";
public static final String PROPERTY_GEOMETRY_DIVIDER_MAIN = "rapidminer.g ui.geometry.divider.main"; public static final String PROPERTY_GEOMETRY_DIVIDER_MAIN = "rapidminer.g ui.geometry.divider.main";
public static final String PROPERTY_GEOMETRY_DIVIDER_EDITOR = "rapidminer .gui.geometry.divider.editor";; public static final String PROPERTY_GEOMETRY_DIVIDER_EDITOR = "rapidminer .gui.geometry.divider.editor";
public static final String PROPERTY_GEOMETRY_DIVIDER_LOGGING = "rapidmine r.gui.geometry.divider.logging"; public static final String PROPERTY_GEOMETRY_DIVIDER_LOGGING = "rapidmine r.gui.geometry.divider.logging";
public static final String PROPERTY_GEOMETRY_DIVIDER_GROUPSELECTION = "ra pidminer.gui.geometry.divider.groupselection"; public static final String PROPERTY_GEOMETRY_DIVIDER_GROUPSELECTION = "ra pidminer.gui.geometry.divider.groupselection";
public static final String PROPERTY_EXPERT_MODE = "rapidminer.gui.expertm ode"; public static final String PROPERTY_EXPERT_MODE = "rapidminer.gui.expertm ode";
public static final String PROPERTY_SHOW_PARAMETER_HELP = "rapidminer.gui .show_parameter_help"; public static final String PROPERTY_SHOW_PARAMETER_HELP = "rapidminer.gui .show_parameter_help";
// GUI Properties // GUI Properties
public static final String PROPERTY_RAPIDMINER_GUI_MAX_STATISTICS_ROWS = "rapidminer.gui.max_statistics_rows"; public static final String PROPERTY_RAPIDMINER_GUI_MAX_STATISTICS_ROWS = "rapidminer.gui.max_statistics_rows";
public static final String PROPERTY_RAPIDMINER_GUI_MAX_SORTABLE_ROWS = "r apidminer.gui.max_sortable_rows"; public static final String PROPERTY_RAPIDMINER_GUI_MAX_SORTABLE_ROWS = "r apidminer.gui.max_sortable_rows";
public static final String PROPERTY_RAPIDMINER_GUI_MAX_DISPLAYED_VALUES = "rapidminer.gui.max_displayed_values"; public static final String PROPERTY_RAPIDMINER_GUI_MAX_DISPLAYED_VALUES = "rapidminer.gui.max_displayed_values";
skipping to change at line 334 skipping to change at line 333
public void run() { public void run() {
// only need to do these if at least the MainFrame came u p successfully. // only need to do these if at least the MainFrame came u p successfully.
// Otherwise saving might even be detrimental! // Otherwise saving might even be detrimental!
if (RapidMinerGUI.getMainFrame() != null) { if (RapidMinerGUI.getMainFrame() != null) {
LogService.getRoot().log(Level.INFO, "com.rapidmi ner.gui.RapidMinerGUI.running_shutdown_sequence"); LogService.getRoot().log(Level.INFO, "com.rapidmi ner.gui.RapidMinerGUI.running_shutdown_sequence");
RapidMinerGUI.getMainFrame().getPerspectiveContro ller().shutdown(); RapidMinerGUI.getMainFrame().getPerspectiveContro ller().shutdown();
RapidMinerGUI.saveRecentFileList(); RapidMinerGUI.saveRecentFileList();
UsageStatistics.getInstance().save(); UsageStatistics.getInstance().save();
RepositoryManager.shutdown(); RepositoryManager.shutdown();
UsageStatsScheduler.transmitOnShutdown(); UsageStatsScheduler.transmitOnShutdown();
CallToActionScheduler.INSTANCE.shutdown();
} }
} }
} }
// private static UpdateManager updateManager = new CommunityUpdateManage r(); // private static UpdateManager updateManager = new CommunityUpdateManage r();
public synchronized void run(final String openLocation) throws Exception { public synchronized void run(final String openLocation) throws Exception {
startupStarted = true; startupStarted = true;
// check if resources were copied // check if resources were copied
skipping to change at line 522 skipping to change at line 520
// register data source factories // register data source factories
DataSourceFactoryRegistry.INSTANCE.register(new LocalFileDataSour ceFactory()); DataSourceFactoryRegistry.INSTANCE.register(new LocalFileDataSour ceFactory());
// Register file data source factories: binary data source factor y is registered first, // Register file data source factories: binary data source factor y is registered first,
// since it is the first choice for unknown formats. // since it is the first choice for unknown formats.
DataSourceFactoryRegistry.INSTANCE.register(new BinaryDataSourceF actory()); DataSourceFactoryRegistry.INSTANCE.register(new BinaryDataSourceF actory());
DataSourceFactoryRegistry.INSTANCE.register(new ExcelDataSourceFa ctory()); DataSourceFactoryRegistry.INSTANCE.register(new ExcelDataSourceFa ctory());
DataSourceFactoryRegistry.INSTANCE.register(new CSVDataSourceFact ory()); DataSourceFactoryRegistry.INSTANCE.register(new CSVDataSourceFact ory());
// init CTA event storage and rule checking system only after all // If the CTA extension was not loaded for whatever reason, kill
other systems have been the CTA event aggregator to avoid useless event map bloating
// started to avoid overlaying CTA mesages during startup if (!CtaEventAggregator.INSTANCE.isCtaSystemLive()) {
CallToActionScheduler.INSTANCE.init(); CtaEventAggregator.INSTANCE.killAggregator();
}
// After all is done, clean up memory for the best possible start ing conditions // After all is done, clean up memory for the best possible start ing conditions
System.gc(); System.gc();
} }
private void setupToolTipManager() { private void setupToolTipManager() {
// setup tool tip text manager // setup tool tip text manager
ToolTipManager manager = ToolTipManager.sharedInstance(); ToolTipManager manager = ToolTipManager.sharedInstance();
manager.setDismissDelay(25000); // original: 4000 manager.setDismissDelay(25000); // original: 4000
manager.setInitialDelay(1125); // original: 750 manager.setInitialDelay(1125); // original: 750
manager.setReshowDelay(50); // original: 500 manager.setReshowDelay(50); // original: 500
// heavyweight popups are necessary because of native Chromium wi ndow by our browser extension (JxBrowser) // heavyweight popups are necessary because of native Chromium wi ndow by our browser extension (JxBrowser)
manager.setLightWeightPopupEnabled(false); manager.setLightWeightPopupEnabled(false);
} }
/** /**
* This default implementation only setup the tool tip durations. Subclas ses might override this * This default implementation only setup the tool tip durations. Subclas ses might override this
* method. * method.
*/ */
protected void setupGUI() throws NoOpUserError { protected void setupGUI() throws Exception {
System.setProperty(BookmarkIO.PROPERTY_BOOKMARKS_DIR, FileSystemS ervice.getUserRapidMinerDir().getAbsolutePath()); System.setProperty(BookmarkIO.PROPERTY_BOOKMARKS_DIR, FileSystemS ervice.getUserRapidMinerDir().getAbsolutePath());
System.setProperty(BookmarkIO.PROPERTY_BOOKMARKS_FILE, ".bookmark s"); System.setProperty(BookmarkIO.PROPERTY_BOOKMARKS_FILE, ".bookmark s");
try { try {
if (SystemInfoUtilities.getOperatingSystem() == Operating System.OSX) { if (SystemInfoUtilities.getOperatingSystem() == Operating System.OSX) {
// to support OS Xs menu bar shown in the OS X me nu bar, // to support OS Xs menu bar shown in the OS X me nu bar,
// we have to load the default system look and fe el // we have to load the default system look and fe el
// to exchange the MenuBarUI from RapidLookAndFee l with the // to exchange the MenuBarUI from RapidLookAndFee l with the
// default OS X look and feel UI class. // default OS X look and feel UI class.
// See here for more information: // See here for more information:
 End of changes. 6 change blocks. 
9 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)