Esempio n. 1
0
 public static WorkspaceInfoGetter Instance()
 {
     if (m_Instance == null)
     {
         m_Instance = new WorkspaceInfoGetter();
     }
     return(m_Instance);
 }
Esempio n. 2
0
        public override Value Evaluate(IEvalContext ctx)
        {
            string path  = SubExpressions[0].Evaluate(ctx).ToString();
            string owner = "";

            if (path.Length > 0)
            {
                PackageGlobals.InvokeOnUIThread(delegate()
                {
                    owner = WorkspaceInfoGetter.Instance().GetOwner(path);
                });
            }

            return(new StringValue(owner));
        }
 public static WorkspaceInfoGetter Instance()
 {
     if (m_Instance == null)
         m_Instance = new WorkspaceInfoGetter();
     return m_Instance;
 }