Tabnine Logo
org.eclipse.swt.widgets
Code IndexAdd Tabnine to your IDE (free)

How to use org.eclipse.swt.widgets

Best Java code snippets using org.eclipse.swt.widgets (Showing top 20 results out of 2,538)

origin: pentaho/pentaho-kettle

 private void enableFields() {

  wLimitRowsNumber.setEnabled( wLimitRows.getSelection() );
  wlLimitRowsNumber.setEnabled( wLimitRows.getSelection() );

 }
}
origin: pentaho/pentaho-kettle

private void setAddDateBeforeExtension() {
 wlAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 wAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 if ( !wAddDate.getSelection() && !wAddTime.getSelection() && !wSpecifyFormat.getSelection() ) {
  wAddDateBeforeExtension.setSelection( false );
 }
}
origin: pentaho/pentaho-kettle

 @Override
 public void modifyText( ModifyEvent arg0 ) {
  // Now set the combo's
  shell.getDisplay().asyncExec( new Runnable() {
   @Override
   public void run() {
    setComboBoxes();
   }
  } );
 }
} );
origin: pentaho/pentaho-kettle

protected void setComboBoxes() {
 shell.getDisplay().syncExec( new Runnable() {
  public void run() {
   if ( inputFields != null ) {
    String[] fieldNames = inputFields.getFieldNames();
    wParent.setItems( fieldNames );
    wChild.setItems( fieldNames );
   }
  }
 } );
}
origin: pentaho/pentaho-kettle

public void setFlags() {
 wbDirectory.setEnabled( false );
 // wDirectory.setEnabled(rep!=null);
 wlDirectory.setEnabled( false );
 // DatabaseMeta dbMeta = jobMeta.findDatabase(wLogconnection.getText());
 // wbLogconnection.setEnabled(dbMeta!=null);
 // wlLogSizeLimit.setEnabled(wLogfield.getSelection());
 // wLogSizeLimit.setEnabled(wLogfield.getSelection());
}
origin: pentaho/pentaho-kettle

public void remove( int[] index ) {
 table.remove( index );
 if ( table.getItemCount() == 0 ) {
  new TableItem( table, SWT.NONE );
 }
}
origin: pentaho/pentaho-kettle

private void setCompositeEnabled( Composite comp, boolean enabled ) {
 // TODO: move to TableView?
 comp.setEnabled( enabled );
 for ( Control child : comp.getChildren() ) {
  child.setEnabled( enabled );
 }
}
origin: pentaho/pentaho-kettle

public void run() {
 if ( !shell.isDisposed() && !canvas.isDisposed() ) {
  updateCanvas();
 }
}
origin: pentaho/pentaho-kettle

 @Override public void handleEvent( final Event event ) {
  lsCancel.handleEvent( event );
  shell.dispose();
 }
};
origin: pentaho/pentaho-kettle

 public void dragSetData( DragSourceEvent event ) {
  // Set the data to be the first selected item's data
  event.data = wTree.getSelection()[0].getData();
 }
} );
origin: pentaho/pentaho-kettle

 public void handleEvent( Event e ) {
  Rectangle rect = composite.getClientArea();
  text.setBounds( rect.x + inset, rect.y + inset, rect.width - inset * 2, rect.height - inset * 2 );
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void keyPressed( KeyEvent e ) {
  if ( e.character == SWT.CR ) {
   wLaunch.notifyListeners( SWT.Selection, new Event() );
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public void widgetSelected( SelectionEvent e ) {
  offsety = -sbVertical.getSelection();
  widget.redraw();
 }
} );
origin: pentaho/pentaho-kettle

 public void widgetSelected( SelectionEvent se ) {
  Slider sl = (Slider) se.widget;
  scale = sl.getSelection();
  wCanvas.redraw();
 }
} );
origin: pentaho/pentaho-kettle

private void setAddDateBeforeExtension() {
 wlAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 wAddDateBeforeExtension.setEnabled( wAddDate.getSelection()
  || wAddTime.getSelection() || wSpecifyFormat.getSelection() );
 if ( !wAddDate.getSelection() && !wAddTime.getSelection() && !wSpecifyFormat.getSelection() ) {
  wAddDateBeforeExtension.setSelection( false );
 }
}
origin: pentaho/pentaho-kettle

 public void modifyText( ModifyEvent arg0 ) {
  // Now set the combo's
  shell.getDisplay().asyncExec( new Runnable() {
   public void run() {
    setComboBoxes();
   }
  } );
 }
} );
origin: pentaho/pentaho-kettle

 public void handleEvent( Event e ) {
  Rectangle rect = composite.getClientArea();
  text.setBounds( rect.x + inset, rect.y + inset, rect.width - inset * 2, rect.height - inset * 2 );
 }
} );
origin: pentaho/pentaho-kettle

private void setAddMovedDateBeforeExtension() {
 wlAddMovedDateBeforeExtension.setEnabled( wAddMovedDate.getSelection()
  || wAddMovedTime.getSelection() || wSpecifyMoveFormat.getSelection() );
 wAddMovedDateBeforeExtension.setEnabled( wAddMovedDate.getSelection()
  || wAddMovedTime.getSelection() || wSpecifyMoveFormat.getSelection() );
 if ( !wAddMovedDate.getSelection() && !wAddMovedTime.getSelection() && !wSpecifyMoveFormat.getSelection() ) {
  wAddMovedDateBeforeExtension.setSelection( false );
 }
}
origin: pentaho/pentaho-kettle

 public void handleEvent( Event e ) {
  Rectangle rect = composite.getClientArea();
  text.setBounds( rect.x + inset, rect.y + inset, rect.width - inset * 2, rect.height - inset * 2 );
 }
} );
origin: pentaho/pentaho-kettle

protected void setFlags() {
 // In case there are newlines in fields, we can't load data in parallel
 //
 boolean parallelPossible = !wNewlinePossible.getSelection();
 wlRunningInParallel.setEnabled( parallelPossible );
 wRunningInParallel.setEnabled( parallelPossible );
 if ( !parallelPossible ) {
  wRunningInParallel.setSelection( false );
 }
}
org.eclipse.swt.widgets

Most used classes

  • Display
    Instances of this class are responsible for managing the connection between SWT and the underlying o
  • Composite
    Instances of this class are controls which are capable of containing other controls.Styles:NO_BACKGR
  • Label
    Empty stub Java type that is used ONLY by the DSL when running in standalone mode, i.e., through the
  • Shell
    Instances of this class represent the "windows" which the desktop or "window manager" is managing. I
  • Text
    Instances of this class are selectable user interface objects that allow the user to enter and modif
  • Control,
  • Table,
  • Combo,
  • Group,
  • TableItem,
  • Tree,
  • TableColumn,
  • Widget,
  • Menu,
  • FileDialog,
  • TreeItem,
  • MenuItem,
  • List,
  • Link
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now