1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 12:35:22 +02:00

[225507] @since and @noimplement

This commit is contained in:
David McKnight 2008-04-04 18:49:16 +00:00
parent 4fd8ea2b77
commit e451cbd6d2
2 changed files with 17 additions and 48 deletions

View file

@ -12,25 +12,32 @@
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
* *
* Contributors: * Contributors:
* {Name} (company) - description of contribution. * David McKnight (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types
*******************************************************************************/ *******************************************************************************/
package org.eclipse.dstore.extra; package org.eclipse.dstore.extra;
/** /**
* For DataStore domain notification * 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 addDomainListener(IDomainListener listener);
public void fireDomainChanged(DomainEvent event); public void fireDomainChanged(DomainEvent event);
public boolean hasDomainListener(IDomainListener listener); public boolean hasDomainListener(IDomainListener listener);
public void removeDomainListener(IDomainListener listener); public void removeDomainListener(IDomainListener listener);
/**
* @since 2.1
*/
public void enable(boolean on); public void enable(boolean on);
/**
* @since 2.1
*/
public boolean isEnabled(); public boolean isEnabled();
} }

View file

@ -31,42 +31,6 @@ public class DomainNotifier implements IDomainNotifier
private boolean _enabled; 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() public DomainNotifier()
{ {
_listeners = new ArrayList(); _listeners = new ArrayList();
@ -106,8 +70,6 @@ public class DomainNotifier implements IDomainNotifier
listener.domainChanged(event); listener.domainChanged(event);
} }
} }
//FireMainThread fireJob = new FireMainThread(event);
//fireJob.schedule();
} }
} }