IDEA-185581 Can't add new Startup Tasks configuration

This commit is contained in:
Denis Fokin
2018-01-25 19:59:45 +03:00
parent a4ebbece45
commit d6e638e618
4 changed files with 6 additions and 7 deletions
@@ -121,6 +121,7 @@ public class BookmarksAction extends AnAction implements DumbAware, MasterDetail
});
Point location = DimensionService.getInstance().getLocation(DIMENSION_SERVICE_KEY, project);
myPopup.getContent().putClientProperty("BookmarkPopup", "TRUE");
if (location != null) {
popup.showInScreenCoordinates(WindowManagerEx.getInstanceEx().getMostRecentFocusedWindow(), location);
}
@@ -53,7 +53,7 @@ class EditBookmarkDescriptionAction extends DumbAwareAction {
return;
}
Bookmark bookmark = BookmarksAction.getSelectedBookmarks(myList).get(0);
// myPopup.setUiVisible(false);
myPopup.setUiVisible(false);
BookmarkManager.getInstance(myProject).editDescription(bookmark, myList);
@@ -79,11 +79,6 @@ public final class IdePopupManager implements IdeEventQueue.EventDispatcher {
&& !ultimateParentForFocusedComponent.equals(ultimateParentForEventWindow)) {
shouldCloseAllPopup = true;
}
else if (focused instanceof Dialog && ((Dialog)focused).isModal()) {
// close all popups except one that is opening a modal dialog
closeAllPopups(true, focused.getOwner());
return false;
}
}
if (shouldCloseAllPopup) {
@@ -922,9 +922,12 @@ public class AbstractPopup implements JBPopup {
window.setFocusableWindowState(myRequestFocus);
window.setFocusable(myRequestFocus);
// temporary w/a (will be brought back in jdk)
if (SystemInfo.isJetBrainsJvm) {
if ("TRUE".equals(getContent().getClientProperty("BookmarkPopup"))) {
window.setType(Window.Type.NORMAL);
} else if (SystemInfo.isJetBrainsJvm) {
window.setType(Window.Type.POPUP);
}
// Swing popup default always on top state is set in true
window.setAlwaysOnTop(false);