org.eclipse.jface.window.Window.setShellStyle()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(181)

本文整理了Java中org.eclipse.jface.window.Window.setShellStyle()方法的一些代码示例,展示了Window.setShellStyle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setShellStyle()方法的具体详情如下:
包路径:org.eclipse.jface.window.Window
类名称:Window
方法名:setShellStyle

Window.setShellStyle介绍

[英]Sets the shell style bits. This method has no effect after the shell is created.

The shell style bits are used by the framework method createShell when creating this window's shell.
[中]设置shell样式位。创建壳后,此方法无效。
框架方法createShell在创建此窗口的shell时使用shell样式位。

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
 * Creates a window instance, whose shell will be created under the given
 * parent shell. Note that the window will have no visual representation
 * until it is told to open. By default, <code>open</code> does not block.
 *
 * @param parentShell
 *            the parent shell, or <code>null</code> to create a top-level
 *            shell. Try passing "(Shell)null" to this method instead of "null"
 *            if your compiler complains about an ambiguity error.
 * @see #setBlockOnOpen
 * @see #getDefaultOrientation()
 */
protected Window(Shell parentShell) {
  this(new SameShellProvider(parentShell));
  if(parentShell == null) {
    setShellStyle(getShellStyle() | getDefaultOrientation());
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

/**
 * Creates a window instance, whose shell will be created under the given
 * parent shell. Note that the window will have no visual representation
 * until it is told to open. By default, <code>open</code> does not block.
 *
 * @param parentShell
 *            the parent shell, or <code>null</code> to create a top-level
 *            shell. Try passing "(Shell)null" to this method instead of "null"
 *            if your compiler complains about an ambiguity error.
 * @see #setBlockOnOpen
 * @see #getDefaultOrientation()
 */
protected Window(Shell parentShell) {
  this(new SameShellProvider(parentShell));
  if(parentShell == null) {
    setShellStyle(getShellStyle() | getDefaultOrientation());
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
 * Creates a window instance, whose shell will be created under the given
 * parent shell. Note that the window will have no visual representation
 * until it is told to open. By default, <code>open</code> does not block.
 * 
 * @param parentShell
 *            the parent shell, or <code>null</code> to create a top-level
 *            shell. Try passing "(Shell)null" to this method instead of "null"
 *            if your compiler complains about an ambiguity error.
 * @see #setBlockOnOpen
 * @see #getDefaultOrientation()
 */
protected Window(Shell parentShell) {
  this(new SameShellProvider(parentShell));
  
  if(parentShell == null) {
    setShellStyle(getShellStyle() | getDefaultOrientation());
  }
}

相关文章