Package com.eviware.soapui.support.preferences

Examples of com.eviware.soapui.support.preferences.UserPreferences


            expandWindow(frame);
            frame.setVisible(true);
        }

        private void expandWindow(JFrame frame) {
            UserPreferences userPreferences = new UserPreferences();
            Rectangle savedWindowBounds = userPreferences.getSoapUIWindowBounds();
            if (savedWindowBounds == null || !windowFullyVisibleOnScreen(savedWindowBounds)) {
                Rectangle availableScreenArea = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
                frame.setBounds(availableScreenArea);
            } else {
                frame.setBounds(savedWindowBounds);
                if (!UISupport.isMac()) {
                    frame.setExtendedState(userPreferences.getSoapUIExtendedState());
                }
            }
            frame.addWindowListener(new WindowAdapter() {
                @Override
                public void windowClosing(WindowEvent event) {
                    try {
                        JFrame frame = (JFrame) event.getWindow();
                        UserPreferences userPreferences = new UserPreferences();
                        userPreferences.setSoapUIWindowBounds(frame.getBounds());
                        userPreferences.setSoapUIExtendedState(frame.getExtendedState());
                    } catch (BackingStoreException e) {
                        logError(e, "Could not save SoapUI window bounds");
                    }
                }
            });
View Full Code Here


    return true;
  }

  private static boolean g() {
    return (f == null)
        && (new UserPreferences().getInstallationType() == -1);
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.preferences.UserPreferences

Copyright © 2018 www.massapicom. 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.