Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.MouseListener


    highlighted = false;
    this.canHighlight = canHighlightLink;

    link.setBackground(parent.getBackground());
    link.addMouseListener(new MouseListener() {

      @Override
      public void mouseDoubleClick(MouseEvent e) {
      }
View Full Code Here


   * @param style the swt stype
   */
  public GSSGraph(Composite parent, int style) {
    super(parent, style);
   
    this.addMouseListener(new MouseListener() {

      @Override
      public void mouseUp(MouseEvent e) {
      }

View Full Code Here

    highlighted = false;
    this.canHighlight = canHighlightLink;

    link.setBackground(parent.getBackground());
    link.addMouseListener(new MouseListener() {

      @Override
      public void mouseDoubleClick(MouseEvent e) {
      }
View Full Code Here

      exceptionDialog = new ExceptionDialog(parent.getShell());
      controlDialog = new ControlDialog(parent.getShell(), client);
      connectionButton = new Label(parent, SWT.NONE);
      connectionButton.setCursor(handCursor);
      // 按钮点击事件
      connectionButton.addMouseListener(new MouseListener(){
        public void mouseDoubleClick(MouseEvent event) {}
        public void mouseDown(MouseEvent event) {}
        public void mouseUp(MouseEvent event) {
          controlDialog.setVisible(true);
        }
View Full Code Here

//    StyledTextHelper.setTopMargin(styledTextHistory,5);
//    StyledTextHelper.setRightMargin(styledTextHistory,5);
    final Cursor defaultCursor = new Cursor(topComposite.getDisplay(),SWT.CURSOR_ARROW);
    final Cursor handCursor = new Cursor(topComposite.getDisplay(),SWT.CURSOR_HAND);
    styledTextHistory.setCursor(defaultCursor);
    styledTextHistory.addMouseListener(new MouseListener() {
      public void mouseUp(MouseEvent e) {
      }
      public void mouseDown(MouseEvent e) {
        Word word = getWordTypeOfEvent(e);
        if(word != null) {
View Full Code Here

    entrySec.setData("label",label);
    entrySec.setLayoutData(new GridData(SWT.FILL,SWT.TOP,true,false));
    entrySec.setText(entry == null ? jid : (entry.getName() == null ? entry.getUser() : entry.getName()));
    if(entry != null)
      entrySec.setDescription(entry.getUser() + ": " + roster.getPresence(entry.getUser()));
    label.addMouseListener(new MouseListener(){
      public void mouseDoubleClick(MouseEvent e) {
      }

      public void mouseDown(MouseEvent e) {
      }
View Full Code Here

    laTotalTime = new Label(container, SWT.NONE);
    laTotalTime.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true));
    laTotalTime.setText(Messages.getString("PlayerView.DefaultTimeInfo")); //$NON-NLS-1$
   
    scSlider.addMouseListener(new MouseListener() {
      public void mouseDown(MouseEvent e) {
        _boSliderMove = true;
      }
     
      public void mouseUp(MouseEvent e) {
View Full Code Here

      public void widgetSelected(SelectionEvent arg0) {
        new SeekAction(Controller.getInstance().getPreferenceStore().getInt(PreferenceConstants.PLAYERVIEW_SEEK_STEP)).run();
      }
    });
   
    scSlider.addMouseListener(new MouseListener() {
      public void mouseDown(MouseEvent e) {
        _boSliderMove = true;
      }
     
      public void mouseUp(MouseEvent e) {
View Full Code Here

        // not implemented
      }

    });

    getSourceViewer().getTextWidget().addMouseListener(new MouseListener() {
      public void mouseDown(MouseEvent e) {
        int newCaretOffset = getSourceViewer().getTextWidget().getCaretOffset();

        if (newCaretOffset != mCursorPosition) {
          mCursorPosition = newCaretOffset;
View Full Code Here

        // not implemented
      }

    });

    getSourceViewer().getTextWidget().addMouseListener(new MouseListener() {
      public void mouseDown(MouseEvent e) {
        int newCaretOffset = getSourceViewer().getTextWidget().getCaretOffset();

        if (newCaretOffset != mCursorPosition) {
          mCursorPosition = newCaretOffset;
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.MouseListener

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.