C# Класс AddinFramework.Util.Search

Load the possible Searches: - EA Standard Searches - Searches defined in MDG (Program-Technology-Folder, MDG in file locations, MDG in URI locations) - Local Search of PC
Показать файл Открыть проект

Открытые методы

Метод Описание
CalulateAndSort ( string pattern ) : void

Calculate score, sort and visualize rtf field. Upper/Lower cases are not considered.

GetRtf ( ) : string

Get the suggestions for the rtf box

GetSearch ( int index ) : SearchItem

Get the SearchItem for the index

GetSearchesSuggestions ( EA rep ) : System.Windows.Forms.AutoCompleteStringCollection

Makes a Forms Auto Completion List of all searches.

LoadSqlSearches ( ) : void

Load SQL Searches in structure '_staticAllSearches'. The structure contains: File, Description of SQL

LoadStaticSearchesSuggestions ( ) : void

Load the suggestions for the search Combo Box

ResetSort ( ) : void

Reset sort in rtf by default order (Name field of SearchItem).

Приватные методы

Метод Описание
LoadAllSearches ( EA rep ) : void

Load the possible Searches: - EA Standard Searches - Searches defined in MDG (Program-Technology-Folder, MDG in file locations, MDG in URI locations) - Local Search of PC

LoadEaStandardSearchesFromJason ( string eaRelease ) : void

Load all EA Standard Searches from JSON for an EA Release. The Standard searches are stored in: 'EaStandardSearches.json'. Possible EA Releases are: "9, 10, 11, 12, 12.1, 13\"

LoadLocalMdgSearches ( EA rep ) : void

Load Searches from MDG Technology folder

LoadLocalSearches ( EA rep ) : void

The local Searches are located in the "ea program files"\scripts (so usually C:\Program Files (x86)\Sparx Systems\EA\Scripts or C:\Program Files\Sparx Systems\EA\Scripts) The contents of the local scripts is loaded into the Searches.

LoadMdgSearchFromUrl ( EA rep, string url ) : void

load the MDG Search from the MDG file located at the given URL

LoadMdgSearches ( EA rep, string mdgXmlContent ) : void

Loads the Searches described in the MDG file into the includable scripts

LoadOtherMdgSearches ( EA rep ) : void

loads the MDG scripts from the locations added from MDG Technologies|Advanced. these locations are stored as a comma separated string in the registry a location can either be a directory, or an URL

LoadSearchFromFolder ( EA rep, string folder ) : void
Search ( ) : System
SqlGetDescription ( string file ) : string

Get Description from SQL file

Описание методов

CalulateAndSort() публичный статический Метод

Calculate score, sort and visualize rtf field. Upper/Lower cases are not considered.
public static CalulateAndSort ( string pattern ) : void
pattern string
Результат void

GetRtf() статический публичный Метод

Get the suggestions for the rtf box
static public GetRtf ( ) : string
Результат string

GetSearch() публичный статический Метод

Get the SearchItem for the index
public static GetSearch ( int index ) : SearchItem
index int
Результат SearchItem

GetSearchesSuggestions() публичный статический Метод

Makes a Forms Auto Completion List of all searches.
public static GetSearchesSuggestions ( EA rep ) : System.Windows.Forms.AutoCompleteStringCollection
rep EA
Результат System.Windows.Forms.AutoCompleteStringCollection

LoadSqlSearches() публичный статический Метод

Load SQL Searches in structure '_staticAllSearches'. The structure contains: File, Description of SQL
public static LoadSqlSearches ( ) : void
Результат void

LoadStaticSearchesSuggestions() публичный статический Метод

Load the suggestions for the search Combo Box
public static LoadStaticSearchesSuggestions ( ) : void
Результат void

ResetSort() публичный статический Метод

Reset sort in rtf by default order (Name field of SearchItem).
public static ResetSort ( ) : void
Результат void