本文整理汇总了Java中com.intellij.openapi.options.UnnamedConfigurable.isModified方法的典型用法代码示例。如果您正苦于以下问题:Java UnnamedConfigurable.isModified方法的具体用法?Java UnnamedConfigurable.isModified怎么用?Java UnnamedConfigurable.isModified使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.options.UnnamedConfigurable
的用法示例。
在下文中一共展示了UnnamedConfigurable.isModified方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: VcsConfigurationsDialog
import com.intellij.openapi.options.UnnamedConfigurable; //导入方法依赖的package包/类
public VcsConfigurationsDialog(Project project, @Nullable JComboBox vcses, VcsDescriptor selectedVcs) {
super(project, false);
myProject = project;
VcsDescriptor[] abstractVcses = collectAvailableNames();
initList(abstractVcses);
initVcsConfigurable(abstractVcses);
updateConfiguration();
myVcsesToUpdate = vcses;
for (String vcsName : myVcsNameToConfigurableMap.keySet()) {
UnnamedConfigurable configurable = myVcsNameToConfigurableMap.get(vcsName);
if (configurable != null && configurable.isModified()) configurable.reset();
}
updateConfiguration();
if (selectedVcs != null){
myVcses.setSelectedValue(selectedVcs, true);
}
init();
setTitle(VcsBundle.message("dialog.title.version.control.configurations"));
}
示例2: isModified
import com.intellij.openapi.options.UnnamedConfigurable; //导入方法依赖的package包/类
public boolean isModified() {
for (final UnnamedConfigurable additionalConfigurable : myAdditionalConfigurables) {
if (additionalConfigurable.isModified()) {
return true;
}
}
if (!MavenServerManager.getInstance().getMavenEmbedderVMOptions().equals(myEmbedderVMOptions.getText())) {
return true;
}
if (!MavenServerManager.getInstance().getEmbedderJdk().equals(myEmbedderJdk.getSelectedValue())) {
return true;
}
return mySettingsForm.isModified(myImportingSettings);
}
示例3: isModified
import com.intellij.openapi.options.UnnamedConfigurable; //导入方法依赖的package包/类
public boolean isModified() {
for (final UnnamedConfigurable additionalConfigurable : myAdditionalConfigurables) {
if (additionalConfigurable.isModified()) {
return true;
}
}
if ((!myUseMaven3CheckBox.isSelected()) != MavenServerManager.getInstance().isUseMaven2()) {
return true;
}
if (!MavenServerManager.getInstance().getMavenEmbedderVMOptions().equals(myEmbedderVMOptions.getText())) {
return true;
}
return mySettingsForm.isModified(myImportingSettings);
}
示例4: doOKAction
import com.intellij.openapi.options.UnnamedConfigurable; //导入方法依赖的package包/类
protected void doOKAction() {
for (String vcsName : myVcsNameToConfigurableMap.keySet()) {
UnnamedConfigurable configurable = myVcsNameToConfigurableMap.get(vcsName);
if (configurable != null && configurable.isModified()) {
try {
configurable.apply();
}
catch (ConfigurationException e) {
Messages.showErrorDialog(VcsBundle.message("message.text.unable.to.save.settings", e.getMessage()),
VcsBundle.message("message.title.unable.to.save.settings"));
}
}
}
final JComboBox vcsesToUpdate = myVcsesToUpdate;
if (vcsesToUpdate != null) {
final VcsDescriptor wrapper = (VcsDescriptor) myVcses.getSelectedValue();
vcsesToUpdate.setSelectedItem(wrapper);
final ComboBoxModel model = vcsesToUpdate.getModel();
for(int i = 0; i < model.getSize(); i++){
final Object vcsWrapper = model.getElementAt(i);
if (vcsWrapper instanceof VcsDescriptor){
final VcsDescriptor defaultVcsWrapper = (VcsDescriptor) vcsWrapper;
if (defaultVcsWrapper.equals(wrapper)){
vcsesToUpdate.setSelectedIndex(i);
break;
}
}
}
}
super.doOKAction();
}