Search in sources :

Example 1 with MacrosProperty

use of org.csstudio.opibuilder.properties.MacrosProperty in project yamcs-studio by yamcs.

the class OpenDisplayAction method configureProperties.

@Override
protected void configureProperties() {
    addProperty(new FilePathProperty(PROP_PATH, "File Path", WidgetPropertyCategory.Basic, new Path(""), new String[] { "opi" }, false) {

        @Override
        public Object readValueFromXML(Element propElement) {
            handleLegacySettings(propElement);
            return super.readValueFromXML(propElement);
        }
    });
    addProperty(new MacrosProperty(PROP_MACROS, "Macros", WidgetPropertyCategory.Basic, new MacrosInput(new LinkedHashMap<String, String>(), true)));
    addProperty(new ComboProperty(PROP_MODE, "Mode", WidgetPropertyCategory.Basic, DisplayMode.stringValues(), DisplayMode.REPLACE.ordinal()));
}
Also used : IPath(org.eclipse.core.runtime.IPath) Path(org.eclipse.core.runtime.Path) MacrosInput(org.csstudio.opibuilder.util.MacrosInput) ComboProperty(org.csstudio.opibuilder.properties.ComboProperty) Element(org.jdom.Element) FilePathProperty(org.csstudio.opibuilder.properties.FilePathProperty) MacrosProperty(org.csstudio.opibuilder.properties.MacrosProperty)

Example 2 with MacrosProperty

use of org.csstudio.opibuilder.properties.MacrosProperty in project yamcs-studio by yamcs.

the class AbstractContainerModel method configureBaseProperties.

@Override
protected void configureBaseProperties() {
    super.configureBaseProperties();
    addProperty(new MacrosProperty(PROP_MACROS, "Macros", WidgetPropertyCategory.Basic, new MacrosInput(new LinkedHashMap<String, String>(), true)));
}
Also used : MacrosInput(org.csstudio.opibuilder.util.MacrosInput) MacrosProperty(org.csstudio.opibuilder.properties.MacrosProperty)

Aggregations

MacrosProperty (org.csstudio.opibuilder.properties.MacrosProperty)2 MacrosInput (org.csstudio.opibuilder.util.MacrosInput)2 ComboProperty (org.csstudio.opibuilder.properties.ComboProperty)1 FilePathProperty (org.csstudio.opibuilder.properties.FilePathProperty)1 IPath (org.eclipse.core.runtime.IPath)1 Path (org.eclipse.core.runtime.Path)1 Element (org.jdom.Element)1