本文整理了Java中org.eclipse.swt.widgets.Shell.update()
方法的一些代码示例,展示了Shell.update()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Shell.update()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Shell
类名称:Shell
方法名:update
暂无
代码示例来源:origin: org.eclipse/org.eclipse.help.ui
public void controlMoved(ControlEvent e) {
if (HelpUIPlugin.DEBUG_INFOPOP) {
System.out
.println("ContextHelpDialog: shell control adapter called."); //$NON-NLS-1$
}
Rectangle clientArea = shell.getClientArea();
shell.redraw(clientArea.x, clientArea.y, clientArea.width,
clientArea.height, true);
shell.update();
}
});
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
if (isDisposed ()) return;
if (!iconic) {
update (true, true);
if (isDisposed ()) return;
adjustTrim ();
代码示例来源:origin: BiglySoftware/BiglyBT
private void pullWhatsNew(Composite cWhatsNew) {
labelLoading = new Label(cWhatsNew, SWT.CENTER);
labelLoading.setText(MessageText.getString("uninstallPluginsWizard.details.loading"));
shell.layout(true, true);
shell.update();
getWhatsNew(1);
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
/**
* Forces all outstanding paint requests for the display
* to be processed before this method returns.
*
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li>
* </ul>
*
* @see Control#update()
*/
public void update () {
checkDevice ();
Shell [] shells = getShells ();
for (int i=0; i<shells.length; i++) {
Shell shell = shells [i];
if (!shell.isDisposed ()) shell.update (true);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void update () {
if (parent != null) {
if (parent.isDisposed ()) return;
parent.getShell ().update ();
} else {
display.update ();
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void update () {
if (parent != null) {
if (parent.isDisposed ()) return;
parent.getShell ().update ();
} else {
display.update ();
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void update () {
if (parent != null) {
if (parent.isDisposed ()) return;
parent.getShell ().update ();
} else {
display.update ();
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
shell.update();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
void update () {
if (hwndOpaque != 0) return;
if (parent != null) {
if (parent.isDisposed ()) return;
Shell shell = parent.getShell ();
shell.update (true);
} else {
display.update ();
}
}
代码示例来源:origin: org.apache.directory.studio/ldifeditor
protected void createButtonsForButtonBar( Composite parent )
{
createButton( parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false );
if ( entry != null )
{
createButton( parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false );
}
getShell().update();
getShell().layout( true, true );
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.addons.swt
public void setFeedback(boolean enclosed, boolean modified) {
if (isModified == null) {
isModified = !modified;
}
// Update the feedback color if the drag is 'modified'
if (modified != isModified) {
if (!modified) {
stylingEngine.setClassname(feedbackShell, "DragFeedback");
} else {
stylingEngine.setClassname(feedbackShell, "ModifiedDragFeedback");
}
stylingEngine.style(feedbackShell);
isModified = modified;
}
showRects(enclosed);
defineRegion();
feedbackShell.update();
}
代码示例来源:origin: org.eclipse.e4.ui.workbench.addons/swt
public void setFeedback(boolean enclosed, boolean modified) {
if (isModified == null)
isModified = !modified;
// Update the feedback color if the drag is 'modified'
if (modified != isModified) {
if (!modified) {
stylingEngine.setClassname(feedbackShell, "DragFeedback");
} else {
stylingEngine.setClassname(feedbackShell, "ModifiedDragFeedback");
}
stylingEngine.style(feedbackShell);
isModified = modified;
}
showRects(enclosed);
defineRegion();
feedbackShell.update();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
for (int i=0; i<shells.length; i++) {
Shell shell = shells [i];
if (!shell.isDisposed ()) shell.update (true);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
getShell().update();
代码示例来源:origin: BiglySoftware/BiglyBT
protected void swt_hide() {
SWTSkinObject skinObjectMaster = getSkinObjectMaster();
if (skinObjectMaster instanceof SWTSkinObjectContainer) {
SWTSkinObjectContainer container = (SWTSkinObjectContainer) skinObjectMaster;
Control oldComposite = container.getControl();
container.setVisible(false);
if (oldComposite != null && !oldComposite.isDisposed()) {
oldComposite.getShell().update();
}
}
Composite oldComposite = getComposite();
if (oldComposite != null && !oldComposite.isDisposed()) {
oldComposite.setVisible(false);
oldComposite.getShell().update();
}
try {
triggerEvent(UISWTViewEvent.TYPE_FOCUSLOST, null);
} catch (Exception e) {
Debug.out(e);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui
getShell().update();
代码示例来源:origin: org.xworker/xworker_swt
shell.update();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui
/**
* Something has changed, requiring redraw. Redraw the decoration and update the hover text if appropriate.
*/
protected void update() {
if(control == null || control.isDisposed()) {
return;
}
Rectangle rect = getDecorationRectangle(control.getShell());
// Redraw this rectangle in all children
control.getShell().redraw(rect.x, rect.y, rect.width, rect.height, true);
control.getShell().update();
if(hover != null && getDescriptionText() != null) {
hover.setText(getDescriptionText(), getDecorationRectangle(control.getParent()), control);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* Something has changed, requiring redraw. Redraw the decoration and update
* the hover text if appropriate.
*/
protected void update() {
if (control == null || control.isDisposed()) {
return;
}
Rectangle rect = getDecorationRectangle(control.getShell());
// If this update is happening due to an image reset, we need to make
// sure we clear the area from the old image.
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=212501
if (previousDecorationRectangle != null) {
rect = rect.union(previousDecorationRectangle);
}
// Redraw this rectangle in all children
control.getShell()
.redraw(rect.x, rect.y, rect.width, rect.height, true);
control.getShell().update();
if (hover != null && getDescriptionText() != null) {
hover.setText(getDescriptionText(), getDecorationRectangle(control
.getParent()), control);
}
previousDecorationRectangle = null;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* Something has changed, requiring redraw. Redraw the decoration and update
* the hover text if appropriate.
*/
protected void update() {
if (control == null || control.isDisposed()) {
return;
}
Rectangle rect = getDecorationRectangle(control.getShell());
// If this update is happening due to an image reset, we need to make
// sure we clear the area from the old image.
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=212501
if (previousDecorationRectangle != null) {
rect = rect.union(previousDecorationRectangle);
}
// Redraw this rectangle in all children
control.getShell()
.redraw(rect.x, rect.y, rect.width, rect.height, true);
control.getShell().update();
if (hover != null && getDescriptionText() != null) {
hover.setText(getDescriptionText(), getDecorationRectangle(control
.getParent()), control);
}
previousDecorationRectangle = null;
}
内容来源于网络,如有侵权,请联系作者删除!