@Override
public void apply() throws ConfigurationException {
try {
PropertiesComponent.getInstance().setValue(KEY_RULES_PATH, rulesPath.getText());
if (!TextUtils.isEmpty(rulesPath.getText())) {
load(rulesPath.getText());
DirectiveLint.prepare();
} else {
DirectiveLint.reset();
}
} catch (Exception e) {
ProjectUtil.guessCurrentProject(select).getMessageBus().syncPublisher(Notifications.TOPIC).notify(
new Notification(Notifications.SYSTEM_MESSAGES_GROUP_ID,
"Weex language support - bad rules",
e.toString(),
NotificationType.ERROR));
}
savePaths();
}
Settings.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:weex-language-support
作者:
评论列表
文章目录