Examples of queryAdapter()


Examples of com.sun.star.uno.XWeak.queryAdapter()

    public WeakReference(Object obj)
    {
        XWeak weak= (XWeak) UnoRuntime.queryInterface(XWeak.class, obj);
        if (weak != null)
        {
            XAdapter adapter= (XAdapter) weak.queryAdapter();
            if (adapter != null)
                m_listener= new OWeakRefListener(adapter);
        }
    }
    /** Returns a hard reference to the object that is kept weak by this class.
View Full Code Here

Examples of com.sun.star.uno.XWeak.queryAdapter()

            if (weakImpl != null)
            {
                XWeak weak= UnoRuntime.queryInterface(XWeak.class, weakImpl);
                if (weak != null)
                {
                    XAdapter adapter= (XAdapter) weak.queryAdapter();
                    if (adapter != null)
                        m_listener= new OWeakRefListener(adapter);
                }
            }
        }
View Full Code Here

Examples of com.sun.star.uno.XWeak.queryAdapter()

    public WeakReference(Object obj)
    {
        XWeak weak= UnoRuntime.queryInterface(XWeak.class, obj);
        if (weak != null)
        {
            XAdapter adapter= (XAdapter) weak.queryAdapter();
            if (adapter != null)
                m_listener= new OWeakRefListener(adapter);
        }
    }
    /** Returns a hard reference to the object that is kept weak by this class.
View Full Code Here

Examples of com.sun.star.uno.XWeak.queryAdapter()

            if (weakImpl != null)
            {
                XWeak weak= (XWeak) UnoRuntime.queryInterface(XWeak.class, weakImpl);
                if (weak != null)
                {
                    XAdapter adapter= (XAdapter) weak.queryAdapter();
                    if (adapter != null)
                        m_listener= new OWeakRefListener(adapter);
                }
            }
        }
View Full Code Here

Examples of com.sun.star.uno.XWeak.queryAdapter()

    public WeakReference(Object obj)
    {
        XWeak weak= (XWeak) UnoRuntime.queryInterface(XWeak.class, obj);
        if (weak != null)
        {
            XAdapter adapter= (XAdapter) weak.queryAdapter();
            if (adapter != null)
                m_listener= new OWeakRefListener(adapter);
        }
    }
    /** Returns a hard reference to the object that is kept weak by this class.
View Full Code Here

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

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

      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

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

      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.