示例#1
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object, java.lang.Object)
  */
 @Override
 public void setPropertyValue(Object id, Object value) {
   if (PROPERTY_REF.equals(id)) {
     setRef(Objects.convertTo(value, String.class));
   } else {
     super.setPropertyValue(id, value);
   }
 }
示例#2
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object, java.lang.Object)
  */
 @Override
 public void setPropertyValue(Object id, Object value) {
   if (PROPERTY_EXPRESSION.equals(id)) {
     setExpression(Objects.convertTo(value, ExpressionDefinition.class));
   } else if (PROPERTY_COPY.equals(id)) {
     setCopy(Objects.convertTo(value, Boolean.class));
   } else {
     super.setPropertyValue(id, value);
   }
 }
示例#3
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.views.properties.IPropertySource\#setPropertyValue(java.lang.Object, java.lang.Object)
  */
 @Override
 public void setPropertyValue(Object id, Object value) {
   if (PROPERTY_TYPE.equals(id)) {
     setType(Objects.convertTo(value, String.class));
     return;
   }
   if (PROPERTY_CHARSET.equals(id)) {
     setCharset(Objects.convertTo(value, String.class));
     return;
   }
   super.setPropertyValue(id, value);
 }
示例#4
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object, java.lang.Object)
  */
 @Override
 public void setPropertyValue(Object id, Object value) {
   if (PROPERTY_EXPRESSION.equals(id)) {
     setExpression(Objects.convertTo(value, ExpressionDefinition.class));
   } else if (PROPERTY_EXECUTORSERVICEREF.equals(id)) {
     setExecutorServiceRef(Objects.convertTo(value, String.class));
   } else if (PROPERTY_ASYNCDELAYED.equals(id)) {
     setAsyncDelayed(Objects.convertTo(value, Boolean.class));
   } else if (PROPERTY_CALLERRUNSWHENREJECTED.equals(id)) {
     setCallerRunsWhenRejected(Objects.convertTo(value, Boolean.class));
   } else {
     super.setPropertyValue(id, value);
   }
 }
示例#5
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.views.properties.IPropertySource\#setPropertyValue(java.lang.Object, java.lang.Object)
  */
 @Override
 public void setPropertyValue(Object id, Object value) {
   if (PROPERTY_INHERITERRORHANDLER.equals(id)) {
     setInheritErrorHandler(Objects.convertTo(value, Boolean.class));
     return;
   }
   if (PROPERTY_REF.equals(id)) {
     setRef(Objects.convertTo(value, String.class));
     return;
   }
   if (PROPERTY_LOADBALANCERTYPE.equals(id)) {
     setLoadBalancerType(Objects.convertTo(value, LoadBalancerDefinition.class));
     return;
   }
   super.setPropertyValue(id, value);
 }