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

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

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

Window.createShell介绍

[英]Creates and returns this window's shell.

This method creates a new shell and configures it using configureShell. Subclasses should override configureShell if the shell needs to be customized.
[中]创建并返回此窗口的外壳。
此方法创建一个新的shell,并使用configureShell对其进行配置。如果需要定制shell,子类应该重写configureShell

代码示例

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

/**
 * Creates this window's widgetry in a new top-level shell.
 * <p>
 * The default implementation of this framework method creates this window's
 * shell (by calling <code>createShell</code>), and its controls (by
 * calling <code>createContents</code>), then initializes this window's
 * shell bounds (by calling <code>initializeBounds</code>).
 * </p>
 */
public void create() {
  shell = createShell();
  contents = createContents(shell);
  //initialize the bounds of the shell to that appropriate for the
  // contents
  initializeBounds();
}

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

/**
 * Creates this window's widgetry in a new top-level shell.
 * <p>
 * The default implementation of this framework method creates this window's
 * shell (by calling <code>createShell</code>), and its controls (by
 * calling <code>createContents</code>), then initializes this window's
 * shell bounds (by calling <code>initializeBounds</code>).
 * </p>
 */
public void create() {
  shell = createShell();
  contents = createContents(shell);
  //initialize the bounds of the shell to that appropriate for the
  // contents
  initializeBounds();
}

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

shell = createShell();
contents = createContents(shell);

相关文章