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

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

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

Window.setWindowManager介绍

[英]Sets the window manager of this window.

Note that this method is used by WindowManager to maintain a backpointer. Clients must not call the method directly.
[中]设置此窗口的窗口管理器。
请注意,WindowManager使用此方法来维护反向指针。客户端不能直接调用该方法。

代码示例

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

/**
 * Adds the given window to the set of windows managed by
 * this window manager. Does nothing is this window is
 * already managed by this window manager.
 *
 * @param window the window
 */
public void add(Window window) {
  if (!windows.contains(window)) {
    windows.add(window);
    window.setWindowManager(this);
  }
}

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

/**
 * Adds the given window to the set of windows managed by
 * this window manager. Does nothing is this window is
 * already managed by this window manager.
 *
 * @param window the window
 */
public void add(Window window) {
  if (!windows.contains(window)) {
    windows.add(window);
    window.setWindowManager(this);
  }
}

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

/**
   * Removes the given window from the set of windows managed by
   * this window manager. Does nothing is this window is
   * not managed by this window manager.
   *
   * @param window the window
   */
  public final void remove(Window window) {
    if (windows.contains(window)) {
      windows.remove(window);
      window.setWindowManager(null);
    }
  }
}

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

/**
 * Adds the given window to the set of windows managed by
 * this window manager. Does nothing is this window is
 * already managed by this window manager.
 *
 * @param window the window
 */
public void add(Window window) {
  if (!windows.contains(window)) {
    windows.add(window);
    window.setWindowManager(this);
  }
}

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

/**
   * Removes the given window from the set of windows managed by
   * this window manager. Does nothing is this window is
   * not managed by this window manager.
   *
   * @param window the window
   */
  public final void remove(Window window) {
    if (windows.contains(window)) {
      windows.remove(window);
      window.setWindowManager(null);
    }
  }
}

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

/**
   * Removes the given window from the set of windows managed by
   * this window manager. Does nothing is this window is
   * not managed by this window manager.
   *
   * @param window the window
   */
  public final void remove(Window window) {
    if (windows.contains(window)) {
      windows.remove(window);
      window.setWindowManager(null);
    }
  }
}

相关文章