Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IAdapterManager.queryAdapter()


      adapted= manager.getAdapter(var, fTypeName);
    }
    // the adapted result is null but hasAdapter returned true check
    // if the adapter is loaded.
    if (adapted == null) {
      if (manager.queryAdapter(var, fTypeName) == IAdapterManager.NOT_LOADED) {
        return EvaluationResult.NOT_LOADED;
      } else {
        return EvaluationResult.FALSE;
      }
    }
View Full Code Here


      IAdapterManager manager= Platform.getAdapterManager();
      IIterable result= (IIterable)manager.getAdapter(var, IIterable.class);
      if (result != null)
        return result;
     
      if (manager.queryAdapter(var, IIterable.class.getName()) == IAdapterManager.NOT_LOADED)
        return null;
     
      throw new CoreException(new ExpressionStatus(
        ExpressionStatus.VARIABLE_IS_NOT_A_COLLECTION,
        Messages.format(ExpressionMessages.Expression_variable_not_iterable, expression.toString())));
View Full Code Here

      IAdapterManager manager= Platform.getAdapterManager();
      ICountable result= (ICountable)manager.getAdapter(var, ICountable.class);
      if (result != null)
        return result;
     
      if (manager.queryAdapter(var, ICountable.class.getName()) == IAdapterManager.NOT_LOADED)
        return null;
     
      throw new CoreException(new ExpressionStatus(
        ExpressionStatus.VARIABLE_IS_NOT_A_COLLECTION,
        Messages.format(ExpressionMessages.Expression_variable_not_countable, expression.toString())));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.