package Ġio . github . had ix lin . iss Ċ Ċ import Ġio . github . had ix lin . iss . lin . Lin F cit x Remote Switch er Ċ import Ġio . github . had ix lin . iss . mac . Mac Input Method Switch er Ċ import Ġio . github . had ix lin . iss . win . Win Input Method Switch er Ċ import Ġorg . apache . commons . lang . System Utils Ċ Ċ /** ĠCreated Ġby Ġhad ix Ġon Ġ 2 6 / 1 2 / 2 0 1 8 . Ġ Ġ*/ Ċ class ĠSystem Input Method Switch er Ġ: ĠInput Method Switch er Ġ{ ĊĠĠĠ Ġprivate Ġvar Ġdelegate : ĠInput Method Switch er Ġ= Ġwhen Ġ{ ĊĠĠĠĠĠĠĠ ĠSystem Utils . IS _ OS _ WINDOWS Ġ-> ĠWin Input Method Switch er () ĊĠĠĠĠĠĠĠ ĠSystem Utils . IS _ OS _ MAC Ġ-> ĠMac Input Method Switch er () ĊĠĠĠĠĠĠĠ ĠSystem Utils . IS _ OS _ LINUX Ġ-> ĠLin F cit x Remote Switch er () ĊĠĠĠĠĠĠĠ Ġelse Ġ-> Ġthrow ĠIllegalArgumentException (" Not ĠSupport ĠCurrent ĠSystem ĠOS , ĠOnly ĠSupport ĠWindows , ĠMacOS Ġand ĠLinux ( with Ġfc it x )") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġswitch To English ( packageName : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdelegate . switch To English ( packageName ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġoverride Ġfun Ġstore Current Then Switch To English () Ġ{ ĊĠĠĠĠĠĠĠ Ġdelegate . store Current Then Switch To English () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġrestore () Ġ{ ĊĠĠĠĠĠĠĠ Ġdelegate . restore () ĊĠĠĠ Ġ} Ċ } Ċ