Example #1
0
 public Map(MapKind kind, MapArchitecture architecture, List <MapEntry> managedToJava, List <MapEntry> javaToManaged, string formatVersion)
 {
     Kind          = kind;
     Architecture  = architecture;
     ManagedToJava = managedToJava;
     JavaToManaged = javaToManaged;
     FormatVersion = formatVersion;
 }
Example #2
0
        private void loadMapFileButton_Click(object sender, EventArgs e)
        {
            //Run compile selector
            CompileSelector compileSelector = new CompileSelector(MAP_FILE_DIRECTORY, MAP_FILE_EXTENSION, onlyOneSelection: true);

            if (compileSelector.ShowDialog() == DialogResult.Yes)
            {
                //Selected successfully
                mapArchitecture = compileSelector.selectedMapFiles[0];
            }
        }
Example #3
0
 private void clearButton_Click(object sender, EventArgs e)
 {
     mapArchitecture = new MapArchitecture();
 }
Example #4
0
        public static string GetOutputFileBaseName(string outputDirectory, string formatVersion, MapKind kind, MapArchitecture architecture)
        {
            string ret = $"typemap-v{formatVersion}-{kind}-{architecture}";

            if (outputDirectory.Length == 0)
            {
                return(ret);
            }

            return(Path.Combine(outputDirectory, ret));
        }