public boolean isInModalContext() { final Component[] components = getComponents(); for (Component component : components) { if (component instanceof GlassPaneDialogWrapperPeer.TransparentLayeredPane) { return true; } } return false; }
@NotNull @Override protected DialogWrapperPeer createPeer(@NotNull final Component parent, final boolean canBeParent) { if (System.getProperty("vintage.progress") == null) { try { return new GlassPaneDialogWrapperPeer(this, parent, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(parent, canBeParent); } } else { return super.createPeer(parent, canBeParent); } }
@NotNull @Override protected DialogWrapperPeer createPeer(final Window owner, final boolean canBeParent, final boolean applicationModalIfPossible) { if (System.getProperty("vintage.progress") == null) { try { return new GlassPaneDialogWrapperPeer(this, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(WindowManager.getInstance().suggestParentWindow(myProgressWindow.myProject), canBeParent, applicationModalIfPossible); } } else { return super.createPeer(WindowManager.getInstance().suggestParentWindow(myProgressWindow.myProject), canBeParent, applicationModalIfPossible); } }
@NotNull @Override protected DialogWrapperPeer createPeer(final Project project, final boolean canBeParent) { if (System.getProperty("vintage.progress") == null) { try { return new GlassPaneDialogWrapperPeer(this, project, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(project, canBeParent); } } else { return super.createPeer(project, canBeParent); } }
@Override protected DialogWrapperPeer createPeer(@NotNull final Component parent, final boolean canBeParent) { if (System.getProperty("vintage.progress") == null) { try { return new GlassPaneDialogWrapperPeer(this, parent, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(parent, canBeParent); } } else { return super.createPeer(parent, canBeParent); } }
@Override protected DialogWrapperPeer createPeer(final Window owner, final boolean canBeParent, final boolean applicationModalIfPossible) { if (System.getProperty("vintage.progress") == null) { try { return new GlassPaneDialogWrapperPeer(this, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(WindowManager.getInstance().suggestParentWindow(myProject), canBeParent, applicationModalIfPossible); } } else { return super.createPeer(WindowManager.getInstance().suggestParentWindow(myProject), canBeParent, applicationModalIfPossible); } }
@Override protected DialogWrapperPeer createPeer(final Project project, final boolean canBeParent) { if (System.getProperty("vintage.progress") == null) { try { return new GlassPaneDialogWrapperPeer(this, project, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(project, canBeParent); } } else { return super.createPeer(project, canBeParent); } }
@Nonnull @Override protected DialogWrapperPeer createPeer(@Nonnull final Component parent, final boolean canBeParent) { if (useLightPopup()) { try { return new GlassPaneDialogWrapperPeer(this, parent, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(parent, canBeParent); } } else { return super.createPeer(parent, canBeParent); } }
@Nonnull @Override protected DialogWrapperPeer createPeer(final Window owner, final boolean canBeParent, final boolean applicationModalIfPossible) { if (useLightPopup()) { try { return new GlassPaneDialogWrapperPeer(this, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(WindowManager.getInstance().suggestParentWindow(myProgressWindow.myProject), canBeParent, applicationModalIfPossible); } } else { return super.createPeer(WindowManager.getInstance().suggestParentWindow(myProgressWindow.myProject), canBeParent, applicationModalIfPossible); } }
@Nonnull @Override protected DialogWrapperPeer createPeer(final Project project, final boolean canBeParent) { if (System.getProperty("vintage.progress") == null) { try { return new GlassPaneDialogWrapperPeer(this, project, canBeParent); } catch (GlassPaneDialogWrapperPeer.GlasspanePeerUnavailableException e) { return super.createPeer(project, canBeParent); } } else { return super.createPeer(project, canBeParent); } }