Search in sources :

Example 6 with ColProperties

use of net.heartsome.cat.ts.ui.plugin.ColProperties in project translationstudio8 by heartsome.

the class ColumnTypeDialog method okPressed.

@Override
protected void okPressed() {
    if (!verifyColProperties()) {
        return;
    }
    for (int i = 0; i < size; i++) {
        ColProperties type = colTypes.get(i);
        String propLevel = arrCmbPropsLevel[i].getText();
        String lang = LocaleService.getLanguageCodeByLanguage(arrCmbLangs[i].getText());
        String propName = arrCmbPropsName[i].getText();
        String propType = arrCmbPropsType[i].getText();
        type.setColumnType(propLevel, lang, propName, propType);
    }
    close();
}
Also used : ColProperties(net.heartsome.cat.ts.ui.plugin.ColProperties)

Aggregations

ColProperties (net.heartsome.cat.ts.ui.plugin.ColProperties)6 TableColumn (org.eclipse.swt.widgets.TableColumn)2 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 Hashtable (java.util.Hashtable)1 Vector (java.util.Vector)1 TBXTemplateUtil (net.heartsome.cat.ts.ui.plugin.util.TBXTemplateUtil)1 ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)1 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Combo (org.eclipse.swt.widgets.Combo)1 Composite (org.eclipse.swt.widgets.Composite)1 Label (org.eclipse.swt.widgets.Label)1