MCPcopy
hub / github.com/angryip/ipscan / setText

Method setText

src/net/azib/ipscan/gui/InputDialog.java:71–78  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

69 }
70
71 private void setText(String text) {
72 text = text != null ? text : "";
73 this.text.setText(text);
74 this.text.pack();
75 this.text.setLayoutData(LayoutHelper.formData(Math.max(this.text.getSize().x, 310), SWT.DEFAULT, new FormAttachment(0), null, new FormAttachment(messageLabel), null));
76 this.text.setFocus();
77 this.text.setSelection(0, text.length());
78 }
79
80 /**
81 * Opens the dialog and waits for user to input the data.

Callers 15

openMethod · 0.95
initControlsAreaMethod · 0.80
addMenuItemMethod · 0.80
updateColumnNamesMethod · 0.80
handleEventMethod · 0.80
populateShellMethod · 0.80
handleEventMethod · 0.80
handleEventMethod · 0.80
handleEventMethod · 0.80
createCloseButtonMethod · 0.80
populateShellMethod · 0.80

Calls 1

formDataMethod · 0.95

Tested by

no test coverage detected