Examples of dispose()


Examples of org.eclipse.swt.graphics.Region.dispose()

      if (width > 0) {
        Region region = new Region();
        gc.getClipping(region);
        region.add(event.x, event.y, width, event.height);
        gc.setClipping(region);
        region.dispose();
      }
    }
  }

  /*
 
View Full Code Here

Examples of org.eclipse.swt.graphics.Resource.dispose()

  private void dispose(final Map resources) {
    for (final Iterator iter = resources.values().iterator(); iter
        .hasNext();) {
      final Resource resource = (Resource) iter.next();
      if (resource != null) {
        resource.dispose();
      }
    }
    resources.clear();
  }
View Full Code Here

Examples of org.eclipse.swt.graphics.TextLayout.dispose()

        min = max;
      }
    }
    String result = mid == 0 ? t : t.substring(0, mid) + ELLIPSIS
        + t.substring(validateOffset(layout, l - mid), l);
    layout.dispose();
    return result;
  }

  private static final String ELLIPSIS = "...";
View Full Code Here

Examples of org.eclipse.swt.graphics.Transform.dispose()

                String s = activeTopBar.getShortTitle();
                Point size = e.gc.textExtent(s);
                e.gc.drawText(s, -size.x, 0, true);
                //e.gc.drawText(s, 0,0, true);
                transform.dispose();
              } catch (Exception ex) {
                // setTransform can trhow a ERROR_NO_GRAPHICS_LIBRARY error
                // no use trying to draw.. it would look weird
              }
              //font.dispose();
View Full Code Here

Examples of org.eclipse.swt.internal.Callback.dispose()

  * to avoid deadlocks when gdk_threads_init() is called by native
  * code outside of SWT (i.e AWT, etc). It ensures that the current
  * thread leaves the GTK lock acquired by the function above.
  */
  OS.gdk_threads_leave();
  printerCallback.dispose ();
  return printerList;
}

static long /*int*/ GtkPrinterFunc_List (long /*int*/ printer, long /*int*/ user_data) {
  int length = printerList.length;
View Full Code Here

Examples of org.eclipse.swt.internal.mozilla.XPCOMObject.dispose()

    // get old web progress listener instance and dispose
    Field f_Mozilla_webProgressListener = mozClass.getDeclaredField("webProgressListener");
    f_Mozilla_webProgressListener.setAccessible(true);
    final XPCOMObject oldWebProgressListener =
        (XPCOMObject) f_Mozilla_webProgressListener.get(m_webBrowser);
    oldWebProgressListener.dispose();
    // get methods which needed to delegate to
    final Method m_Mozilla_QueryInterface =
        mozClass.getDeclaredMethod("QueryInterface", new Class[]{int.class, int.class});
    final Method m_Mozilla_AddRef = mozClass.getDeclaredMethod("AddRef", new Class[0]);
    final Method m_Mozilla_Release = mozClass.getDeclaredMethod("Release", new Class[0]);
View Full Code Here

Examples of org.eclipse.swt.ole.win32.OleAutomation.dispose()

      throw new HResultException(sb.toString());
    } finally {
      for (int i = 0; i < javaParams.length; i++) {
        if (javaParams[i] instanceof OleAutomation) {
          OleAutomation tmp = (OleAutomation) javaParams[i];
          tmp.dispose();
        }
      }
    }
    return SwtOleGlue.convertObjectToVariant(cl, ora, method.getReturnType(), result);
  }
View Full Code Here

Examples of org.eclipse.swt.ole.win32.OleFrame.dispose()

        }
      };
      site.addEventListener(application, IID_DWebBrowserEvents2, DocumentComplete, listener);
    } catch(SWTException e) {
      e.printStackTrace();
      frame.dispose();
      return null;
    }
    site.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
    return frame;
  }
View Full Code Here

Examples of org.eclipse.swt.ole.win32.Variant.dispose()

        if (vArgs[i] != null) {
          vArgs[i].dispose();
        }
      }
      if (result != null) {
        result.dispose();
      }
    }
    if (ex != null) {
      // Set up an exception for IE to throw.
      //
View Full Code Here

Examples of org.eclipse.swt.opengl.GLCanvas.dispose()

        while( !shell.isDisposed() ) {
            if( !display.readAndDispatch() )
                display.sleep();
        }

        glcanvas.dispose();
        display.dispose();
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.