congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ActionHandler.onAction
Code IndexAdd Tabnine to your IDE (free)

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

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

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.menubuttonActionHandleronAction

Javadoc

Called when action on the item has been requested.

Popular methods of ActionHandler

    Popular in Java

    • Finding current android device location
    • runOnUiThread (Activity)
    • getSupportFragmentManager (FragmentActivity)
    • getExternalFilesDir (Context)
    • SimpleDateFormat (java.text)
      Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
    • Reference (javax.naming)
    • JOptionPane (javax.swing)
    • StringUtils (org.apache.commons.lang)
      Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
    • Logger (org.slf4j)
      The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
    • Option (scala)
    • Top 12 Jupyter Notebook extensions
    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