當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。