blob: 4291046c4d2024482ebbb88adee0746604932f0b [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*/
package org.eclipse.osbp.xtext.reportdsl.common.attribute;
import org.eclipse.birt.report.model.api.ReportItemHandle;
import org.eclipse.birt.report.model.api.activity.SemanticException;
public class AltText extends ItemText {
public AltText(String value) {
super(value);
}
@Override
public void apply(ReportItemHandle item) {
try {
item.setAltTextKey((String) fValue);
} catch (SemanticException e) {
e.printStackTrace();
}
}
}