Exemplo n.º 1
0
        public override bool NeedsSyncBack(XcodeSyncContext context)
        {
            var h    = Type.ObjCName + ".h";
            var path = context.ProjectDir.Combine(h);

            return(File.Exists(path) && File.GetLastWriteTime(path) != context.GetSyncTime(h));
        }
Exemplo n.º 2
0
		public override bool NeedsSyncBack (XcodeSyncContext context)
		{
			if (!isInterfaceDefinition)
				return false;
			string target = context.ProjectDir.Combine (targetRelative);
			return File.GetLastWriteTime (target) > context.GetSyncTime (targetRelative);
		}
Exemplo n.º 3
0
        public override bool NeedsSyncOut(XcodeSyncContext context)
        {
            //FIXME: types dep on other types on project, need better regeneration skipping
            var h    = Type.ObjCName + ".h";
            var path = context.ProjectDir.Combine(h);

            return(!File.Exists(path) || context.GetSyncTime(h) != Type.DefinedIn.Max(f => File.GetLastWriteTime(f)));
        }
Exemplo n.º 4
0
		public override bool NeedsSyncOut (XcodeSyncContext context)
		{
			//FIXME: types dep on other types on project, need better regeneration skipping
			var h = Type.ObjCName + ".h";
			var path = context.ProjectDir.Combine (h);

			return !File.Exists (path) || context.GetSyncTime (h) != Type.DefinedIn.Max (f => File.GetLastWriteTime (f));
		}
Exemplo n.º 5
0
		public override bool NeedsSyncBack (XcodeSyncContext context)
		{
			var h = Type.ObjCName + ".h";
			var path = context.ProjectDir.Combine (h);
			if (File.Exists (path) && File.GetLastWriteTime (path) > context.GetSyncTime (h))
				return true;
			return false;
		}
Exemplo n.º 6
0
        public override bool NeedsSyncBack(XcodeSyncContext context)
        {
            if (!isInterfaceDefinition)
            {
                return(false);
            }
            string target = context.ProjectDir.Combine(targetRelative);

            return(File.GetLastWriteTime(target) != context.GetSyncTime(targetRelative));
        }
Exemplo n.º 7
0
        public override bool NeedsSyncBack(IProgressMonitor monitor, XcodeSyncContext context)
        {
            string path = GetObjCHeaderPath(context);
            string h    = Type.ObjCName + ".h";

            if (File.Exists(path) && File.GetLastWriteTime(path) > context.GetSyncTime(h))
            {
                monitor.Log.WriteLine("{0} has changed since last sync.", h);
                return(true);
            }

            return(false);
        }
Exemplo n.º 8
0
		public override bool NeedsSyncOut (IProgressMonitor monitor, XcodeSyncContext context)
		{
			string target = context.ProjectDir.Combine (targetRelative);
			
			if (!File.Exists (target))
				return true;
			
			if (File.GetLastWriteTime (source) > context.GetSyncTime (targetRelative)) {
				monitor.Log.WriteLine ("{0} has changed since last sync.", targetRelative);
				return true;
			}
			
			return false;
		}
        public override bool NeedsSyncOut(IProgressMonitor monitor, XcodeSyncContext context)
        {
            string target = context.ProjectDir.Combine(targetRelative);

            if (!File.Exists(target))
            {
                return(true);
            }

            if (File.GetLastWriteTime(source) > context.GetSyncTime(targetRelative))
            {
                monitor.Log.WriteLine("{0} has changed since last sync.", targetRelative);
                return(true);
            }

            return(false);
        }
Exemplo n.º 10
0
		public override bool NeedsSyncOut (IProgressMonitor monitor, XcodeSyncContext context)
		{
			//FIXME: types dep on other types on project, need better regeneration skipping
			string h = Type.ObjCName + ".h";
			
			if (!File.Exists (GetObjCHeaderPath (context)))
				return true;
			
			DateTime syncTime = context.GetSyncTime (h);
			foreach (var path in Type.DefinedIn) {
				if (File.GetLastWriteTime (path) > syncTime) {
					monitor.Log.WriteLine ("The {0} class has changed since last sync ({1}).", Type.CliName, Path.GetFileName (path));
					return true;
				}
			}
			
			return false;
		}
Exemplo n.º 11
0
        public override bool NeedsSyncOut(IProgressMonitor monitor, XcodeSyncContext context)
        {
            //FIXME: types dep on other types on project, need better regeneration skipping
            string h = Type.ObjCName + ".h";

            if (!File.Exists(GetObjCHeaderPath(context)))
            {
                return(true);
            }

            DateTime syncTime = context.GetSyncTime(h);

            foreach (var path in Type.DefinedIn)
            {
                if (File.GetLastWriteTime(path) > syncTime)
                {
                    monitor.Log.WriteLine("The {0} class has changed since last sync ({1}).", Type.CliName, Path.GetFileName(path));
                    return(true);
                }
            }

            return(false);
        }
        public override bool NeedsSyncBack(IProgressMonitor monitor, XcodeSyncContext context)
        {
            if (!isInterfaceDefinition)
            {
                return(false);
            }

            string target = context.ProjectDir.Combine(targetRelative);

            if (!File.Exists(target))
            {
                monitor.Log.WriteLine("{0} has been removed since last sync.", targetRelative);
                // FIXME: some day we should mirror this change back to MonoDevelop
                return(false);
            }

            if (File.GetLastWriteTime(target) > context.GetSyncTime(targetRelative))
            {
                monitor.Log.WriteLine("{0} has changed since last sync.", targetRelative);
                return(true);
            }

            return(false);
        }
Exemplo n.º 13
0
		public override bool NeedsSyncBack (IProgressMonitor monitor, XcodeSyncContext context)
		{
			if (!isInterfaceDefinition)
				return false;
			
			string target = context.ProjectDir.Combine (targetRelative);
			
			if (!File.Exists (target)) {
				// Note: We only return true IF AND ONLY IF the file was *moved* by Xcode into a *.lproj/ dir.
				//       We DO NOT wan't to echo other deleted file changes back to MonoDevelop.
				if (ExistsInLocalizedDir (context)) {
					monitor.Log.WriteLine ("{0} has been localized.", targetRelative);
					return true;
				}
				
				monitor.Log.WriteLine ("{0} has been removed since last sync.", targetRelative);
				return false;
			}
			
			if (File.GetLastWriteTime (target) > context.GetSyncTime (targetRelative)) {
				monitor.Log.WriteLine ("{0} has changed since last sync.", targetRelative);
				return true;
			}
			
			return false;
		}
Exemplo n.º 14
0
		public override bool NeedsSyncBack (IProgressMonitor monitor, XcodeSyncContext context)
		{
			if (!isInterfaceDefinition)
				return false;
			
			string target = context.ProjectDir.Combine (targetRelative);
			
			if (File.GetLastWriteTime (target) > context.GetSyncTime (targetRelative)) {
				monitor.Log.WriteLine ("{0} has changed since last sync.", targetRelative);
				return true;
			}
			
			return false;
		}
Exemplo n.º 15
0
        public override bool NeedsSyncOut(XcodeSyncContext context)
        {
            string target = context.ProjectDir.Combine(targetRelative);

            return(!File.Exists(target) || context.GetSyncTime(targetRelative) != File.GetLastWriteTime(source));
        }
Exemplo n.º 16
0
		public override bool NeedsSyncOut (XcodeSyncContext context)
		{
			string target = context.ProjectDir.Combine (targetRelative);
			return !File.Exists (target) || context.GetSyncTime (targetRelative) < File.GetLastWriteTime (source);
		}
Exemplo n.º 17
0
		public override bool NeedsSyncBack (IProgressMonitor monitor, XcodeSyncContext context)
		{
			string path = GetObjCHeaderPath (context);
			string h = Type.ObjCName + ".h";
			
			if (File.Exists (path) && File.GetLastWriteTime (path) > context.GetSyncTime (h)) {
				monitor.Log.WriteLine ("{0} has changed since last sync.", h);
				return true;
			}
			
			return false;
		}
Exemplo n.º 18
0
		public override bool NeedsSyncBack (IProgressMonitor monitor, XcodeSyncContext context)
		{
			if (!isInterfaceDefinition)
				return false;
			
			string target = context.ProjectDir.Combine (targetRelative);
			
			if (!File.Exists (target)) {
				monitor.Log.WriteLine ("{0} has been removed since last sync.", targetRelative);
				// FIXME: some day we should mirror this change back to MonoDevelop
				return false;
			}
			
			if (File.GetLastWriteTime (target) > context.GetSyncTime (targetRelative)) {
				monitor.Log.WriteLine ("{0} has changed since last sync.", targetRelative);
				return true;
			}
			
			return false;
		}