eclipse plugin: Remove unnecessary classes
This commit is contained in:
parent
ae3f8ca4bf
commit
239a0f7d33
2 changed files with 0 additions and 114 deletions
|
@ -1,58 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010 - 2011 by Timotei Dolean <timotei21@gmail.com>
|
||||
*
|
||||
* This program and the accompanying materials are made available
|
||||
* under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.wesnoth.ui.emf;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.eclipse.emf.common.notify.Adapter;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.Notifier;
|
||||
|
||||
/**
|
||||
* An adapter that provides storage for data in a hashmap
|
||||
*/
|
||||
public class HashMapStorageAdapter implements Adapter
|
||||
{
|
||||
private HashMap<String, Object> data_;
|
||||
private Notifier notifier_;
|
||||
|
||||
public HashMapStorageAdapter()
|
||||
{
|
||||
data_ = new HashMap<String, Object>();
|
||||
}
|
||||
|
||||
public void setData(String name, Object data)
|
||||
{
|
||||
data_.put(name, data);
|
||||
}
|
||||
|
||||
public Object getData(String name)
|
||||
{
|
||||
return data_.get(name);
|
||||
}
|
||||
|
||||
public Notifier getTarget()
|
||||
{
|
||||
return notifier_;
|
||||
}
|
||||
|
||||
public boolean isAdapterForType(Object arg0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void notifyChanged(Notification arg0)
|
||||
{
|
||||
}
|
||||
|
||||
public void setTarget(Notifier arg0)
|
||||
{
|
||||
notifier_ = arg0;
|
||||
}
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010 - 2011 by Timotei Dolean <timotei21@gmail.com>
|
||||
*
|
||||
* This program and the accompanying materials are made available
|
||||
* under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*******************************************************************************/
|
||||
package org.wesnoth.ui.emf;
|
||||
|
||||
import org.eclipse.emf.common.notify.Adapter;
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.Notifier;
|
||||
|
||||
/**
|
||||
* A simple adapter that stores an object
|
||||
*/
|
||||
public class ObjectStorageAdapter implements Adapter
|
||||
{
|
||||
private Object object_;
|
||||
private Notifier notifier_;
|
||||
|
||||
public ObjectStorageAdapter(Object data)
|
||||
{
|
||||
object_ = data;
|
||||
}
|
||||
|
||||
public Object getObject()
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
public void setObject(Object obj)
|
||||
{
|
||||
object_ = obj;
|
||||
}
|
||||
|
||||
public Notifier getTarget()
|
||||
{
|
||||
return notifier_;
|
||||
}
|
||||
|
||||
public boolean isAdapterForType(Object arg0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void notifyChanged(Notification arg0)
|
||||
{
|
||||
}
|
||||
|
||||
public void setTarget(Notifier arg0)
|
||||
{
|
||||
notifier_ = arg0;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue