mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 06:35:28 +02:00
[225507] @since and @noimplement
This commit is contained in:
parent
4fd8ea2b77
commit
e451cbd6d2
2 changed files with 17 additions and 48 deletions
|
@ -12,25 +12,32 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* David McKnight (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.extra;
|
||||
|
||||
|
||||
/**
|
||||
* For DataStore domain notification
|
||||
*
|
||||
*
|
||||
* @noimplement This interface is not intended to be implemented by clients.
|
||||
*/
|
||||
public interface IDomainNotifier
|
||||
{
|
||||
public interface IDomainNotifier {
|
||||
public void addDomainListener(IDomainListener listener);
|
||||
|
||||
public void fireDomainChanged(DomainEvent event);
|
||||
|
||||
public void addDomainListener(IDomainListener listener);
|
||||
public void fireDomainChanged(DomainEvent event);
|
||||
public boolean hasDomainListener(IDomainListener listener);
|
||||
public void removeDomainListener(IDomainListener listener);
|
||||
|
||||
public boolean hasDomainListener(IDomainListener listener);
|
||||
|
||||
public void removeDomainListener(IDomainListener listener);
|
||||
|
||||
/**
|
||||
* @since 2.1
|
||||
*/
|
||||
public void enable(boolean on);
|
||||
|
||||
/**
|
||||
* @since 2.1
|
||||
*/
|
||||
public boolean isEnabled();
|
||||
}
|
||||
|
|
|
@ -30,43 +30,7 @@ public class DomainNotifier implements IDomainNotifier
|
|||
private ArrayList _listeners;
|
||||
|
||||
private boolean _enabled;
|
||||
|
||||
/*
|
||||
public class FireMainThread extends Job
|
||||
{
|
||||
public boolean _isWorking;
|
||||
|
||||
private DomainEvent _event;
|
||||
|
||||
public FireMainThread(DomainEvent event)
|
||||
{
|
||||
super("DStore Events Fired");
|
||||
_isWorking = false;
|
||||
_event = event;
|
||||
setPriority(Job.INTERACTIVE);
|
||||
}
|
||||
|
||||
public IStatus run(IProgressMonitor monitor)
|
||||
{
|
||||
_isWorking = true;
|
||||
|
||||
if (_event.getType() != DomainEvent.FILE_CHANGE)
|
||||
{
|
||||
for (int i = 0; i < _listeners.size(); i++)
|
||||
{
|
||||
IDomainListener listener = (IDomainListener) _listeners.get(i);
|
||||
if ((listener != null) && listener.listeningTo(_event))
|
||||
{
|
||||
listener.domainChanged(_event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_isWorking = false;
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
}
|
||||
*/
|
||||
public DomainNotifier()
|
||||
{
|
||||
_listeners = new ArrayList();
|
||||
|
@ -106,8 +70,6 @@ public class DomainNotifier implements IDomainNotifier
|
|||
listener.domainChanged(event);
|
||||
}
|
||||
}
|
||||
//FireMainThread fireJob = new FireMainThread(event);
|
||||
//fireJob.schedule();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue