コード例 #1
0
 @Nullable
 public String getHelpTopic() {
   if (myEditors.isEmpty()) {
     return null;
   }
   final ModuleConfigurationEditor selectedEditor = getSelectedEditor();
   return selectedEditor != null ? selectedEditor.getHelpTopic() : null;
 }
コード例 #2
0
 public boolean isModified() {
   for (ModuleConfigurationEditor moduleElementsEditor : myEditors) {
     if (moduleElementsEditor.isModified()) {
       return true;
     }
   }
   return false;
 }
コード例 #3
0
 private void updateOrderEntriesInEditors() {
   if (getModule() != null) { // module with attached module libraries was deleted
     getPanel(); // init editor if needed
     for (final ModuleConfigurationEditor myEditor : myEditors) {
       myEditor.moduleStateChanged();
     }
     myEventDispatcher.getMulticaster().moduleStateChanged(getModifiableRootModelProxy());
   }
 }
コード例 #4
0
  public ModifiableRootModel apply() throws ConfigurationException {
    try {
      for (ModuleConfigurationEditor editor : myEditors) {
        editor.saveData();
        editor.apply();
      }

      return myModifiableRootModel;
    } finally {
      myModifiableRootModel = null;
      myModifiableRootModelProxy = null;
    }
  }
コード例 #5
0
  public void dispose() {
    try {
      for (final ModuleConfigurationEditor myEditor : myEditors) {
        myEditor.disposeUIResources();
      }

      myEditors.clear();

      disposeCenterPanel();

      if (myModifiableRootModel != null) {
        myModifiableRootModel.dispose();
      }

      myGenericSettingsPanel = null;
    } finally {
      myModifiableRootModel = null;
      myModifiableRootModelProxy = null;
    }
  }