@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
if (audioModel instanceof AudioFolder) {
IPropertyDescriptor[] descriptors = new IPropertyDescriptor[2];
descriptors[0] = new TextPropertyDescriptor(FILE_NAME, Messages.AudioModelProperySource_file_name);
descriptors[1] = new TextPropertyDescriptor(PATH, Messages.AudioModelProperySource_path);
return descriptors;
}
if (audioModel instanceof AudioFile) {
IPropertyDescriptor[] descriptors = new IPropertyDescriptor[8];
descriptors[0] = new TextPropertyDescriptor(FILE_NAME, Messages.AudioModelProperySource_file_name);
descriptors[1] = new TextPropertyDescriptor(PATH, Messages.AudioModelProperySource_path);
descriptors[2] = new TextPropertyDescriptor(TAG, Messages.AudioModelProperySource_tag);
descriptors[3] = new TextPropertyDescriptor(CODEC, Messages.AudioModelProperySource_codes);
descriptors[4] = new TextPropertyDescriptor(BIT_RATE, Messages.AudioModelProperySource_bit_rate);
descriptors[5] = new TextPropertyDescriptor(FREQUENCY, Messages.AudioModelProperySource_frequency);
descriptors[6] = new TextPropertyDescriptor(LENGTH, Messages.AudioModelProperySource_length);
descriptors[7] = new TextPropertyDescriptor(MODIFIED, Messages.AudioModelProperySource_modified);
return descriptors;
}
return null;
}