/*
* Created on 26 avr. 2005
*
*/
package org.openwfe.gpe.model;
import org.eclipse.ui.views.properties.IPropertyDescriptor;
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
* @author Christelle
*
*/
public class SaveElement extends NoChild{
public static String name = "Save";
private String toVariable = "";
protected static IPropertyDescriptor[] descriptors;
public static final String TOVARIABLE = "to-variable";
static {
descriptors = new IPropertyDescriptor[] {
new TextPropertyDescriptor(TOVARIABLE,"to-variable"),};
}
public String getName(){
return name;
}
public void setName(String s) {
name = s;
}
public String getToVariable(){
return toVariable;
}
public void setToVariable(String s){
toVariable = s;
firePropertyChange(TOVARIABLE, null, s);
}
public IPropertyDescriptor[] getPropertyDescriptors() {
return descriptors;
}
public Object getPropertyValue(Object propName) {
if(TOVARIABLE.equals(propName))
return getToVariable();
return super.getPropertyValue(propName);
}
public void setPropertyValue(Object id, Object value){
if(id == TOVARIABLE)
setToVariable((String)value);
}
}
|