示例#1
0
 public MonoDevelopWorkspace() : base(services, ServiceLayer.Desktop)
 {
     this.Id = WorkspaceId.Next();
     if (IdeApp.Workspace != null)
     {
         IdeApp.Workspace.ActiveConfigurationChanged += HandleActiveConfigurationChanged;
     }
 }
示例#2
0
 public IDisposable RegisterPrimaryWorkspace(WorkspaceId id)
 {
     if (primaryWorkspace.Equals(WorkspaceId.Empty))
     {
         primaryWorkspace = id;
         return(new WorkspaceRegistration(this));
     }
     return(null);
 }
 internal static MonoDevelopWorkspace GetWorkspace(WorkspaceId id)
 {
     foreach (var ws in workspaces)
     {
         if (ws.Id.Equals(id))
         {
             return(ws);
         }
     }
     return(emptyWorkspace);
 }
示例#4
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (obj.GetType() != typeof(WorkspaceId))
            {
                return(false);
            }
            WorkspaceId other = (WorkspaceId)obj;

            return(Number == other.Number && DateTime == other.DateTime);
        }
示例#5
0
		internal MonoDevelopWorkspace () : base (services, ServiceLayer.Desktop)
		{
			this.Id = WorkspaceId.Next ();
			if (IdeApp.Workspace != null) {
				IdeApp.Workspace.ActiveConfigurationChanged += HandleActiveConfigurationChanged;
			}
		}
		internal static MonoDevelopWorkspace GetWorkspace (WorkspaceId id)
		{
			foreach (var ws in workspaces) {
				if (ws.Id.Equals (id))
					return ws;
			}
			return emptyWorkspace;
		}