protected virtual BasicCompletionData ConfigureNormalProperty(BasicCompletionData data, IListValue prop) { data.Text = prop.Value; data.Description = prop.Label; data.Image = Icons.Property16.Wpf; if (_insertion != null) { var insertValue = _insertion(prop.Value); data.Action = () => insertValue; } return data; }
protected virtual BasicCompletionData ConfigureLabeledProperty(BasicCompletionData data, IListValue prop) { var label = prop.Label + " (" + prop.Value + ")"; data.Text = label; data.Description = prop.Value; data.Content = FormatText.MutedText(label); data.Image = Icons.Property16.Wpf; var insertValue = prop.Value; if (_insertion != null) insertValue = _insertion(prop.Value); data.Action = () => insertValue; return data; }
protected virtual BasicCompletionData ConfigureLabeledProperty(BasicCompletionData data, IListValue prop) { var label = prop.Label + " (" + prop.Value + ")"; data.Text = label; data.Description = Tooltips.Property(prop as Property); data.Content = FormatText.MutedText(label); data.Image = Icons.Property16.Wpf; var insertValue = prop.Value; if (_insertion != null) { insertValue = _insertion(prop.Value); } data.Action = () => insertValue; return(data); }
protected virtual BasicCompletionData ConfigureNormalProperty(BasicCompletionData data, IListValue prop) { data.Text = prop.Value; data.Description = Tooltips.Property(prop as Property); data.Image = Icons.Property16.Wpf; if (_insertion != null) { var insertValue = _insertion(prop.Value); data.Action = () => insertValue; } return(data); }