Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public Locale getLocale() {
return locale;
}

@Override
public void dispose() {
listeners.clear();
}

/**
* @see org.eclipse.babel.core.message.internal.resource.IMessagesResource#
* addMessagesResourceChangeListener(org.eclipse.babel.core.message.resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public void closeReader(Reader reader) {
*/
@Override
public void dispose() {
super.dispose();
FileMonitor.getInstance().removeFileChangeListener(
this.fileChangeListener, file);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public String getResourceLocationLabel() {
* to file changes: then unsubscribe it.
*/
public void dispose() {
super.dispose();
if (this.listenerRegistry != null) {
this.listenerRegistry.unsubscribe(this.fileListener);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,4 @@ public Object getSource() {
public String getResourceLocationLabel() {
return resourceLocationLabel;
}

/**
* Called before this object will be discarded. Nothing to do: we were not
* listening to changes to this object.
*/
public void dispose() {
// nothing to do.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,4 @@ public String getResourceLocationLabel() {
public void setResourceLocationLabel(String resourceLocationLabel) {
_resourceLocationLabel = resourceLocationLabel;
}

/**
* Called before this object will be discarded. Nothing to do: we were not
* listening to changes to this file ourselves.
*/
public void dispose() {
// nothing to do.
}

}
Loading