* Tests if the current workbench selection is a suitable container to use.
*/
private void initialize() {
m_elements = Utils.getSelectedJavaElements();
if (m_elements.size() > 0) {
JavaElement sel = m_elements.get(0);
if (sel.sourceFolder != null) {
m_sourceFolderText.setText(sel.sourceFolder);
}
if (sel.getPackageName() != null) {
m_packageNameText.setText(sel.getPackageName());
}
String className = StringUtils.isEmptyString(sel.getClassName())
? "NewTest" : sel.getClassName() + "Test";
m_classNameText.setText(className);
}
}