Search in sources :

Example 6 with SingleInspectionProfilePanel

use of com.intellij.profile.codeInspection.ui.SingleInspectionProfilePanel in project intellij-community by JetBrains.

the class InspectionToolsConfigurable method doReset.

private void doReset() {
    disposeUIResources();
    myAbstractSchemesPanel.reset();
    final InspectionProfileModifiableModel currentModifiableModel = myAbstractSchemesPanel.getModel().getModifiableModelFor(getCurrentProfile());
    myAbstractSchemesPanel.selectScheme(currentModifiableModel);
    showProfile(currentModifiableModel);
    final SingleInspectionProfilePanel panel = getSelectedPanel();
    if (panel != null) {
        //make sure that UI was initialized
        panel.setVisible(true);
        mySelectionAlarm = new Alarm(Alarm.ThreadToUse.SWING_THREAD);
        mySelectionAlarm.cancelAllRequests();
        mySelectionAlarm.addRequest(panel::updateSelection, 200);
    }
}
Also used : InspectionProfileModifiableModel(com.intellij.codeInspection.ex.InspectionProfileModifiableModel) Alarm(com.intellij.util.Alarm) SingleInspectionProfilePanel(com.intellij.profile.codeInspection.ui.SingleInspectionProfilePanel)

Example 7 with SingleInspectionProfilePanel

use of com.intellij.profile.codeInspection.ui.SingleInspectionProfilePanel in project intellij-community by JetBrains.

the class InspectionToolsConfigurable method selectInspectionTool.

@Override
public void selectInspectionTool(String selectedToolShortName) {
    final InspectionProfileModifiableModel inspectionProfile = getSelectedObject();
    final SingleInspectionProfilePanel panel = myAbstractSchemesPanel.getModel().getProfilePanel(inspectionProfile);
    panel.selectInspectionTool(selectedToolShortName);
}
Also used : InspectionProfileModifiableModel(com.intellij.codeInspection.ex.InspectionProfileModifiableModel) SingleInspectionProfilePanel(com.intellij.profile.codeInspection.ui.SingleInspectionProfilePanel)

Aggregations

SingleInspectionProfilePanel (com.intellij.profile.codeInspection.ui.SingleInspectionProfilePanel)7 InspectionProfileModifiableModel (com.intellij.codeInspection.ex.InspectionProfileModifiableModel)4 InspectionProfileImpl (com.intellij.codeInspection.ex.InspectionProfileImpl)3 DescriptionAwareSchemeActions (com.intellij.application.options.schemes.DescriptionAwareSchemeActions)1 FileChooserDescriptor (com.intellij.openapi.fileChooser.FileChooserDescriptor)1 InvalidDataException (com.intellij.openapi.util.InvalidDataException)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 Alarm (com.intellij.util.Alarm)1 IOException (java.io.IOException)1 Path (java.nio.file.Path)1 Element (org.jdom.Element)1 JDOMException (org.jdom.JDOMException)1 NotNull (org.jetbrains.annotations.NotNull)1 Nullable (org.jetbrains.annotations.Nullable)1