Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.DeviceData


    {
        return UIThreadRunnable.syncExec( bot.getDisplay(), new IntResult()
        {
            public Integer run()
            {
                DeviceData info = bot.getDisplay().getDeviceData();
                if ( !info.tracking )
                {
                    fail( "To run this test options 'org.eclipse.ui/debug' and 'org.eclipse.ui/trace/graphics' must be true." );
                }
                return info.objects.length;
View Full Code Here


        final SWTBot bot = new SWTBot();
        return UIThreadRunnable.syncExec( bot.getDisplay(), new IntResult()
        {
            public Integer run()
            {
                DeviceData info = bot.getDisplay().getDeviceData();
                if ( !info.tracking )
                {
                    fail( "To run this test options 'org.eclipse.ui/debug' and 'org.eclipse.ui/trace/graphics' must be true." );
                }
                return info.objects.length;
View Full Code Here

    {
        return UIThreadRunnable.syncExec( bot.getDisplay(), new IntResult()
        {
            public int run()
            {
                DeviceData info = bot.getDisplay().getDeviceData();
                if ( !info.tracking )
                {
                    fail( "To run this test options 'org.eclipse.ui/debug' and 'org.eclipse.ui/trace/graphics' must be true." );
                }
                return info.objects.length;
View Full Code Here

//    Error[] oldErrors = new Error[0];
    Object[] objects = new Object[0];
    Error[] errors = new Error[0];

    public static void main(String[] args) {
        DeviceData data = new DeviceData();
        data.tracking = true;
        Display display = new Display(data);
        GDSleak sleak = new GDSleak();
        sleak.open();
View Full Code Here

        }
        label.setText(string);
    }

    void refreshDifference() {
        DeviceData info = display.getDeviceData();
        if (!info.tracking) {
            MessageBox dialog = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);
            dialog.setText(shell.getText());
            dialog.setMessage("Warning: Device is not tracking resource allocation");
            dialog.open();
View Full Code Here

    // create the display
    Display newDisplay = Display.getCurrent();
    if(newDisplay == null) {
      if (Policy.DEBUG_SWT_GRAPHICS || Policy.DEBUG_SWT_DEBUG) {
        DeviceData data = new DeviceData();
        if (Policy.DEBUG_SWT_GRAPHICS) {
          data.tracking = true;
        }
        if (Policy.DEBUG_SWT_DEBUG) {
          data.debug = true;
View Full Code Here

        final SWTBot bot = new SWTBot();
        return UIThreadRunnable.syncExec( bot.getDisplay(), new IntResult()
        {
            public Integer run()
            {
                DeviceData info = bot.getDisplay().getDeviceData();
                if ( !info.tracking )
                {
                    fail( "To run this test options 'org.eclipse.ui/debug' and 'org.eclipse.ui/trace/graphics' must be true." );
                }
                return info.objects.length;
View Full Code Here

    {
        return UIThreadRunnable.syncExec( bot.getDisplay(), new IntResult()
        {
            public int run()
            {
                DeviceData info = bot.getDisplay().getDeviceData();
                if ( !info.tracking )
                {
                    fail( "To run this test options 'org.eclipse.ui/debug' and 'org.eclipse.ui/trace/graphics' must be true." );
                }
                return info.objects.length;
View Full Code Here

          display = null;
          NSSystemPropertySWT.INTERFACE_INPROCESS_USEEXTERNALSWTDISPLAY.set("false");
        }
      }
      if(display == null) {
        DeviceData data = new DeviceData();
        data.debug = Boolean.parseBoolean(NSSystemPropertySWT.SWT_DEVICEDATA_DEBUG.get());
        data.tracking = Boolean.parseBoolean(NSSystemPropertySWT.SWT_DEVICEDATA_TRACKING.get());
        display = new Display(data);
      }
      display.addListener(SWT.Close, new Listener() {
View Full Code Here

//        });
//      } catch(Exception e) {
//        e.printStackTrace();
//      }
      Device.DEBUG = Boolean.parseBoolean(NSSystemPropertySWT.SWT_DEVICE_DEBUG.get());
      DeviceData data = new DeviceData();
      data.debug = Boolean.parseBoolean(NSSystemPropertySWT.SWT_DEVICEDATA_DEBUG.get());
      data.tracking = Boolean.parseBoolean(NSSystemPropertySWT.SWT_DEVICEDATA_TRACKING.get());
      display = new Display(data);
      display.addListener(SWT.Close, new Listener() {
        public void handleEvent(Event event) {
View Full Code Here

TOP

Related Classes of org.eclipse.swt.graphics.DeviceData

Copyright © 2018 www.massapicom. 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.