Package org.eclipse.e4.xwt

Examples of org.eclipse.e4.xwt.XWTException


      switch (array[i]) {
      case '{':
        {
          Character character = separators.pop();
          if (character.charValue() != '}') {
            throw new XWTException("Syntax error is binding expression " + value + " at " + i);
          }
        }
        level --;
        break;
      case '[':
        {
          Character character = separators.pop();
          if (character.charValue() != '}') {
            throw new XWTException("Syntax error is binding expression " + value + " at " + i);
          }
        }
        level --;
        break;
      case '(':
        {
          Character character = separators.pop();
          if (character.charValue() != ')') {
            throw new XWTException("Syntax error is binding expression " + value + " at " + i);
          }
        }
        level --;
        break;
      case '}':
View Full Code Here


    String className = packageName.length() == 0 ? name : (packageName
        + "." + name);
    // try {
    Class<?> type = ClassLoaderUtil.loadClass(context, className);
    if (type == null) {
      throw new XWTException("Cannot load " + className);
    }
    metaclass = register(type, null);
    // There is no need to mapping a CLR class, since the ClassLoader will
    // be changed.
    nameRegister.remove(type.getSimpleName());
View Full Code Here

  protected IProperty getColumnsProperty() {
    if (columnsProperty == null) {
      IMetaclass metaclass = XWT.getMetaclass(viewer.getClass());
      columnsProperty = metaclass.findProperty(PropertiesConstants.PROPERTY_COLUMNS);
      if (columnsProperty == null) {
        throw new XWTException("Columns property is not found.");
      }
    }
    return columnsProperty;
  }
View Full Code Here

    return Object.class;
  }

  public void setIndex(Object parent, int index) {
    if (!(parent instanceof TableViewer)) {
      throw new XWTException("TableView is expected, not \"" + parent.getClass().getName() + "\"");
    }
    cellEditorHelper = new CellEditorHelper((TableViewer) parent, index);
  }
View Full Code Here

    if (targetName == null) {
      return target;
    }
    Object newTarget = UserData.findElementByName(target, targetName);
    if (newTarget == null) {
      throw new XWTException("Name element " + targetName + " is not found in animation.");
    }
    return super.findTarget(newTarget);
  }
View Full Code Here

    return Object.class;
  }

  public void setIndex(Object parent, int index) {
    if (!(parent instanceof TableViewer)) {
      throw new XWTException("TableView is expected, not \"" + parent.getClass().getName() + "\"");
    }
    cellEditorHelper = new CellEditorHelper((TableViewer) parent, index);
  }
View Full Code Here

  @Override
  protected void doStart(Timeline timeline, Object target) {
    Object widget = UserData.getWidget(target);
    if (!(widget instanceof Control)) {
      throw new XWTException(
          "The target of the animation is not a Control.");
    }
    timeline.addPropertyToInterpolate(getTargetProperty(), getFrom(), getTo());
  }
View Full Code Here

          if (propertyDescriptor.getName().equalsIgnoreCase(propertyName)) {
            return propertyDescriptor.getPropertyType();
          }
        }
      } catch (IntrospectionException e) {
        throw new XWTException(e);
      }
    }

    return null;
  }
View Full Code Here

    return JFACES_VIEWER.isAssignableFrom(obj.getClass());
  }

  public static Control getControl(Object obj) {
    if (!isViewer(obj))
      throw new XWTException("Expecting a JFaces viewer:" + obj);
    try {
      Method method = JFACES_VIEWER.getMethod("getControl");
      return (Control) method.invoke(obj);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

                  dataContext = ObjectUtil.resolveValue(dataContext, type, propertyType, dataContext);
                }
              }
            }
          } catch (Exception e) {
            throw new XWTException(e);
          }     
        }
      }
    }
    return dataContext;
View Full Code Here

TOP

Related Classes of org.eclipse.e4.xwt.XWTException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.