Codota Logo
ActionHandler
Code IndexAdd Codota to your IDE (free)

How to use
ActionHandler
in
org.eclipse.che.ide.ui.menubutton

Best Java code snippets using org.eclipse.che.ide.ui.menubutton.ActionHandler (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.eclipse.che.core/che-core-ide-app

 @Override
 public void actionPerformed(ActionEvent e) {
  itemsProvider
    .getDefaultItem()
    .ifPresent(
      defaultItem ->
        getActionHandler().ifPresent(handler -> handler.onAction(defaultItem)));
 }
}
origin: org.eclipse.che.core/che-core-ide-ui

 MainButton(SafeHtml content) {
  super(Document.get().createDivElement());
  getElement().setInnerSafeHtml(content);
  addStyleName(RESOURCES.css().button());
  addStyleName(RESOURCES.css().mainButton());
  addClickHandler(
    event -> {
     if (menu != null && menu.isShowing()) {
      return;
     }
     final Optional<MenuItem> defaultItem = itemsProvider.getDefaultItem();
     if (defaultItem.isPresent()) {
      getActionHandler()
        .ifPresent(actionHandler -> actionHandler.onAction(defaultItem.get()));
     } else {
      showMenu();
     }
    });
 }
}
origin: org.eclipse.che.core/che-core-ide-ui

private void attachEventHandlers() {
 addDomHandler(
   event -> {
    if (overItem != null) {
     overItem.removeStyleName(resources.css().popupItemOver());
    }
    overItem = ItemWidget.this;
    addStyleName(resources.css().popupItemOver());
    if (childList != null) {
     childList.hide();
    }
    if (dataProvider.isGroup(item)) {
     Pair<List<MenuItem>, String> children = dataProvider.getChildren(item);
     createChildPopup(children);
    }
   },
   MouseOverEvent.getType());
 addDomHandler(
   event -> {
    if (dataProvider.isGroup(item)) {
     return;
    }
    hide(true);
    getActionHandler().ifPresent(actionHandler -> actionHandler.onAction(item));
   },
   ClickEvent.getType());
}
org.eclipse.che.ide.ui.menubuttonActionHandler

Javadoc

Handles actions on MenuItems.

Most used methods

  • onAction
    Called when action on the item has been requested.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now