Java 类com.intellij.openapi.ui.impl.GlassPaneDialogWrapperPeer 实例源码

项目:intellij-ce-playground    文件:IdeGlassPaneImpl.java   
public boolean isInModalContext() {
  final Component[] components = getComponents();
  for (Component component : components) {
    if (component instanceof GlassPaneDialogWrapperPeer.TransparentLayeredPane) {
      return true;
    }
  }

  return false;
}
项目: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);
  }
}
项目:tools-idea    文件:IdeGlassPaneImpl.java   
public boolean isInModalContext() {
  final Component[] components = getComponents();
  for (Component component : components) {
    if (component instanceof GlassPaneDialogWrapperPeer.TransparentLayeredPane) {
      return true;
    }
  }

  return false;
}
项目: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    文件:IdeGlassPaneImpl.java   
public boolean isInModalContext() {
  final Component[] components = getComponents();
  for (Component component : components) {
    if (component instanceof GlassPaneDialogWrapperPeer.TransparentLayeredPane) {
      return true;
    }
  }

  return false;
}
项目: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);
  }
}