Class SuppressibleProjectResourceListener
java.lang.Object
com.inductiveautomation.ignition.designer.project.SuppressibleProjectResourceListener
- All Implemented Interfaces:
ProjectResourceListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet theResourceFilter
used to filter resources this listener cares about.boolean
void
manifestChanged
(String projectName, List<ChangeOperation.ManifestChangeOperation> operation) void
Called after a set of change operations is applied, which may result in multiple calls to toProjectResourceListener.resourcesCreated(String, List)
,ProjectResourceListener.resourcesModified(String, List)
, andProjectResourceListener.resourcesDeleted(String, List)
}.void
Called before a set of change operations is applied, which may result in multiple calls toProjectResourceListener.resourcesCreated(String, List)
,ProjectResourceListener.resourcesModified(String, List)
, andProjectResourceListener.resourcesDeleted(String, List)
}.void
resourcesCreated
(String projectName, List<ChangeOperation.CreateResourceOperation> resources) void
resourcesDeleted
(String projectName, List<ChangeOperation.DeleteResourceOperation> signatures) void
resourcesModified
(String projectName, List<ChangeOperation.ModifyResourceOperation> resources) void
setEnabled
(boolean enabled)
-
Constructor Details
-
SuppressibleProjectResourceListener
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) - Parameters:
enabled
- when set to false, this listener will never invoke it's delegates methods
-
isEnabled
public boolean isEnabled() -
onBeforeChanges
public void onBeforeChanges()Description copied from interface:ProjectResourceListener
Called before a set of change operations is applied, which may result in multiple calls toProjectResourceListener.resourcesCreated(String, List)
,ProjectResourceListener.resourcesModified(String, List)
, andProjectResourceListener.resourcesDeleted(String, List)
}.- Specified by:
onBeforeChanges
in interfaceProjectResourceListener
-
onAfterChanges
public void onAfterChanges()Description copied from interface:ProjectResourceListener
Called after a set of change operations is applied, which may result in multiple calls to toProjectResourceListener.resourcesCreated(String, List)
,ProjectResourceListener.resourcesModified(String, List)
, andProjectResourceListener.resourcesDeleted(String, List)
}.- Specified by:
onAfterChanges
in interfaceProjectResourceListener
-
manifestChanged
public void manifestChanged(String projectName, List<ChangeOperation.ManifestChangeOperation> operation) - Specified by:
manifestChanged
in interfaceProjectResourceListener
-
resourcesCreated
public void resourcesCreated(String projectName, List<ChangeOperation.CreateResourceOperation> resources) - Specified by:
resourcesCreated
in interfaceProjectResourceListener
-
resourcesModified
public void resourcesModified(String projectName, List<ChangeOperation.ModifyResourceOperation> resources) - Specified by:
resourcesModified
in interfaceProjectResourceListener
-
resourcesDeleted
public void resourcesDeleted(String projectName, List<ChangeOperation.DeleteResourceOperation> signatures) - Specified by:
resourcesDeleted
in interfaceProjectResourceListener
-
getResourceFilter
Description copied from interface:ProjectResourceListener
Get theResourceFilter
used to filter resources this listener cares about. Default is to care about all resources.- Specified by:
getResourceFilter
in interfaceProjectResourceListener
- Returns:
- the
ResourceFilter
used to filter resources this listener cares about.
-