⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 favorite.java

📁 基于eclipse的工具开发代码
💻 JAVA
字号:
package propertypagetest.model;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.views.properties.IPropertySource;

public class Favorite implements IAdaptable
{
	private String singer;

	private String food;

	private String motto;

	public Favorite(String singer, String food, String motto)
	{
		super();
		this.singer = singer;
		this.food = food;
		this.motto = motto;
	}

	public String getFood()
	{
		return food;
	}

	public void setFood(String food)
	{
		this.food = food;
	}

	public String getMotto()
	{
		return motto;
	}

	public void setMotto(String motto)
	{
		this.motto = motto;
	}

	public String getSinger()
	{
		return singer;
	}

	public void setSinger(String singer)
	{
		this.singer = singer;
	}

	public Object getAdapter(Class adapter)
	{
		if (adapter == IPropertySource.class)
		{
			return new FavoritePropertySource(this);
		}
		return null;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -