本文整理汇总了C#中Microsoft.VisualStudioTools.Project.ProjectElement类的典型用法代码示例。如果您正苦于以下问题:C# ProjectElement类的具体用法?C# ProjectElement怎么用?C# ProjectElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProjectElement类属于Microsoft.VisualStudioTools.Project命名空间,在下文中一共展示了ProjectElement类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: WebPiReferenceNode
internal WebPiReferenceNode(ProjectNode root, ProjectElement element, string filename, string productId, string friendlyName)
: base(root, element) {
Utilities.ArgumentNotNullOrEmpty("filename", filename);
_feed = filename;
_productId = productId;
_friendlyName = friendlyName;
}
开发者ID:smallwave,项目名称:PTVS,代码行数:7,代码来源:WebPiReferenceNode.cs
示例2: NodejsFileNode
public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
: base(root, e) {
if (Url.Contains(AnalysisConstants.NodeModulesFolder)) {
root.EnqueueForDelayedAnalysis(this);
} else {
Analyze();
}
}
开发者ID:CforED,项目名称:Node.js-Tools-for-Visual-Studio,代码行数:8,代码来源:NodejsFileNode.cs
示例3: PythonExtensionReferenceNode
internal PythonExtensionReferenceNode(PythonProjectNode root, ProjectElement element, string filename)
: base(root, element) {
Utilities.ArgumentNotNullOrEmpty("filename", filename);
_filename = CommonUtils.GetAbsoluteFilePath(root.ProjectHome, filename);
AnalyzeReference(root.GetInterpreter() as IPythonInterpreterWithProjectReferences);
InitializeFileChangeEvents();
}
开发者ID:omnimark,项目名称:PTVS,代码行数:8,代码来源:PythonExtensionReferenceNode.cs
示例4: NodejsFileNode
public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
: base(root, e) {
string referenceBaseName = Path.GetFileNameWithoutExtension(Caption);
#if FALSE
CreateWatcher(Url);
#endif
if (Url.Contains(AnalysisConstants.NodeModulesFolder)) {
root.DelayedAnalysisQueue.Enqueue(this);
} else {
Analyze();
}
}
开发者ID:justin-romano,项目名称:nodejstools,代码行数:13,代码来源:NodejsFileNode.cs
示例5: NodejsFileNode
public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
: base(root, e) {
string referenceBaseName = Path.GetFileNameWithoutExtension(Caption);
#if FALSE
CreateWatcher(Url);
#endif
if (ShouldAnalyze) {
root.Analyzer.AnalyzeFile(Url, !IsNonMemberItem);
root._requireCompletionCache.Clear();
}
ItemNode.ItemTypeChanged += ItemNode_ItemTypeChanged;
}
开发者ID:rodocite,项目名称:nodejstools,代码行数:14,代码来源:NodejsFileNode.cs
示例6: CreateReferenceNode
protected override ReferenceNode CreateReferenceNode(string referenceType, ProjectElement element) {
if (referenceType == ProjectFileConstants.Reference) {
string pyExtension = element.GetMetadata(PythonConstants.PythonExtension);
if (!String.IsNullOrWhiteSpace(pyExtension)) {
return new PythonExtensionReferenceNode((PythonProjectNode)ProjectMgr, element, pyExtension);
}
} else if (referenceType == ProjectFileConstants.WebPiReference) {
return new WebPiReferenceNode(
ProjectMgr,
element,
element.GetMetadata("Feed"),
element.GetMetadata("ProductId"),
element.GetMetadata("FriendlyName")
);
}
return base.CreateReferenceNode(referenceType, element);
}
开发者ID:omnimark,项目名称:PTVS,代码行数:18,代码来源:PythonReferenceContainerNode.cs
示例7: CreateAssemblyReferenceNode
protected override AssemblyReferenceNode CreateAssemblyReferenceNode(ProjectElement element) {
AssemblyReferenceNode node = null;
try {
node = new PythonAssemblyReferenceNode((PythonProjectNode)this.ProjectMgr, element);
} catch (ArgumentNullException e) {
Trace.WriteLine("Exception : " + e.Message);
} catch (FileNotFoundException e) {
Trace.WriteLine("Exception : " + e.Message);
} catch (BadImageFormatException e) {
Trace.WriteLine("Exception : " + e.Message);
} catch (FileLoadException e) {
Trace.WriteLine("Exception : " + e.Message);
} catch (System.Security.SecurityException e) {
Trace.WriteLine("Exception : " + e.Message);
}
return node;
}
开发者ID:jsschultz,项目名称:PTVS,代码行数:18,代码来源:PythonReferenceContainerNode.cs
示例8: CreateReferenceNode
protected override ReferenceNode CreateReferenceNode(string referenceType, ProjectElement element) {
if (referenceType == ProjectFileConstants.Reference) {
if (Path.GetExtension(element.Url).Equals(".pyd", StringComparison.OrdinalIgnoreCase)) {
return new DeprecatedReferenceNode(
ProjectMgr,
element,
element.GetMetadata(ProjectFileConstants.Include),
Strings.PydReferenceDeprecated
);
}
} else if (referenceType == ProjectFileConstants.WebPiReference) {
return new DeprecatedReferenceNode(
ProjectMgr,
element,
element.GetMetadata("FriendlyName"),
Strings.WebPIReferenceDeprecated
);
}
return base.CreateReferenceNode(referenceType, element);
}
开发者ID:jsschultz,项目名称:PTVS,代码行数:21,代码来源:PythonReferenceContainerNode.cs
示例9: CreateNonCodeFileNode
public override CommonFileNode CreateNonCodeFileNode(ProjectElement item)
{
return new TrackedFileNode(this, item);
}
开发者ID:Boddlnagg,项目名称:VisualRust,代码行数:4,代码来源:RustProjectNode.cs
示例10: CreateFileNode
public override FileNode CreateFileNode(ProjectElement item)
{
if (String.IsNullOrEmpty(item.ItemTypeName))
return base.CreateFileNode(item);
return CreateTrackedNode(item);
}
开发者ID:Boddlnagg,项目名称:VisualRust,代码行数:6,代码来源:RustProjectNode.cs
示例11: PythonFolderNode
public PythonFolderNode(CommonProjectNode root, ProjectElement element)
: base(root, element) {
}
开发者ID:RussBaz,项目名称:PTVS,代码行数:3,代码来源:PythonFolderNode.cs
示例12: ReferenceNode
/// <summary>
/// constructor for the ReferenceNode
/// </summary>
protected ReferenceNode(ProjectNode root, ProjectElement element)
: base(root, element) {
this.ExcludeNodeFromScc = true;
}
开发者ID:whuthj,项目名称:VisualRust,代码行数:7,代码来源:ReferenceNode.cs
示例13: BaseFileNode
public BaseFileNode(RustProjectNode node, ProjectElement elm, string path)
: base(node, elm)
{
ProjectMgr = node;
}
开发者ID:whuthj,项目名称:VisualRust,代码行数:5,代码来源:BaseFileNode.cs
示例14: CreateReferenceNode
protected virtual ReferenceNode CreateReferenceNode(string referenceType, ProjectElement element) {
ReferenceNode node = null;
#if FALSE
if(referenceType == ProjectFileConstants.COMReference)
{
node = this.CreateComReferenceNode(element);
}
else
#endif
if (referenceType == ProjectFileConstants.Reference) {
node = this.CreateAssemblyReferenceNode(element);
} else if (referenceType == ProjectFileConstants.ProjectReference) {
node = this.CreateProjectReferenceNode(element);
}
return node;
}
开发者ID:CforED,项目名称:Node.js-Tools-for-Visual-Studio,代码行数:17,代码来源:ReferenceContainerNode.cs
示例15: UntrackedFolderNode
public UntrackedFolderNode(RustProjectNode root, ProjectElement elm)
: base(root, elm)
{
ProjectMgr = root;
}
开发者ID:whuthj,项目名称:VisualRust,代码行数:5,代码来源:UntrackedFolderNode.cs
示例16: FolderNode
/// <summary>
/// Constructor for the FolderNode
/// </summary>
/// <param name="root">Root node of the hierarchy</param>
/// <param name="relativePath">relative path from root i.e.: "NewFolder1\\NewFolder2\\NewFolder3</param>
/// <param name="element">Associated project element</param>
public FolderNode(ProjectNode root, ProjectElement element)
: base(root, element) {
}
开发者ID:jsschultz,项目名称:PTVS,代码行数:9,代码来源:FolderNode.cs
示例17: CreateFolderNode
protected internal override FolderNode CreateFolderNode(ProjectElement element)
{
if (element == null)
throw new ArgumentException("element");
if (element is AllFilesProjectElement || !String.IsNullOrEmpty(element.ItemTypeName))
return new RustFolderNode(this, element);
else
return new UntrackedFolderNode(this, element);
}
开发者ID:Boddlnagg,项目名称:VisualRust,代码行数:9,代码来源:RustProjectNode.cs
示例18: CreateProjectReferenceNode
protected override ProjectReferenceNode CreateProjectReferenceNode(ProjectElement element) {
return new PythonProjectReferenceNode(ProjectMgr, element);
}
开发者ID:jsschultz,项目名称:PTVS,代码行数:3,代码来源:PythonReferenceContainerNode.cs
示例19: CreateTrackedNode
private TrackedFileNode CreateTrackedNode(ProjectElement elm)
{
var node = new TrackedFileNode(this, elm);
if (!ModuleTracker.IsIncremental)
{
ModuleTracker.AddRootModule(node.Url);
}
else
{
HashSet<string> children = ModuleTracker.AddRootModuleIncremental(node.Url);
foreach (string child in children)
{
HierarchyNode parent = this.CreateFolderNodes(fs.Path.GetDirectoryName(child), false);
parent.AddChild(CreateUntrackedNode(child));
}
}
return node;
}
开发者ID:Boddlnagg,项目名称:VisualRust,代码行数:18,代码来源:RustProjectNode.cs
示例20: TrackedFileNode
public TrackedFileNode(RustProjectNode root, ProjectElement elm)
: base(root, elm, elm.GetMetadata(ProjectFileConstants.Include))
{
}
开发者ID:whuthj,项目名称:VisualRust,代码行数:4,代码来源:TrackedFileNode.cs
注:本文中的Microsoft.VisualStudioTools.Project.ProjectElement类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论