TableItem societyNameItem = getTableItemForName(COUGAAR_SOCIETY_NAME); if (societyNameItem == null) { societyNameItem = new TableItem(this.fParametersTable, SWT.NONE); } String societyFile = fSocietyXMLFileText.getText(); if (societyFile.indexOf("/") > 0) { societyFile = societyFile .substring(societyFile.lastIndexOf("/") + 1); } else { societyFile = societyFile .substring(societyFile.lastIndexOf("\\") + 1); } String[] nameValuePair = new String[] { COUGAAR_SOCIETY_NAME, societyFile}; societyNameItem.setText(nameValuePair);
TableItem societyNameItem = getTableItemForName(COUGAAR_SOCIETY_NAME); if (societyNameItem == null) { societyNameItem = new TableItem(this.fParametersTable, SWT.NONE);
    protected void setCougaarSocietyFileName() {        TableItem societyNameItem = getTableItemForName(COUGAAR_SOCIETY_NAME);        if (societyNameItem == null) {            societyNameItem = new TableItem(this.fParametersTable, SWT.NONE);        }        String societyFile = fSocietyXMLFileText.getText();        if (societyFile.indexOf("/") > 0) {            societyFile = societyFile                    .substring(societyFile.lastIndexOf("/") + 1);        } else {            societyFile = societyFile                    .substring(societyFile.lastIndexOf("\\") + 1);        }        String[] nameValuePair = new String[] { COUGAAR_SOCIETY_NAME,                societyFile};        societyNameItem.setText(nameValuePair);    }