Java 类com.intellij.openapi.ui.DialogWrapperPeer 实例源码

项目:intellij-ce-playground    文件:ProgressDialog.java   
@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);
  }
}
项目:intellij-ce-playground    文件:ProgressDialog.java   
@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);
  }
}
项目:intellij-ce-playground    文件:ProgressDialog.java   
@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);
  }
}
项目:intellij-ce-playground    文件:DialogWrapperPeerFactoryImpl.java   
/**
 * {@inheritDoc}
 */
@NotNull
@Deprecated
@Override
public DialogWrapperPeer createPeer(@NotNull final DialogWrapper wrapper, final boolean canBeParent, final boolean applicationModalIfPossible) {
  return new DialogWrapperPeerImpl(wrapper, null, canBeParent, applicationModalIfPossible);
}
项目:intellij-ce-playground    文件:DialogWrapperPeerFactoryImpl.java   
@NotNull
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper,
                                    Window owner,
                                    boolean canBeParent,
                                    DialogWrapper.IdeModalityType ideModalityType) {
  return new DialogWrapperPeerImpl(wrapper, owner, canBeParent, ideModalityType);
}
项目:intellij-ce-playground    文件:PyMoveModuleMembersDialog.java   
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);
    }
  }
}
项目:tools-idea    文件:ProgressWindow.java   
@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);
  }
}
项目:tools-idea    文件:ProgressWindow.java   
@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);
  }
}
项目:tools-idea    文件:ProgressWindow.java   
@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);
  }
}
项目:consulo    文件:ProgressDialog.java   
@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);
  }
}
项目:consulo    文件:ProgressDialog.java   
@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);
  }
}
项目:consulo    文件:ProgressDialog.java   
@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);
  }
}
项目:consulo    文件:DialogWrapperPeerFactoryImpl.java   
@Nonnull
@Override
public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper,
                                    Window owner,
                                    boolean canBeParent,
                                    DialogWrapper.IdeModalityType ideModalityType) {
  return new DialogWrapperPeerImpl(wrapper, owner, canBeParent, ideModalityType);
}
项目:intellij-ce-playground    文件:ProgressDialog.java   
@NotNull
@Override
protected DialogWrapperPeer createPeer(final boolean canBeParent, final boolean applicationModalIfPossible) {
  return createPeer(null, canBeParent, applicationModalIfPossible);
}
项目:intellij-ce-playground    文件:DialogWrapperPeerFactoryImpl.java   
@NotNull
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, project, canBeParent);
}
项目:intellij-ce-playground    文件:DialogWrapperPeerFactoryImpl.java   
@NotNull
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent, @NotNull DialogWrapper.IdeModalityType ideModalityType) {
  return new DialogWrapperPeerImpl(wrapper, project, canBeParent, ideModalityType);
}
项目:intellij-ce-playground    文件:DialogWrapperPeerFactoryImpl.java   
@NotNull
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, canBeParent);
}
项目:intellij-ce-playground    文件:DialogWrapperPeerFactoryImpl.java   
@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);
}
项目:intellij-ce-playground    文件:DialogWrapperPeerFactoryImpl.java   
@NotNull
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @NotNull Component parent, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, parent, canBeParent);
}
项目:intellij-ce-playground    文件:DialogWrapperPeerFactoryImpl.java   
@NotNull
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType) {
  return new DialogWrapperPeerImpl(wrapper, (Window)null, canBeParent, ideModalityType);
}
项目:intellij-ce-playground    文件:CreateFromTemplatePanel.java   
private static void setPredefinedSelectionFor(final JTextField field, final TextRange selectionRange) {
  field.select(selectionRange.getStartOffset(), selectionRange.getEndOffset());
  field.putClientProperty(DialogWrapperPeer.HAVE_INITIAL_SELECTION, true);
}
项目:tools-idea    文件:ProgressWindow.java   
@Override
protected DialogWrapperPeer createPeer(final boolean canBeParent, final boolean applicationModalIfPossible) {
  return createPeer(null, canBeParent, applicationModalIfPossible);
}
项目:tools-idea    文件:DialogWrapperPeerFactoryImpl.java   
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, project, canBeParent);
}
项目:tools-idea    文件:DialogWrapperPeerFactoryImpl.java   
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, canBeParent);
}
项目:tools-idea    文件:DialogWrapperPeerFactoryImpl.java   
/**
 * {@inheritDoc}
 */
@Deprecated
@Override
public DialogWrapperPeer createPeer(@NotNull final DialogWrapper wrapper, final boolean canBeParent, final boolean applicationModalIfPossible) {
  return new DialogWrapperPeerImpl(wrapper, null, canBeParent, applicationModalIfPossible);
}
项目:tools-idea    文件:DialogWrapperPeerFactoryImpl.java   
@Override
public DialogWrapperPeer createPeer(@NotNull final DialogWrapper wrapper, final Window owner, final boolean canBeParent, final boolean applicationModalIfPossible) {
  return new DialogWrapperPeerImpl(wrapper, owner, canBeParent, applicationModalIfPossible);
}
项目:tools-idea    文件:DialogWrapperPeerFactoryImpl.java   
@Override
public DialogWrapperPeer createPeer(@NotNull DialogWrapper wrapper, @NotNull Component parent, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, parent, canBeParent);
}
项目:tools-idea    文件:CreateFromTemplatePanel.java   
private static void setPredefinedSelectionFor(final JTextField field, final TextRange selectionRange) {
  field.select(selectionRange.getStartOffset(), selectionRange.getEndOffset());
  field.putClientProperty(DialogWrapperPeer.HAVE_INITIAL_SELECTION, true);
}
项目:consulo    文件:ProgressDialog.java   
@Nonnull
@Override
protected DialogWrapperPeer createPeer(final boolean canBeParent, final boolean applicationModalIfPossible) {
  return createPeer(null, canBeParent, applicationModalIfPossible);
}
项目:consulo    文件:DialogWrapperPeerFactoryImpl.java   
@Nonnull
@Override
public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, project, canBeParent);
}
项目:consulo    文件:DialogWrapperPeerFactoryImpl.java   
@Nonnull
@Override
public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, @Nullable Project project, boolean canBeParent, @Nonnull DialogWrapper.IdeModalityType ideModalityType) {
  return new DialogWrapperPeerImpl(wrapper, project, canBeParent, ideModalityType);
}
项目:consulo    文件:DialogWrapperPeerFactoryImpl.java   
@Nonnull
@Override
public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, canBeParent);
}
项目:consulo    文件:DialogWrapperPeerFactoryImpl.java   
@Nonnull
@Override
public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, @Nonnull Component parent, boolean canBeParent) {
  return new DialogWrapperPeerImpl(wrapper, parent, canBeParent);
}
项目:consulo    文件:DialogWrapperPeerFactoryImpl.java   
@Nonnull
@Override
public DialogWrapperPeer createPeer(@Nonnull DialogWrapper wrapper, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType) {
  return new DialogWrapperPeerImpl(wrapper, (Window)null, canBeParent, ideModalityType);
}
项目:consulo    文件:CreateFromTemplatePanel.java   
private static void setPredefinedSelectionFor(final JTextField field, final TextRange selectionRange) {
  field.select(selectionRange.getStartOffset(), selectionRange.getEndOffset());
  field.putClientProperty(DialogWrapperPeer.HAVE_INITIAL_SELECTION, true);
}