Differential D15997 Diff 38505 src/applications/settings/setting/PhabricatorEditorMultipleSetting.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorEditorMultipleSetting.php
- This file was added.
| <?php | |||||
| final class PhabricatorEditorMultipleSetting | |||||
| extends PhabricatorSelectSetting { | |||||
| const SETTINGKEY = 'multiedit'; | |||||
| const VALUE_SPACES = 'spaces'; | |||||
| const VALUE_SINGLE = 'disable'; | |||||
| public function getSettingName() { | |||||
| return pht('Edit Mulitple Files'); | |||||
| } | |||||
| protected function getControlInstructions() { | |||||
| return pht( | |||||
| 'Some editors support opening multiple files with a single URI. You '. | |||||
| 'can specify the behavior of your editor here.'); | |||||
| } | |||||
| public function getSettingDefaultValue() { | |||||
| return self::VALUE_SPACES; | |||||
| } | |||||
| protected function getSelectOptions() { | |||||
| return array( | |||||
| self::VALUE_SPACES => pht('Supported, Separated by Spaces'), | |||||
| self::VALUE_SINGLE => pht('Not Supported'), | |||||
| ); | |||||
| } | |||||
| } | |||||