mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
use private notifyPropertyChangeEvent() method in notifyNewDataSource
This commit is contained in:
parent
2ee9b50c62
commit
2e034c19fd
@ -488,16 +488,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
* @param newDataSource new data source added
|
* @param newDataSource new data source added
|
||||||
*/
|
*/
|
||||||
void notifyNewDataSource(Content newDataSource) {
|
void notifyNewDataSource(Content newDataSource) {
|
||||||
|
notifyPropertyChangeEvent(new PropertyChangeEvent(Case.class, Events.DATA_SOURCE_ADDED.toString(), null, newDataSource));
|
||||||
try {
|
|
||||||
pcs.firePropertyChange(Events.DATA_SOURCE_ADDED.toString(), null, newDataSource);
|
|
||||||
} catch (Exception e) {
|
|
||||||
logger.log(Level.SEVERE, "Case threw exception", e); //NON-NLS
|
|
||||||
MessageNotifyUtil.Notify.show(NbBundle.getMessage(this.getClass(), "Case.moduleErr"),
|
|
||||||
NbBundle.getMessage(this.getClass(),
|
|
||||||
"Case.changeCase.errListenToCaseUpdates.msg"),
|
|
||||||
MessageNotifyUtil.MessageType.ERROR);
|
|
||||||
}
|
|
||||||
CoreComponentControl.openCoreWindows();
|
CoreComponentControl.openCoreWindows();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -507,7 +498,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
* @param newTag new ContentTag added
|
* @param newTag new ContentTag added
|
||||||
*/
|
*/
|
||||||
public void notifyContentTagAdded(ContentTag newTag) {
|
public void notifyContentTagAdded(ContentTag newTag) {
|
||||||
notify(new ContentTagAddedEvent(newTag));
|
notifyPropertyChangeEvent(new ContentTagAddedEvent(newTag));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -516,7 +507,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
* @param deletedTag ContentTag deleted
|
* @param deletedTag ContentTag deleted
|
||||||
*/
|
*/
|
||||||
public void notifyContentTagDeleted(ContentTag deletedTag) {
|
public void notifyContentTagDeleted(ContentTag deletedTag) {
|
||||||
notify(new ContentTagDeletedEvent(deletedTag));
|
notifyPropertyChangeEvent(new ContentTagDeletedEvent(deletedTag));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -525,7 +516,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
* @param newTag new BlackboardArtifactTag added
|
* @param newTag new BlackboardArtifactTag added
|
||||||
*/
|
*/
|
||||||
public void notifyBlackBoardArtifactTagAdded(BlackboardArtifactTag newTag) {
|
public void notifyBlackBoardArtifactTagAdded(BlackboardArtifactTag newTag) {
|
||||||
notify(new BlackBoardArtifactTagAddedEvent(newTag));
|
notifyPropertyChangeEvent(new BlackBoardArtifactTagAddedEvent(newTag));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -534,7 +525,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
* @param deletedTag BlackboardArtifactTag deleted
|
* @param deletedTag BlackboardArtifactTag deleted
|
||||||
*/
|
*/
|
||||||
public void notifyBlackBoardArtifactTagDeleted(BlackboardArtifactTag deletedTag) {
|
public void notifyBlackBoardArtifactTagDeleted(BlackboardArtifactTag deletedTag) {
|
||||||
notify(new BlackBoardArtifactTagDeletedEvent(deletedTag));
|
notifyPropertyChangeEvent(new BlackBoardArtifactTagDeletedEvent(deletedTag));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -542,7 +533,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
*
|
*
|
||||||
* @param propertyChangeEvent the event to distribute
|
* @param propertyChangeEvent the event to distribute
|
||||||
*/
|
*/
|
||||||
private void notify(final PropertyChangeEvent propertyChangeEvent) {
|
private void notifyPropertyChangeEvent(final PropertyChangeEvent propertyChangeEvent) {
|
||||||
try {
|
try {
|
||||||
pcs.firePropertyChange(propertyChangeEvent);
|
pcs.firePropertyChange(propertyChangeEvent);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user