/[cits3200i]/branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataList.cs


UCC Code Repository

Diff of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/MetadataList.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 86 by rvvs89, Mon Oct 11 06:42:56 2010 UTC revision 87 by rvvs89, Mon Oct 11 21:19:18 2010 UTC
# Line 14  namespace MetadataPlugin.Source Line 14  namespace MetadataPlugin.Source
14          [NonSerialized]          [NonSerialized]
15          private IActivity activity;          private IActivity activity;
16    
17            public IActivity Activity
18            {
19                set { activity = value; }
20            }
21    
22          public void Commit()          public void Commit()
23          {          {
24              // TODO: create some triggers for this function              // TODO: create some triggers for this function
# Line 26  namespace MetadataPlugin.Source Line 31  namespace MetadataPlugin.Source
31          {          {
32              activity = null;              activity = null;
33          }          }
34    
35            public static MetadataList LoadFromActivity(IActivity activity)
36            {
37                if (activity == null)
38                    return null;
39                MetadataList ret = MetadataListSerializer.Deserialize(activity.GetExtensionData(Plugin.Instance.Id));
40                if (ret == null)
41                    ret = new MetadataList();
42                ret.Activity = activity;
43                return ret;
44            }
45      }      }
46  }  }

Legend:
Removed from v.86  
changed lines
  Added in v.87

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26