public abstract class InspectionProfileSchemesModel extends java.lang.Object implements SchemesModel<InspectionProfileModifiableModel>
Modifier and Type | Method and Description |
---|---|
boolean |
canDeleteScheme(InspectionProfileModifiableModel candidateToDelete) |
boolean |
canDuplicateScheme(InspectionProfileModifiableModel profile) |
boolean |
canRenameScheme(InspectionProfileModifiableModel profile) |
boolean |
canResetScheme(InspectionProfileModifiableModel profile) |
boolean |
containsScheme(java.lang.String name,
boolean isProjectProfile) |
protected abstract SingleInspectionProfilePanel |
createPanel(InspectionProfileModifiableModel model) |
boolean |
differsFromDefault(InspectionProfileModifiableModel profile) |
static java.util.List<InspectionProfileImpl> |
getSortedProfiles(InspectionProfileManager appManager,
InspectionProfileManager projectManager) |
boolean |
isProjectScheme(InspectionProfileModifiableModel profile) |
protected abstract void |
onProfileRemoved(SingleInspectionProfilePanel profilePanel) |
void |
removeScheme(InspectionProfileModifiableModel profile) |
public boolean canDuplicateScheme(InspectionProfileModifiableModel profile)
canDuplicateScheme
in interface SchemesModel<InspectionProfileModifiableModel>
profile
- The scheme to check.public boolean canResetScheme(InspectionProfileModifiableModel profile)
canResetScheme
in interface SchemesModel<InspectionProfileModifiableModel>
profile
- The scheme to check.SchemesModel.differsFromDefault(Scheme)
public boolean canDeleteScheme(InspectionProfileModifiableModel candidateToDelete)
canDeleteScheme
in interface SchemesModel<InspectionProfileModifiableModel>
candidateToDelete
- The scheme to check.public boolean isProjectScheme(InspectionProfileModifiableModel profile)
isProjectScheme
in interface SchemesModel<InspectionProfileModifiableModel>
profile
- The scheme to check.false
if project schemes are not supported.public boolean canRenameScheme(InspectionProfileModifiableModel profile)
canRenameScheme
in interface SchemesModel<InspectionProfileModifiableModel>
profile
- The scheme to check.public boolean containsScheme(java.lang.String name, boolean isProjectProfile)
containsScheme
in interface SchemesModel<InspectionProfileModifiableModel>
name
- The scheme to check.isProjectProfile
- Level of the scheme to check. If schemes model does not support project level schemes
then the parameter is always equal to false.public boolean differsFromDefault(InspectionProfileModifiableModel profile)
differsFromDefault
in interface SchemesModel<InspectionProfileModifiableModel>
profile
- The scheme to check.SchemesModel.canResetScheme(Scheme)
returns true
.public void removeScheme(InspectionProfileModifiableModel profile)
removeScheme
in interface SchemesModel<InspectionProfileModifiableModel>
protected abstract void onProfileRemoved(SingleInspectionProfilePanel profilePanel)
protected abstract SingleInspectionProfilePanel createPanel(InspectionProfileModifiableModel model)
public static java.util.List<InspectionProfileImpl> getSortedProfiles(InspectionProfileManager appManager, InspectionProfileManager projectManager)