public void widgetSelected( SelectionEvent se ) { Text t = wDelimiter.getTextWidget(); if ( t != null ) { t.insert( "\t" ); } } } );
public void widgetSelected( SelectionEvent se ) { Text t = wDelimiter.getTextWidget(); if ( t != null ) { t.insert( "\t" ); } } } );
public void widgetSelected( SelectionEvent se ) { Text t = wDelimiter.getTextWidget(); if ( t != null ) { t.insert( "\t" ); } } } );
@Override public void widgetSelected( SelectionEvent se ) { // wSeparator.insert("\t"); wSeparator.getTextWidget().insert( "\t" ); } } );
@Override public void widgetSelected( SelectionEvent se ) { Text t = wDelimiter.getTextWidget(); if ( t != null ) { t.insert( "\t" ); } } } );
public void widgetSelected( SelectionEvent se ) { // wSeparator.insert("\t"); wSeparator.getTextWidget().insert( "\t" ); } } );
public void widgetSelected( SelectionEvent se ) { wSeparator.getTextWidget().insert( "\t" ); } } );
public void widgetSelected( SelectionEvent se ) { wSeparator.getTextWidget().insert( "\t" ); } } );
@SuppressWarnings( "unchecked" ) public void widgetSelected( SelectionEvent e ) { Properties sp = System.getProperties(); Enumeration keys = sp.keys(); int size = sp.values().size(); String[] key = new String[size]; String[] val = new String[size]; String[] str = new String[size]; int i = 0; while ( keys.hasMoreElements() ) { key[i] = (String) keys.nextElement(); val[i] = sp.getProperty( key[i] ); str[i] = key[i] + " [" + val[i] + "]"; i++; } EnterSelectionDialog esd = new EnterSelectionDialog( shell, str, "Select an Environment Variable", "Select an Environment Variable" ); if ( esd.open() != null ) { int nr = esd.getSelectionNr(); wShape.insert( "%%" + key[nr] + "%%" ); wShape.setToolTipText( transMeta.environmentSubstitute( wShape.getText() ) ); } }
@SuppressWarnings( "unchecked" ) public void widgetSelected( SelectionEvent e ) { Properties sp = System.getProperties(); Enumeration keys = sp.keys(); int size = sp.values().size(); String[] key = new String[size]; String[] val = new String[size]; String[] str = new String[size]; int i = 0; while ( keys.hasMoreElements() ) { key[i] = (String) keys.nextElement(); val[i] = sp.getProperty( key[i] ); str[i] = key[i] + " [" + val[i] + "]"; i++; } EnterSelectionDialog esd = new EnterSelectionDialog( shell, str, "Select an Environment Variable", "Select an Environment Variable" ); if ( esd.open() != null ) { int nr = esd.getSelectionNr(); wDbf.insert( "${" + key[nr] + "}" ); wDbf.setToolTipText( transMeta.environmentSubstitute( wDbf.getText() ) ); } }
public void widgetSelected( SelectionEvent e ) { // Before focus is lost, we get the position of where the selected variable needs to be inserted. int position = 0; if ( getCaretPositionInterface != null ) { position = getCaretPositionInterface.getCaretPosition(); } String variableName = getVariableName( composite.getShell(), space ); if ( variableName != null ) { String var = "${" + variableName + "}"; if ( insertTextInterface == null ) { destination.insert( var ); e.doit = false; } else { insertTextInterface.insertText( var, position ); } } } };
( (Text) control ).insert( extra ); } else if ( control instanceof CCombo ) { CCombo combo = (CCombo) control;
destination.insert( var );
destination.insert( var );
@Override public void insertControlContents(Control control, String text, int cursorPosition) { Point selection = ((Text) control).getSelection(); ((Text) control).insert(text); // Insert will leave the cursor at the end of the inserted text. If this // is not what we wanted, reset the selection. if (cursorPosition < text.length()) { ((Text) control).setSelection(selection.x + cursorPosition, selection.x + cursorPosition); } }
public void insertControlContents(Control control, String text, int cursorPosition) { Point selection = ((Text) control).getSelection(); ((Text) control).insert(text); // Insert will leave the cursor at the end of the inserted text. If this // is not what we wanted, reset the selection. if (cursorPosition < text.length()) { ((Text) control).setSelection(selection.x + cursorPosition, selection.x + cursorPosition); } }
public void widgetSelected(SelectionEvent e) { StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell()); dialog.open(); String variable = dialog.getVariableExpression(); if (variable != null) { fPrgmArgumentsText.insert(variable); } } public void widgetDefaultSelected(SelectionEvent e) {
public void widgetSelected(SelectionEvent e) { StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell()); dialog.open(); String variable = dialog.getVariableExpression(); if (variable != null) { fVariableString.insert(variable); } } });
@Override public void widgetSelected(SelectionEvent e) { StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell()); dialog.open(); String variable = dialog.getVariableExpression(); if (variable != null) { fInputFileLocationText.insert(variable); } }
@Override public void widgetSelected(SelectionEvent e) { StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell()); int code = dialog.open(); if (code == IDialogConstants.OK_ID) { String variable = dialog.getVariableExpression(); if (variable != null) { text.insert(variable); } } } });