예제 #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;
		}