Package org.freeplane.core.ui

Examples of org.freeplane.core.ui.MenuBuilder.removeElement()


        final MenuBuilder menuBuilder = modeController.getUserInputListenerFactory()
            .getMenuBuilder(MenuBuilder.class);
        if (lastVersion == null || lastVersion.compareTo(FreeplaneVersion.getVersion()) <= 0) {
          ResourceController.getResourceController().setProperty(LAST_UPDATE_VERSION, "");
          if (menuBuilder.get(UPDATE_BUTTON_PATH) != null) {
            menuBuilder.removeElement(UPDATE_BUTTON_PATH);
          }
          continue;
        }
        ResourceController.getResourceController().setProperty(LAST_UPDATE_VERSION, lastVersion.toString());
        final String updateAvailable = TextUtils.format("new_version_available", lastVersion.toString());
View Full Code Here


              "MB_PropertyAction",
              "MB_AboutAction"
      };
      for (final String key : keys) {
        if (builder.contains(key)) {
          builder.removeElement(key);
        }
      }
    }
  }
  final public static String CURRENT_VERSION_DIR= File.separatorChar + "1.4.x";
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.