本文整理了Java中org.eclipse.jface.window.Window.setWindowManager()
方法的一些代码示例,展示了Window.setWindowManager()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setWindowManager()
方法的具体详情如下:
包路径:org.eclipse.jface.window.Window
类名称: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);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!