private void initPython() { if (pexec == null) { pexec = new PythonExecutor(this); String[] jMethods = new String[1]; jMethods[0] = "getShortDescription"; String[] pFuncs = new String[1]; pFuncs[0] = "get_short_description"; Class[][] argTypes = new Class[1][]; argTypes[0] = new Class[0]; pexec.checkAbstrMethods(jMethods, pFuncs, argTypes); String[] functions = new String[0]; int[] argsCount = new int[0]; pexec.registerFunctions(functions, argsCount); } }
private void initPython() { if (pexec == null) { pexec = new PythonExecutor(this); String[] jMethods = new String[1]; jMethods[0] = "getDisplayName"; String[] pFuncs = new String[1]; pFuncs[0] = "get_display_name"; Class[][] argTypes = new Class[1][]; argTypes[0] = new Class[0]; pexec.checkAbstrMethods(jMethods, pFuncs, argTypes); String[] functions = new String[28]; functions[0] = "is_applicable"; functions[1] = "get_id"; functions[2] = "get_t"; functions[3] = "get_descriptor_url"; functions[4] = "get_check_url"; functions[5] = "calc_fill_settings"; functions[6] = "calc_auto_complete_settings"; functions[7] = "get_property_type"; functions[8] = "get_property_type_or_die"; functions[9] = "get_property_type"; functions[10] = "get_global_property_type"; functions[11] = "new_instance"; functions[12] = "new_instance"; functions[13] = "get_klass"; functions[14] = "get_help_file"; functions[15] = "get_help_file"; functions[16] = "get_help_file"; functions[17] = "add_help_file_redirect"; functions[18] = "configure"; functions[19] = "configure"; functions[20] = "get_config_page"; functions[21] = "get_global_config_page"; functions[22] = "get_possible_view_names"; functions[23] = "save"; functions[24] = "load"; functions[25] = "get_config_file"; functions[26] = "get_plugin"; functions[27] = "do_help"; int[] argsCount = new int[28]; argsCount[0] = 1; argsCount[1] = 0; argsCount[2] = 0; argsCount[3] = 0; argsCount[4] = 1; argsCount[5] = 2; argsCount[6] = 2; argsCount[7] = 2; argsCount[8] = 2; argsCount[9] = 1; argsCount[10] = 1; argsCount[11] = 1; argsCount[12] = 2; argsCount[13] = 0; argsCount[14] = 0; argsCount[15] = 1; argsCount[16] = 2; argsCount[17] = 3; argsCount[18] = 1; argsCount[19] = 2; argsCount[20] = 0; argsCount[21] = 0; argsCount[22] = 1; argsCount[23] = 0; argsCount[24] = 0; argsCount[25] = 0; argsCount[26] = 0; argsCount[27] = 2; pexec.registerFunctions(functions, argsCount); } }