@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); } }
/** * {@inheritDoc} */ @NotNull @Deprecated @Override public DialogWrapperPeer createPeer(@NotNull final DialogWrapper wrapper, final boolean canBeParent, final boolean applicationModalIfPossible) { return new DialogWrapperPeerImpl(wrapper, null, canBeParent, applicationModalIfPossible); }
@NotNull @Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, Window owner, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType) { return new DialogWrapperPeerImpl(wrapper, owner, canBeParent, ideModalityType); }
private void enlargeDialogHeightIfNecessary() { if (mySeveralElementsSelected && !PropertiesComponent.getInstance(getProject()).getBoolean(BULK_MOVE_TABLE_VISIBLE)) { final DialogWrapperPeer peer = getPeer(); final Dimension realSize = peer.getSize(); final double preferredHeight = peer.getPreferredSize().getHeight(); if (realSize.getHeight() < preferredHeight) { peer.setSize((int)realSize.getWidth(), (int)preferredHeight); } } }
@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); } }
@Nonnull @Override public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, Window owner, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType) { return new DialogWrapperPeerImpl(wrapper, owner, canBeParent, ideModalityType); }
@NotNull @Override protected DialogWrapperPeer createPeer(final boolean canBeParent, final boolean applicationModalIfPossible) { return createPeer(null, canBeParent, applicationModalIfPossible); }
@NotNull @Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, project, canBeParent); }
@NotNull @Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent, @NotNull DialogWrapper.IdeModalityType ideModalityType) { return new DialogWrapperPeerImpl(wrapper, project, canBeParent, ideModalityType); }
@NotNull @Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, canBeParent); }
@NotNull @Override public DialogWrapperPeer createPeer(@NotNull final DialogWrapper wrapper, final Window owner, final boolean canBeParent, final boolean applicationModalIfPossible) { return new DialogWrapperPeerImpl(wrapper, owner, canBeParent, applicationModalIfPossible); }
@NotNull @Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @NotNull Component parent, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, parent, canBeParent); }
@NotNull @Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType) { return new DialogWrapperPeerImpl(wrapper, (Window)null, canBeParent, ideModalityType); }
private static void setPredefinedSelectionFor(final JTextField field, final TextRange selectionRange) { field.select(selectionRange.getStartOffset(), selectionRange.getEndOffset()); field.putClientProperty(DialogWrapperPeer.HAVE_INITIAL_SELECTION, true); }
@Override protected DialogWrapperPeer createPeer(final boolean canBeParent, final boolean applicationModalIfPossible) { return createPeer(null, canBeParent, applicationModalIfPossible); }
@Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, project, canBeParent); }
@Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, canBeParent); }
/** * {@inheritDoc} */ @Deprecated @Override public DialogWrapperPeer createPeer(@NotNull final DialogWrapper wrapper, final boolean canBeParent, final boolean applicationModalIfPossible) { return new DialogWrapperPeerImpl(wrapper, null, canBeParent, applicationModalIfPossible); }
@Override public DialogWrapperPeer createPeer(@NotNull final DialogWrapper wrapper, final Window owner, final boolean canBeParent, final boolean applicationModalIfPossible) { return new DialogWrapperPeerImpl(wrapper, owner, canBeParent, applicationModalIfPossible); }
@Override public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @NotNull Component parent, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, parent, canBeParent); }
@Nonnull @Override protected DialogWrapperPeer createPeer(final boolean canBeParent, final boolean applicationModalIfPossible) { return createPeer(null, canBeParent, applicationModalIfPossible); }
@Nonnull @Override public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, project, canBeParent); }
@Nonnull @Override public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent, @Nonnull DialogWrapper.IdeModalityType ideModalityType) { return new DialogWrapperPeerImpl(wrapper, project, canBeParent, ideModalityType); }
@Nonnull @Override public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, canBeParent); }
@Nonnull @Override public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, @Nonnull Component parent, boolean canBeParent) { return new DialogWrapperPeerImpl(wrapper, parent, canBeParent); }
@Nonnull @Override public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType) { return new DialogWrapperPeerImpl(wrapper, (Window)null, canBeParent, ideModalityType); }