/// <summary> /// Initializes a new instance of the <see cref="SquirrelProjectNode"/> class. /// </summary> /// <param name="package">Value of the project package for initialize internal package field.</param> public SquirrelProjectNode(SQVSProjectPackage package) { this.Package = package; if (IconIndex == -1) { IconIndex = this.ImageHandler.ImageList.Images.Count; this.ImageHandler.AddImage(Icon); NutIconIndex = this.ImageHandler.ImageList.Images.Count; this.ImageHandler.AddImage(NutIcon); } this.CanProjectDeleteItems = true; this.CanFileNodesHaveChilds = true; RegisterUserProperty(GeneralPropertyPageTags.IntellisenseEnabled.ToString()); this.OnProjectPropertyChanged += SquirrelProjectNode_OnProjectPropertyChanged; }
// Implementation of IVsProvideColorableItems public SQLanguageService(SQVSProjectPackage pkg) { _package = pkg; if (_completiondb == null) { _completiondb = new CompletionDB(squirrelVersion); } colorableItems = new ColorableItem[] { // The first 6 items in this list MUST be these default items. new SquirrelColorableItem("Keyword", COLORINDEX.CI_BLUE, COLORINDEX.CI_USERTEXT_BK), new SquirrelColorableItem("Comment", COLORINDEX.CI_DARKGREEN, COLORINDEX.CI_USERTEXT_BK), new SquirrelColorableItem("Identifier", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK), new SquirrelColorableItem("String", COLORINDEX.CI_MAROON, COLORINDEX.CI_USERTEXT_BK), new SquirrelColorableItem("Number", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK), new SquirrelColorableItem("Text", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK), new SquirrelColorableItem("SQ - Attribute", COLORINDEX.CI_DARKGRAY, COLORINDEX.CI_USERTEXT_BK) }; }
/// <summary> /// Explicit default constructor. /// </summary> /// <param name="package">Value of the project package for initialize internal package field.</param> public SquirrelProjectFactory(SQVSProjectPackage package) : base(package) { this.package = package; }