当前位置: 首页>>代码示例>>Java>>正文


Java Configurable.isModified方法代码示例

本文整理汇总了Java中com.intellij.openapi.options.Configurable.isModified方法的典型用法代码示例。如果您正苦于以下问题:Java Configurable.isModified方法的具体用法?Java Configurable.isModified怎么用?Java Configurable.isModified使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.openapi.options.Configurable的用法示例。


在下文中一共展示了Configurable.isModified方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isModified

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
public boolean isModified() {
  if (!Comparing.equal(mySelectedCompiler, myCompilerConfiguration.getDefaultCompiler())) {
    return true;
  }
  for (Configurable configurable : myConfigurables) {
    if (configurable.isModified()) {
      return true;
    }
  }
  if (!Comparing.equal(myTargetLevelComponent.getProjectBytecodeTarget(), myCompilerConfiguration.getProjectBytecodeTarget())) {
    return true;
  }
  if (!Comparing.equal(myTargetLevelComponent.getModulesBytecodeTargetMap(), myCompilerConfiguration.getModulesBytecodeTargetMap())) {
    return true;
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:JavaCompilersTab.java

示例2: apply

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
public void apply() throws ConfigurationException {
  try {
    for (Configurable configurable : myConfigurables) {
      if (configurable.isModified()) {
        configurable.apply();
      }
    }

    myCompilerConfiguration.setDefaultCompiler(mySelectedCompiler);
    myCompilerConfiguration.setProjectBytecodeTarget(myTargetLevelComponent.getProjectBytecodeTarget());
    myCompilerConfiguration.setModulesBytecodeTargetMap(myTargetLevelComponent.getModulesBytecodeTargetMap());

    myTargetLevelComponent.setProjectBytecodeTargetLevel(myCompilerConfiguration.getProjectBytecodeTarget());
    myTargetLevelComponent.setModuleTargetLevels(myCompilerConfiguration.getModulesBytecodeTargetMap());
  }
  finally {
    BuildManager.getInstance().clearState(myProject);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:JavaCompilersTab.java

示例3: apply

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public final void apply() throws ConfigurationException {
  if (root != null) {
    root.apply(getSettings());
    for (DebuggerConfigurableProvider provider : DebuggerConfigurableProvider.EXTENSION_POINT.getExtensions()) {
      provider.generalApplied(getCategory());
    }
  }

  if (isChildrenMerged()) {
    for (Configurable child : children) {
      if (child.isModified()) {
        child.apply();
      }
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:SubCompositeConfigurable.java

示例4: isModified

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public boolean isModified() {
  for (Configurable each : myName2Config) {
    if (each.isModified()) return true;
  }

  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:ProjectStructureConfigurable.java

示例5: checkModifiedInternal

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
private void checkModifiedInternal(Configurable configurable) {
  if (configurable.isModified()) {
    myFilter.myContext.fireModifiedAdded(configurable, null);
  }
  else if (!myFilter.myContext.getErrors().containsKey(configurable)) {
    myFilter.myContext.fireModifiedRemoved(configurable, null);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:SettingsEditor.java

示例6: updateCurrent

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
void updateCurrent(Configurable configurable, boolean reset) {
  boolean modified = configurable != null && configurable.isModified();
  myApplyAction.setEnabled(modified);
  myResetAction.setEnabled(modified);
  if (!modified && reset) {
    setError(null);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:ConfigurableEditor.java

示例7: isModified

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public boolean isModified() {
  for (Configurable child : children) {
    if (child.isModified()) {
      return true;
    }
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:MergedCompositeConfigurable.java

示例8: apply

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public void apply() throws ConfigurationException {
  for (Configurable child : children) {
    if (child.isModified()) {
      child.apply();
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:MergedCompositeConfigurable.java

示例9: isModified

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public final boolean isModified() {
  if (root != null && root.isModified(getSettings())) {
    return true;
  }
  else if (isChildrenMerged()) {
    for (Configurable child : children) {
      if (child.isModified()) {
        return true;
      }
    }
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:SubCompositeConfigurable.java

示例10: isModified

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
@Override
public boolean isModified() {
  if (EmmetOptions.getInstance().getEmmetExpandShortcut() != myTemplateExpandShortcutPanel.getSelectedChar() || super.isModified()) {
    return true;
  }
  for (Configurable configurable : myInnerConfigurables) {
    if (configurable.isModified()) {
      return true;
    }
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:EmmetCompositeConfigurable.java

示例11: isModified

import com.intellij.openapi.options.Configurable; //导入方法依赖的package包/类
public boolean isModified() {
  for (Configurable configurable : configurables) {
    if (configurable.isModified()) return true;
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:CompositeConfigurable.java


注:本文中的com.intellij.openapi.options.Configurable.isModified方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。