Beispiel #1
0
 public static WorkspaceInfoGetter Instance()
 {
     if (m_Instance == null)
     {
         m_Instance = new WorkspaceInfoGetter();
     }
     return(m_Instance);
 }
Beispiel #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;
 }