Text.dispose
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.eclipse.swt.widgets.Text.dispose(Showing top 15 results out of 315)

  • Common ways to obtain Text
private void myMethod () {
Text t =
  • Composite composite;new Text(composite, int1)
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

 @Override
 public void focusLost( FocusEvent arg0 ) {
  // Focus is lost: apply changes
  String newname = text.getText();
  if ( renameDirectory( repdir, name, newname ) ) {
   ti.setText( newname );
  }
  text.dispose();
 }
} );
origin: cbeust/testng-eclipse

public void dispose() {
 m_outputdir.dispose();
 m_absolutePath.dispose();
 m_disabledDefaultListeners.dispose();
 m_xmlTemplateFile.dispose();
 m_preDefinedListeners.dispose();
 
 super.dispose();
}
origin: caoxinyu/RedisClient

  @Override
  public void widgetSelected(SelectionEvent e) {
    if (currentText) {
      imageType.setEnabled(true);
      textType.setEnabled(false);
      if (text != null && !text.isDisposed()) {
        text.setVisible(false);
        text.dispose();
      }
      label = new Label(grpValue, SWT.NONE);
      label.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
      label.setAlignment(SWT.CENTER);
      tranformImage(imageType, label);
      currentText = false;
    }
  }
});
origin: caoxinyu/RedisClient

  public void handleEvent(final Event e) {
    switch (e.type) {
    case SWT.FocusOut:
      item.setText(column, text.getText());
      text.dispose();
    
      break;
    case SWT.Traverse:
      switch (e.detail) {
      case SWT.TRAVERSE_RETURN:
        item.setText(column, text.getText());
        // FALL THROUGH
      case SWT.TRAVERSE_ESCAPE:
        text.dispose();
        e.doit = false;
      }
      break;
    }
  }
};
origin: pentaho/pentaho-kettle

 @Override
 public void keyPressed( KeyEvent e ) {
  // ESC --> Don't change tree item...
  if ( e.keyCode == SWT.ESC ) {
   text.dispose();
  }
  // ENTER --> Save changes...
  if ( e.character == SWT.CR ) {
   if ( ti.getText().equals( name ) ) { // Only if the name wasn't changed already.
    String newname = text.getText();
    if ( renameDatabase( name, newname ) ) {
     ti.setText( newname );
    }
    text.dispose();
   }
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void keyPressed( KeyEvent e ) {
  // ESC --> Don't change tree item...
  if ( e.keyCode == SWT.ESC ) {
   text.dispose();
  }
  // ENTER --> Save changes...
  if ( e.character == SWT.CR ) {
   String newname = text.getText();
   if ( renameJob( name, repdir, newname ) ) {
    ti.setText( newname );
   }
   text.dispose();
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void focusLost( FocusEvent arg0 ) {
  // Focus is lost: apply changes
  String newname = text.getText();
  if ( renameJob( fname, newname, frepdir ) ) {
   ti.setText( newname );
  }
  text.dispose();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void keyPressed( KeyEvent e ) {
  // ESC --> Don't change tree item...
  if ( e.keyCode == SWT.ESC ) {
   text.dispose();
  }
  // ENTER --> Save changes...
  if ( e.character == SWT.CR ) {
   String newname = text.getText();
   if ( renameUser( name, newname ) ) {
    ti.setText( newname );
   }
   text.dispose();
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void focusLost( FocusEvent arg0 ) {
  // Focus is lost: apply changes
  String newname = text.getText();
  if ( renameUser( name, newname ) ) {
   ti.setText( newname );
  }
  text.dispose();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void keyPressed( KeyEvent e ) {
  // ESC --> Don't change tree item...
  if ( e.keyCode == SWT.ESC ) {
   text.dispose();
  }
  // ENTER --> Save changes...
  if ( e.character == SWT.CR ) {
   String newname = text.getText();
   if ( renameDirectory( repdir, name, newname ) ) {
    ti.setText( newname );
   }
   text.dispose();
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void focusLost( FocusEvent arg0 ) {
  // Focus is lost: apply changes.
  String newname = text.getText();
  if ( renameTransformation( fname, newname, frepdir ) ) {
   ti.setText( newname );
  }
  text.dispose();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void focusLost( FocusEvent arg0 ) {
  // Focus is lost: apply changes
  String newname = text.getText();
  if ( renameJob( name, repdir, newname ) ) {
   ti.setText( newname );
  }
  text.dispose();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void keyPressed( KeyEvent e ) {
  // ESC --> Don't change tree item...
  if ( e.keyCode == SWT.ESC ) {
   text.dispose();
  }
  // ENTER --> Save changes...
  if ( e.character == SWT.CR ) {
   String newname = text.getText();
   if ( renameJob( fname, newname, frepdir ) ) {
    ti.setText( newname );
   }
   text.dispose();
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void focusLost( FocusEvent arg0 ) {
  // Focus is lost: apply changes
  String newname = text.getText();
  if ( renameDatabase( name, newname ) ) {
   ti.setText( newname );
  }
  text.dispose();
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void keyPressed( KeyEvent e ) {
  // ESC --> Don't change tree item...
  if ( e.keyCode == SWT.ESC ) {
   text.dispose();
  }
  // ENTER --> Save changes...
  if ( e.character == SWT.CR ) {
   String newname = text.getText();
   if ( renameTransformation( fname, newname, frepdir ) ) {
    ti.setText( newname );
   }
   text.dispose();
  }
 }
} );
org.eclipse.swt.widgetsTextdispose

Popular methods of Text

  • <init>
  • getText
  • setLayoutData
  • setText
  • addModifyListener
  • setFocus
  • addSelectionListener
  • selectAll
  • setEnabled
  • setEditable
  • setToolTipText
  • setFont
  • setToolTipText,
  • setFont,
  • addListener,
  • insert,
  • setBackground,
  • setSelection,
  • setTextLimit,
  • addFocusListener,
  • addKeyListener,
  • isDisposed

Popular classes and methods

  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
    Returns a new BigDecimal instance with the specified scale. If the new scale is greater than the old
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFileChooser (javax.swing)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)