Package org.eclipse.swt.graphics

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


    } catch (SWTError e) {
      showErrorDialog(ImageAnalyzer.bundle.getString("Saving_lc"), filename, e);
    } finally {
      shell.setCursor(null);
      imageCanvas.setCursor(crossCursor);
      waitCursor.dispose();
    }
  }

  /*
   * Called when the Next button is pressed. Display the next image in a multi-image file.
View Full Code Here


      }
    if (stockCursors != null) {
      for (int i = 0; i < stockCursors.length; ++i) {
        final Cursor cursor = stockCursors[i];
        if (cursor != null)
          cursor.dispose();
      }
      stockCursors = null;
    }
  }
View Full Code Here

        }
        if (monitor != null) {
            monitor.done();
        }

        wait_cursor.dispose();
        composite.setCursor(null);
    }

    private DescribeSObjectResult getCachedDescribe(String componentType) throws ForceConnectionException,
            ForceProjectException, ForceRemoteException {
View Full Code Here

            }
        } catch (Exception e) {
            Utils.openError(e, MESSAGE_COULD_NOT_FETCH_META_DATA, MESSAGE_SEE_DETAILS);
        }

        wait_cursor.dispose();
        schemaEditorComposite.setCursor(null);
    }

    private void clearDescribeCache(IProject project) throws ForceConnectionException, ForceRemoteException, ForceProjectException {
        // Refresh the DescribeSObject cache and also the DescribeObjectRegistry
View Full Code Here

    toolbar.setCursor(handCursor);
    // Cursor needs to be explicitly disposed
    toolbar.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        if ((handCursor != null) && (handCursor.isDisposed() == false)) {
          handCursor.dispose();
        }
      }
    });
    PackageExtendAction fExtendAction =
      new PackageExtendAction(
View Full Code Here

    toolbar.setCursor(handCursor);
    // Cursor needs to be explicitly disposed
    toolbar.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        if ((handCursor != null) && (handCursor.isDisposed() == false)) {
          handCursor.dispose();
        }
      }
    });

    toolBarManager.add(fAddClassMappingAction);   
View Full Code Here

        {
            public void widgetDisposed(DisposeEvent e)
            {
                if ((handCursor != null) && (handCursor.isDisposed() == false))
                {
                    handCursor.dispose();
                }
            }
        });

        section.setTextClient(toolbar);
View Full Code Here

                    Messages.ERROR_ADDING_NATURE + ":\n"
                            + SelectionUtil.getStatusMessages(e));
        } finally
        {
            window.getShell().setCursor(null);
            waitCursor.dispose();
        }
    }

    /*
     * (non-Javadoc)
 
View Full Code Here

    toolBar.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    final Cursor cursor = new Cursor(parent.getDisplay(), SWT.CURSOR_HAND);
    toolBar.setCursor(cursor);
    toolBar.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        cursor.dispose();
      }
    });   
        ToolItem item = new ToolItem(toolBar, SWT.NONE);
    item.setImage(image);
    item.setToolTipText(JFaceResources.getString("helpToolTip")); //$NON-NLS-1$
View Full Code Here

    section.setTextClient(toolbar);

    toolbar.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        if (handCursor != null && !handCursor.isDisposed()) {
          handCursor.dispose();
        }
      }
    });

    data = new GridData(GridData.FILL_BOTH);
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.