org.eclipse.swt.browser.Browser.dispose()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(177)

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

Browser.dispose介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

@Override public Object function( Object[] arguments ) {
  paths = new ArrayList<>();
  for ( Object path : (Object[]) arguments[0] ) {
   paths.add( (String) path );
  }
  browser.dispose();
  dialog.close();
  dialog.dispose();
  return true;
 }
};

代码示例来源:origin: pentaho/pentaho-kettle

@Override public Object function( Object[] arguments ) {
  paths = new ArrayList<>();
  browser.dispose();
  dialog.close();
  dialog.dispose();
  return true;
 }
};

代码示例来源:origin: pentaho/pentaho-kettle

@Override public Object function( Object[] arguments ) {
  browser.dispose();
  dialog.close();
  dialog.dispose();
  return true;
 }
};

代码示例来源:origin: pentaho/pentaho-kettle

public void handleEvent( Event event ) {
  browser.dispose();
  dialog.close();
  dialog.dispose();
 }
} );

代码示例来源:origin: pentaho/pentaho-kettle

@Override public Object function( Object[] arguments ) {
  browser.dispose();
  dialog.close();
  dialog.dispose();
  return true;
 }
};

代码示例来源:origin: pentaho/pentaho-kettle

@Override public Object function( Object[] arguments ) {
  objectId = (String) arguments[ 0 ];
  objectName = (String) arguments[ 1 ];
  objectDirectory = (String) arguments[ 2 ];
  objectType = (String) arguments[ 3 ];
  browser.dispose();
  dialog.close();
  dialog.dispose();
  return true;
 }
};

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
public void
dispose()
{
  browser.dispose();
}

代码示例来源:origin: org.eclipse/org.eclipse.jst.pagedesigner

public void dispose() {
  if (_browser == null) {
    return;
  }
  _browser.dispose();
  _browser = null;
  return;
}

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

@Override
public void dispose() {
  browser.dispose();
}

代码示例来源:origin: org.codehaus.openxma/xmartserver

public void widgetDisposed (DisposeEvent e) {               
     swtBrowser.dispose();
     freeResources();
     display.setData("help",null);
 }
});

代码示例来源:origin: org.codehaus.openxma/xmartclient

public void widgetDisposed (DisposeEvent e) {               
     swtBrowser.dispose();
     freeResources();
     display.setData("help",null);
 }
});

代码示例来源:origin: org.apache.uima/ruta-ep-caseditor

@Override
public void dispose() {
 browser.dispose();
 editor.removeCasEditorInputListener(this);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

int /*long*/ webkit_close_web_view (int /*long*/ web_view) {
  WindowEvent newEvent = new WindowEvent (browser);
  newEvent.display = browser.getDisplay ();
  newEvent.widget = browser;
  for (int i = 0; i < closeWindowListeners.length; i++) {
    closeWindowListeners[i].close (newEvent);
  }
  browser.dispose ();
  return 0;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

long /*int*/ webkit_close_web_view (long /*int*/ web_view) {
  WindowEvent newEvent = new WindowEvent (browser);
  newEvent.display = browser.getDisplay ();
  newEvent.widget = browser;
  for (int i = 0; i < closeWindowListeners.length; i++) {
    closeWindowListeners[i].close (newEvent);
  }
  browser.dispose ();
  return 0;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

int /*long*/ webkit_close_web_view (int /*long*/ web_view) {
  WindowEvent newEvent = new WindowEvent (browser);
  newEvent.display = browser.getDisplay ();
  newEvent.widget = browser;
  for (int i = 0; i < closeWindowListeners.length; i++) {
    closeWindowListeners[i].close (newEvent);
  }
  browser.dispose ();
  return 0;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

int webViewClose (int /*long*/ sender) {
  WindowEvent newEvent = new WindowEvent (browser);
  newEvent.display = browser.getDisplay ();
  newEvent.widget = browser;
  CloseWindowListener[] closeWindowListeners = browser.webBrowser.closeWindowListeners;
  for (int i = 0; i < closeWindowListeners.length; i++) {
    closeWindowListeners[i].close (newEvent);
  }
  browser.dispose ();
  return COM.S_OK;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

int DestroyBrowserWindow () {
  WindowEvent newEvent = new WindowEvent (browser);
  newEvent.display = browser.getDisplay ();
  newEvent.widget = browser;
  for (int i = 0; i < closeWindowListeners.length; i++) {
    closeWindowListeners[i].close (newEvent);
  }
  /*
  * Note on Mozilla.  The DestroyBrowserWindow notification cannot be cancelled.
  * The browser widget cannot be used after this notification has been received.
  * The application is advised to close the window hosting the browser widget.
  * The browser widget must be disposed in all cases.
  */
  browser.dispose ();
  return XPCOM.NS_OK;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

int DestroyBrowserWindow () {
  WindowEvent newEvent = new WindowEvent (browser);
  newEvent.display = browser.getDisplay ();
  newEvent.widget = browser;
  for (int i = 0; i < closeWindowListeners.length; i++) {
    closeWindowListeners[i].close (newEvent);
  }
  /*
  * Note on Mozilla.  The DestroyBrowserWindow notification cannot be cancelled.
  * The browser widget cannot be used after this notification has been received.
  * The application is advised to close the window hosting the browser widget.
  * The browser widget must be disposed in all cases.
  */
  browser.dispose ();
  return XPCOM.NS_OK;
}

代码示例来源:origin: kiegroup/droolsjbpm-tools

private void disposeOnlineExampleProjectControls() {
  if (onlineExamplesTree!=null) {
    if (!onlineExamplesTree.getTree().isDisposed())
      onlineExamplesTree.dispose();
    onlineExamplesTree = null;
  }
  if (browser!=null) {
    if (!browser.isDisposed())
      browser.dispose();
    browser = null;
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void onResize () {
  Rectangle rect = DPIUtil.autoScaleUp (browser.getClientArea ()); // To Pixels
  int width = Math.max (1, rect.width);
  int height = Math.max (1, rect.height);

  long /*int*/[] result = new long /*int*/[1];
  int rc = webBrowser.QueryInterface (IIDStore.GetIID (nsIBaseWindow.class), result);
  if (rc != XPCOM.NS_OK) {
    browser.dispose ();
    error (rc);
  }
  if (result[0] == 0) error (XPCOM.NS_ERROR_NO_INTERFACE);

  Point size = delegate.getNativeSize (width, height);
  delegate.setSize (embedHandle, size.x, size.y);
  nsIBaseWindow baseWindow = new nsIBaseWindow (result[0]);
  rc = baseWindow.SetPositionAndSize (0, 0, size.x, size.y, 1);
  if (rc != XPCOM.NS_OK) error (rc);
  baseWindow.Release ();
}

相关文章