Ejemplo n.º 1
0
 public MonoDevelopWorkspace() : base(services, ServiceLayer.Desktop)
 {
     this.Id = WorkspaceId.Next();
     if (IdeApp.Workspace != null)
     {
         IdeApp.Workspace.ActiveConfigurationChanged += HandleActiveConfigurationChanged;
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
		}