mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fix order of properties in ui and java code style
This commit is contained in:
parent
1a2a41dc44
commit
4eba177c9b
2 changed files with 8 additions and 7 deletions
|
|
@ -263,10 +263,10 @@ limitations under the License.
|
|||
<th>description</th>
|
||||
<th>action</th>
|
||||
</tr>
|
||||
<tr ng-repeat="(key, value) in newInterpreterSetting.properties">
|
||||
<tr ng-repeat="key in newInterpreterSetting.properties | sortByKey">
|
||||
<td>{{key}}</td>
|
||||
<td><textarea msd-elastic ng-model="value.value"></textarea></td>
|
||||
<td>{{value.description}}</td>
|
||||
<td><textarea msd-elastic ng-model="newInterpreterSetting.properties[key].value"></textarea></td>
|
||||
<td>{{newInterpreterSetting.properties[key].description}}</td>
|
||||
<td>
|
||||
<button class="btn btn-default btn-sm fa fa-remove" ng-click="removeInterpreterProperty(key)">
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
private InterpreterSetting createFromInterpreterSettingRef(InterpreterSetting o) {
|
||||
InterpreterSetting setting =
|
||||
new InterpreterSetting(o.getName(), o.getName(), o.getInterpreterInfos(),
|
||||
convertInterpreterProperties((Map <String, InterpreterProperty>)o.getProperties()),
|
||||
convertInterpreterProperties((Map <String, InterpreterProperty>) o.getProperties()),
|
||||
o.getDependencies(), o.getOption(), o.getPath());
|
||||
setting.setInterpreterGroupFactory(this);
|
||||
return setting;
|
||||
|
|
@ -612,7 +612,8 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
throws InterpreterException, IOException, RepositoryException {
|
||||
ArrayList<InterpreterInfo> infos = new ArrayList<>();
|
||||
infos.add(interpreterInfo);
|
||||
return add(group, infos, new ArrayList<Dependency>(), defaultOption, interpreterProperties, path);
|
||||
return add(group, infos, new ArrayList<Dependency>(), defaultOption,
|
||||
interpreterProperties, path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -667,8 +668,8 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
|
||||
} else {
|
||||
interpreterSetting =
|
||||
new InterpreterSetting(group, null, interpreterInfos, interpreterProperties, dependencies, option,
|
||||
path);
|
||||
new InterpreterSetting(group, null, interpreterInfos, interpreterProperties,
|
||||
dependencies, option, path);
|
||||
interpreterSettingsRef.put(group, interpreterSetting);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue