public RussianAnalyzerController(
     IRussianAnalyzer analyzer,
     IResultTrimmer resultTrimmer,
     IExceptionDictionary exceptionDictionary)
 {
     _analyzer            = analyzer;
     _resultTrimmer       = resultTrimmer;
     _exceptionDictionary = exceptionDictionary;
 }
 public RussianAnalyzerController(
     IMorpher morpher,
     IAdjectivizer adjectivizer,
     IAccentizer accentizer,
     IResultTrimmer resultTrimmer,
     IExceptionDictionary exceptionDictionary)
 {
     _morpher             = morpher;
     _adjectivizer        = adjectivizer;
     _accentizer          = accentizer;
     _resultTrimmer       = resultTrimmer;
     _exceptionDictionary = exceptionDictionary;
 }
Exemplo n.º 3
0
 private bool HasValidValue(SceneViewModel viewModel, DocumentNodePath documentNodePath)
 {
     if (documentNodePath != null && !DocumentNodeUtilities.IsBinding(documentNodePath.Node))
     {
         SceneView activeView = viewModel.DesignerContext.ActiveView;
         if (activeView != null)
         {
             IInstanceBuilderContext instanceBuilderContext = activeView.InstanceBuilderContext;
             IExceptionDictionary    exceptionDictionary    = instanceBuilderContext.ExceptionDictionary;
             ViewNode viewNode;
             if (instanceBuilderContext.ViewNodeManager.TryGetCorrespondingViewNode(documentNodePath, out viewNode))
             {
                 return(!exceptionDictionary.Contains(viewNode));
             }
             return(true);
         }
     }
     return(false);
 }
 protected InstanceBuilderContextBase(IPlatform platform, IDocumentContext documentContext, IDocumentRootResolver documentRootResolver, IViewRootResolver viewRootResolver, ITypeMetadataFactory metadataFactory, INameScope nameScope, IInstanceBuilderContext parentContext, bool useShadowProperties, ITextBufferService textBufferService, DocumentNode alternateSiteNode)
 {
     this.documentContext                   = documentContext;
     this.platform                          = platform;
     this.effectManager                     = platform.EffectManager;
     this.instanceBuilderFactory            = platform.InstanceBuilderFactory;
     this.documentRootResolver              = documentRootResolver;
     this.viewRootResolver                  = viewRootResolver;
     this.metadataFactory                   = metadataFactory;
     this.AllowPostponingResourceEvaluation = true;
     this.viewNodeManager                   = this.platform.Create();
     this.viewNodeManager.Initialize(this);
     this.userControlInstances = new HashSet <ViewNode>();
     this.currentlyInstantiatingUserControlPreviews = new HashSet <string>();
     this.instanceDictionary  = this.platform.CreateInstanceDictionary(this.viewNodeManager);
     this.exceptionDictionary = new Microsoft.Expression.DesignModel.InstanceBuilders.ExceptionDictionary(this.viewNodeManager);
     this.warningDictionary   = new Microsoft.Expression.DesignModel.InstanceBuilders.WarningDictionary(this.viewNodeManager);
     this.nameScope           = nameScope;
     this.useShadowProperties = useShadowProperties;
     this.shouldRegisterInstantiatedElements = true;
     this.parentContext     = parentContext;
     this.textBufferService = textBufferService;
     this.alternateSiteNode = alternateSiteNode;
 }