Tabnine Logo
Controller.getViewController
Code IndexAdd Tabnine to your IDE (free)

How to use
getViewController
method
in
org.freeplane.features.mode.Controller

Best Java code snippets using org.freeplane.features.mode.Controller.getViewController (Showing top 20 results out of 315)

origin: freeplane/freeplane

public void afterViewChange(final Component oldView, final Component newView) {
  if (newView == null) {
    return;
  }
  controller.getViewController().invokeLater(new Runnable() {
    public void run() {
      removeMe();
    }
  });
  setTimer();
}
origin: freeplane/freeplane

  @Override
  public void onDeselect(final NodeModel node) {
    final ViewController viewController = Controller.getCurrentController().getViewController();
    viewController.addStatusInfo("display_node_id", null, null);
  }
});
origin: freeplane/freeplane

  private void openSurvey(final URL url) throws Exception {
    Controller.getCurrentController().getViewController().openDocument(url);
  }
}
origin: freeplane/freeplane

private void updateUILater() {
  mapChangeCounter++;
  Controller.getCurrentController().getViewController().invokeLater(new Runnable() {
    @Override
    public void run() {
      mapChangeCounter--;
      if (0 == mapChangeCounter)
        updateUI();
    }
  });
}
origin: freeplane/freeplane

  public void installExtension(ModeController modeController) {
    if(! modeController.getController().getViewController().isHeadless())
      initJSyntaxPane(context);
    //new ScriptingRegistration(modeController);
  }
}, props);
origin: freeplane/freeplane

public boolean shutdown() {
  getViewController().saveProperties();
  if (!getViewController().quit()) {
    return false;
  }
  ResourceController.getResourceController().saveProperties();
  extensionContainer.getExtensions().clear();
  return true;
}
origin: freeplane/freeplane

public void onWrongPassword() {
  final Controller controller = Controller.getCurrentController();
  JOptionPane.showMessageDialog(controller.getViewController().getCurrentRootComponent(), TextUtils
    .getText("accessories/plugins/EncryptNode.properties_wrong_password"), "Freeplane",
    JOptionPane.ERROR_MESSAGE);
}
origin: freeplane/freeplane

  @Override
  public void actionPerformed(ActionEvent event) {
    try {
      Controller.getCurrentController().getViewController().openDocument(new URL(url));
    }
    catch (Exception e) {
      LogUtils.severe(e);
    }
  }
});
origin: freeplane/freeplane

  @Override
  public void onSelect(final NodeModel node) {
    final URI link = NodeLinks.getValidLink(node);
    final String linkString = (link != null ? link.toString() : null);
    if (linkString != null) {
      Controller.getCurrentController().getViewController().out(linkString);
    }
  }
};
origin: freeplane/freeplane

private void setErrorStatus(final String info) {
  if(! errorReported){
    errorReported = true;
    JOptionPane.showMessageDialog(KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(), info,
      TextUtils.getText("error"), JOptionPane.ERROR_MESSAGE);
  }
  LogUtils.warn(info);
  String message = info.trim().replaceAll("\\s", " ");
  if(message.length() > 80)
    message = message.substring(0, 80);
  Controller.getCurrentController().getViewController().out(message);
}
origin: freeplane/freeplane

private void showStatusInfo(NodeModel node) {
  initTooltipFormat();
  final Object[] messageArguments = getMessageArguments(node);
  final String message = formatter.format(messageArguments);
  Controller.getCurrentController().getViewController().addStatusInfo(HOOK_NAME, message);
}
origin: freeplane/freeplane

void displayFilterStatus() {
  if (filterIcon == null) {
    filterIcon = ResourceController.getResourceController().getIcon("/images/filter.png");
  }
  if (getCondition() != null) {
    Controller.getCurrentController().getViewController().addStatusInfo("filter", null, filterIcon);
  }
  else {
    Controller.getCurrentController().getViewController().removeStatus("filter");
  }
}
origin: freeplane/freeplane

public boolean processKeyBinding(final KeyStroke ks, final KeyEvent e, final int condition, final boolean pressed) {
  if(containsModifierKeyCode(ks))
    return false;
  final FreeplaneMenuBar freeplaneMenuBar = Controller.getCurrentController().getViewController()
    .getFreeplaneMenuBar();
  return freeplaneMenuBar.processKeyBinding(ks, e, JComponent.WHEN_IN_FOCUSED_WINDOW, pressed);
}
private static final List<Integer> modifierKeyCodes = Arrays.asList(VK_CONTROL, VK_ALT, VK_SHIFT, VK_META, VK_WINDOWS);
origin: freeplane/freeplane

private void updateFullScreenMode() {
  if(ResourceController.getResourceController().getBooleanProperty(SWITCH_TO_FULL_SCREEN_PROPERTY)){
    final FrameController viewController = (FrameController) Controller.getCurrentController().getViewController();
    viewController.setFullScreen(isPresentationRunning);
  }
}

origin: freeplane/freeplane

void setSelectedCellTypeInfo() {
  final int r = getSelectedRow();
  final int c = getSelectedColumn();
  if(r >= 0 && c >= 0){
    final Object value = getValueAt(r, c);
    final ViewController viewController = Controller.getCurrentController().getViewController();
    viewController.addObjectTypeInfo(value);
  }
}
origin: freeplane/freeplane

  @Override
  public void actionPerformed(final ActionEvent e) {
    final Controller controller = Controller.getCurrentController();
    final NodeModel selected = controller.getSelection().getSelected();
    final ClipboardAccessor clipboardController = Controller.getCurrentModeController().getExtension(
      ClipboardAccessor.class);
    String suggestedString = explorer.getNodeReferenceSuggestion(selected);
    clipboardController.setClipboardContents(new StringSelection(suggestedString));
    controller.getViewController().out(suggestedString);
  }
}
origin: freeplane/freeplane

@Override
protected boolean processKeyBinding(final KeyStroke ks, final KeyEvent e, final int condition, final boolean pressed) {
  if (super.processKeyBinding(ks, e, condition, pressed)) {
    return true;
  }
  final MapView mapView = (MapView) SwingUtilities.getAncestorOfClass(MapView.class, this);
  final FreeplaneMenuBar freeplaneMenuBar = mapView.getModeController().getController().getViewController()
    .getFreeplaneMenuBar();
  return !freeplaneMenuBar.isVisible()
      && freeplaneMenuBar.processKeyBinding(ks, e, JComponent.WHEN_IN_FOCUSED_WINDOW, pressed);
}
origin: freeplane/freeplane

private void setScrollbarsVisiblilty() {
  final ViewController viewController = Controller.getCurrentController().getViewController();
  boolean areScrollbarsVisible = viewController.areScrollbarsVisible();
  setHorizontalScrollBarPolicy(areScrollbarsVisible ? JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS : JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  setVerticalScrollBarPolicy(areScrollbarsVisible ? JScrollPane.VERTICAL_SCROLLBAR_ALWAYS : JScrollPane.VERTICAL_SCROLLBAR_NEVER);
  final boolean isFullScreenEnabled = ! UITools.getCurrentFrame().isResizable();
  setBorder(isFullScreenEnabled && ! areScrollbarsVisible ? null : defaultBorder);
}
origin: freeplane/freeplane

public FoldingController() {
  super();
  final ModeController modeController = Controller.getCurrentModeController();
  if(!modeController.getController().getViewController().isHeadless()){
    final IUserInputListenerFactory userInputListenerFactory = modeController.getUserInputListenerFactory();
    userInputListenerFactory.addMouseWheelEventHandler(this);
    for (final AFreeplaneAction annotatedAction : getAnnotatedActions()) {
      modeController.addAction(annotatedAction);
    }
  }
}
origin: freeplane/freeplane

/**
 *
 */
private void createActions() {
  final Controller controller = Controller.getCurrentController();
  ModeController modeController = controller.getModeController();
  modeController.addAction(new CopySingleAction());
  if(!controller.getViewController().isApplet())
    modeController.addAction(new CopyIDAction());
  modeController.addAction(new CopyNodeURIAction());
}
org.freeplane.features.modeControllergetViewController

Popular methods of Controller

  • getCurrentController
  • getCurrentModeController
  • getMap
  • getMapViewManager
  • getModeController
  • getResourceController
  • getSelection
  • addApplicationLifecycleListener
  • addOptionValidator
  • getExtension
  • <init>
  • addAction
  • <init>,
  • addAction,
  • addActionIfNotAlreadySet,
  • addExtension,
  • addMapLifeCycleListener,
  • addModeController,
  • close,
  • closeAllMaps,
  • exec

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ImageIO (javax.imageio)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now