@Override public String getText() { String result = editor.getText(); return result; }
@Override public String getText() { return editor.getText(); }
@Override public boolean saveAs(File file) { try { FileUtils.write(file, editor.getText(), "utf-8"); isModified = false; return true; } catch (IOException eee) { if (log.isWarnEnabled()) { log.warn("Can't save file", eee); } } return false; }
@Override public boolean saveAs(File file) { try { FileUtil.writeString(file, editor.getText(), "utf-8"); isModified = false; return true; } catch (IOException eee) { if (log.isWarnEnabled()) { log.warn("Can't save file", eee); } } return false; }
/** * Gets the value out of the connector. * <p> * {@inheritDoc} */ @Override protected Object protectedGetConnecteeValue() { return getConnectedJComponent().getText(); }
/** * {@inheritDoc} */ public Object getCellEditorValue() { return getBasicObject().getText(); }
/** * Gets the value out of the connector. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { return getConnectedJComponent().getText(); }
@Override public void focusLost(@SuppressWarnings("unused") FocusEvent e) { notifyULCValueChange(getBasicObject().getText()); } });
@Override public void focusLost(@SuppressWarnings("unused") FocusEvent e) { notifyULCValueChange(getBasicObject().getText()); } });
/** * {@inheritDoc} */ public Object getCellEditorValue() { return getBasicObject().getText(); }
public void focusLost(FocusEvent e) { processor.setScript(scriptText.getText()); } });
public void actionPerformed(ActionEvent ae) { processor.setScript(scriptText.getText()); processor.setLanguage((String) scriptEngineSelect.getSelectedItem()); } });
/** * Copies the text on the specified line into a segment. If the line * is invalid, the segment will contain a null string. * @param lineIndex The line */ public final void getLineText(int lineIndex, Segment segment) { int start = getLineStartOffset(lineIndex); getText(start,getLineEndOffset(lineIndex) - start - 1,segment); }
/** * Returns the text on the specified line. * @param lineIndex The line * @return The text, or null if the line is invalid */ public final String getLineText(int lineIndex) { int start = getLineStartOffset(lineIndex); return getText(start,getLineEndOffset(lineIndex) - start - 1); }
public void actionPerformed(ActionEvent e) { try { Interpreter interpreter = new Interpreter(); interpreter.eval(scriptText.getText()); } catch (EvalError e1) { e1.printStackTrace(); } } });
public void focusLost(FocusEvent event) { Object source = event.getSource(); if (source == scriptText) { processor.setScript(scriptText.getText());
rshellActivityConfigurationBean .setOutputSymanticTypes(outputSemanticTypes); rshellActivityConfigurationBean.setScript(scriptText.getText()); rshellActivityConfigurationBean .setInputPortDefinitions(inputBeanList);