Java Code Examples for com.intellij.openapi.util.ActionCallback#REJECTED
The following examples show how to use
com.intellij.openapi.util.ActionCallback#REJECTED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SourceJarGenerator.java From intellij-pants-plugin with Apache License 2.0 | 5 votes |
@Override public ActionCallback perform(List<LibraryOrderEntry> orderEntriesContainingFile) { Collection<Library> libraries = orderEntriesContainingFile.stream() .map(LibraryOrderEntry::getLibrary) .filter(Objects::nonNull) .collect(Collectors.toSet()); if (libraries.isEmpty()) return ActionCallback.REJECTED; return perform(libraries); }
Example 2
Source File: JBSlidingPanel.java From consulo with Apache License 2.0 | 5 votes |
public ActionCallback goLeft() { if (mySelectedIndex == 0) { return ActionCallback.REJECTED; } mySelectedIndex--; return applySlide(JBCardLayout.SwipeDirection.BACKWARD); }
Example 3
Source File: JBSlidingPanel.java From consulo with Apache License 2.0 | 5 votes |
public ActionCallback goRight() { if (mySelectedIndex == mySlides.size() - 1) { return ActionCallback.REJECTED; } mySelectedIndex++; return applySlide(JBCardLayout.SwipeDirection.FORWARD); }
Example 4
Source File: IdeFrameDecorator.java From consulo with Apache License 2.0 | 5 votes |
@Nonnull @Override public ActionCallback toggleFullScreen(boolean state) { JFrame jFrame = getJFrame(); if (jFrame == null) { return ActionCallback.REJECTED; } GraphicsDevice device = ScreenUtil.getScreenDevice(jFrame.getBounds()); if (device == null) return ActionCallback.REJECTED; try { jFrame.getRootPane().putClientProperty(ScreenUtil.DISPOSE_TEMPORARY, Boolean.TRUE); if (state) { jFrame.getRootPane().putClientProperty("oldBounds", jFrame.getBounds()); } jFrame.dispose(); jFrame.setUndecorated(state); } finally { if (state) { jFrame.setBounds(device.getDefaultConfiguration().getBounds()); } else { Object o = jFrame.getRootPane().getClientProperty("oldBounds"); if (o instanceof Rectangle) { jFrame.setBounds((Rectangle)o); } } jFrame.setVisible(true); jFrame.getRootPane().putClientProperty(ScreenUtil.DISPOSE_TEMPORARY, null); notifyFrameComponents(state); } return ActionCallback.DONE; }
Example 5
Source File: AbstractTreeBuilder.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull public final ActionCallback getInitialized() { AbstractTreeUi ui = getUi(); return ui == null ? ActionCallback.REJECTED : ui.getInitialized(); }
Example 6
Source File: AbstractTreeBuilder.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull public final ActionCallback getReady(Object requestor) { AbstractTreeUi ui = getUi(); return ui == null ? ActionCallback.REJECTED : ui.getReady(requestor); }
Example 7
Source File: AbstractTreeBuilder.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull public ActionCallback cancelUpdate() { AbstractTreeUi ui = getUi(); return ui == null ? ActionCallback.REJECTED : ui.cancelUpdate(); }
Example 8
Source File: AbstractTreeBuilder.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull public ActionCallback batch(@Nonnull Progressive progressive) { AbstractTreeUi ui = getUi(); return ui == null ? ActionCallback.REJECTED : ui.batch(progressive); }
Example 9
Source File: IdeFrameEx.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull default ActionCallback toggleFullScreen(boolean state) { return ActionCallback.REJECTED; }
Example 10
Source File: RunnerLayoutUiImpl.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public ActionCallback selectAndFocus(@Nullable final Content content, boolean requestFocus, final boolean forced, boolean implicit) { if (content == null) return ActionCallback.REJECTED; return getContentManager(content).setSelectedContent(content, requestFocus || shouldRequestFocus(), forced, implicit); }