Exemplo n.º 1
0
        private ModelToViewsTuple[] InitModelViewRelation()
        {
            ModelToViewsTuple[]         modelsToViews = new ModelToViewsTuple[1];
            Dictionary <String, String> descriptions  = new Dictionary <String, String>();

            descriptions.Add("en", "This view opens the values in a SQLViewer.");
            descriptions.Add("de", "Dieses Tool öffnet die Werte in einem SQLViewer.");
            XLinkConnectorView[] views = new XLinkConnectorView[1];
            views[0] = new XLinkConnectorView()
            {
                name         = "SQLView",
                viewId       = "SQL Viewer",
                descriptions = descriptions.ConvertMap <string2stringMapEntry>()
            };
            modelsToViews[0] =
                new ModelToViewsTuple()
            {
                description = new ModelDescription()
                {
                    modelClassName = "org.openengsb.domain.SQLCode.model.SQLCreate", versionString = "3.0.0.SNAPSHOT"
                },
                views = views
            };
            return(modelsToViews);
        }
 private ModelToViewsTuple[] InitModelViewRelation()
 {
     ModelToViewsTuple[] modelsToViews = new ModelToViewsTuple[1];
     Dictionary<String, String> descriptions = new Dictionary<String, String>();
     descriptions.Add("en", "This view opens the values in a SQLViewer.");
     descriptions.Add("de", "Dieses Tool öffnet die Werte in einem SQLViewer.");
     XLinkConnectorView[] views = new XLinkConnectorView[1];
     views[0] = new XLinkConnectorView()
     {
         name = "SQLView",
         viewId = "SQL Viewer",
         descriptions = descriptions.ConvertMap<string2stringMapEntry>()
     };
     modelsToViews[0] =
         new ModelToViewsTuple()
     {
         description = new ModelDescription() { modelClassName = "org.openengsb.domain.SQLCode.model.SQLCreate", versionString = "3.0.0.SNAPSHOT" },
         views = views
     };
     return modelsToViews;
 }