Package org.freeplane.core.resources

Examples of org.freeplane.core.resources.WindowConfigurationStorage


      if (dialog != null) {
        Controller.setCurrentController ((Controller) dialog.getRootPane().getClientProperty(Controller.class));
        return;
      }
      dialog = new JDialog(Controller.getCurrentController().getViewController().getJFrame());
      final WindowConfigurationStorage windowConfigurationStorage = new WindowConfigurationStorage(getKey() + ".dialog");
      windowConfigurationStorage.restoreDialogPositions(dialog);
      dialog.setModal(true);
      dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
      dialog.addWindowListener(new WindowAdapter() {
        @Override
        public void windowClosing(final WindowEvent e) {
          getModeController().tryToCloseDialog();
        }
      });
      Controller controller = SModeControllerFactory.getInstance().createController(dialog);
      modeController = (SModeController) controller.getModeController();
      final ViewController viewController = controller.getViewController();
      viewController.init(controller);
      dialog.addComponentListener(new ComponentAdapter() {
        @Override
        public void componentHidden(final ComponentEvent e) {
            final WindowConfigurationStorage windowConfigurationStorage = new WindowConfigurationStorage(getKey() + ".dialog");
            windowConfigurationStorage.storeDialogPositions(dialog);
          final IMapViewManager mapViewManager = modeController.getController().getMapViewManager();
          final MapModel map = mapViewManager.getModel();
          final IUndoHandler undoHandler = (IUndoHandler) map.getExtension(IUndoHandler.class);
          mapViewManager.close(true);
          Controller.setCurrentController(AEditStylesAction.this.controller);
View Full Code Here


        mTreeLabel.setText(getNodeText(mindMapNode));
      }
    });
    final String marshalled = ResourceController.getResourceController().getProperty(
        NodeList.WINDOW_PREFERENCE_STORAGE_PROPERTY);
    final WindowConfigurationStorage result = TimeWindowConfigurationStorage.decorateDialog(marshalled, dialog);
    final WindowConfigurationStorage storage = result;
    if (storage != null) {
      tableView.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
      int column = 0;
      for (final TimeWindowColumnSetting setting : ((TimeWindowConfigurationStorage) storage)
          .getListTimeWindowColumnSettingList()) {
View Full Code Here

TOP

Related Classes of org.freeplane.core.resources.WindowConfigurationStorage

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.