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);
}
}
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);
}
Aggregations