Examples of tryToChangeToMapView()


Examples of org.freeplane.features.ui.IMapViewManager.tryToChangeToMapView()

      final MapModel oldMap = Controller.getCurrentController().getMap();
      Controller.getCurrentModeController().getMapController().newMap(url);
      final IMapViewManager mapViewManager = Controller.getCurrentController().getMapViewManager();
      final String key = mapViewManager.checkIfFileIsAlreadyOpened(url);
      // make the map the current map even if it was already opened
      if (key == null || !mapViewManager.tryToChangeToMapView(key))
        throw new RuntimeException("map " + url + " does not seem to be opened");
      final MapModel newMap = mapViewManager.getModel();
      restartTransaction(oldMap, newMap);
      return new MapProxy(newMap, scriptContext);
    }
View Full Code Here

Examples of org.freeplane.features.ui.IMapViewManager.tryToChangeToMapView()

    // load as documentation map if necessary
    if(getMModeController().containsExtension(DocuMapAttribute.class)){
      return newDocumentationMap(url);
    }
    final IMapViewManager mapViewManager = Controller.getCurrentController().getMapViewManager();
    if (mapViewManager.tryToChangeToMapView(url))
      return false;
    if (AddOnsController.getController().installIfAppropriate(url))
      return false;
    URL alternativeURL = null;
    try {
View Full Code Here

Examples of org.freeplane.features.ui.IMapViewManager.tryToChangeToMapView()

  /**@throws XMLException
   * @deprecated -- use MMapIO*/
  @Deprecated
  public boolean newDocumentationMap(final URL url) throws FileNotFoundException, IOException, URISyntaxException, XMLException{
    final IMapViewManager mapViewManager = Controller.getCurrentController().getMapViewManager();
    if (mapViewManager.tryToChangeToMapView(url))
      return false;
        try {
          Controller.getCurrentController().getViewController().setWaitingCursor(true);
          final MapModel newModel = new MMapModel();
          newModel.addExtension(DocuMapAttribute.instance);
View Full Code Here

Examples of org.freeplane.features.ui.IMapViewManager.tryToChangeToMapView()

  /**@throws XMLException
   * @deprecated -- use MapIO*/
  @Deprecated
  public boolean newMap(final URL url) throws FileNotFoundException, XMLParseException,IOException, URISyntaxException, XMLException{
          final IMapViewManager mapViewManager = Controller.getCurrentController().getMapViewManager();
          if (mapViewManager.tryToChangeToMapView(url))
            return false;
          try {
          if (AddOnsController.getController().installIfAppropriate(url))
            return false;
          Controller.getCurrentController().getViewController().setWaitingCursor(true);
View Full Code Here

Examples of org.freeplane.features.ui.IMapViewManager.tryToChangeToMapView()

    }
    final IMapViewManager mapViewManager = Controller.getCurrentController().getMapViewManager();
    final Map<String, MapModel> maps = mapViewManager.getMaps(MModeController.MODENAME);
    for (final Map.Entry<String, MapModel> entry : maps.entrySet()) {
      if (map.equals(entry.getValue())) {
        mapViewManager.tryToChangeToMapView(entry.getKey());
      }
    }
  }

  private void selectSelectedRows() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.