eclipseプラグイン開発(ビュー)

2505 ワード

一.ビュープロファイル
  <extension  point="org.eclipse.ui.views">   --- 
      <view
            class="a.views.MyView1"  -- IViewPart 
            id="a.views.myView1"
            name="MyView1"
            restorable="true">
      </view>


   </extension>
 
二.IViewPartインタフェースのコールバックオブジェクトの実装
public class MyView1 implements IViewPart
{

	@Override
	public IViewSite getViewSite()
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void init(IViewSite site) throws PartInitException
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void init(IViewSite site, IMemento memento) throws PartInitException
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void saveState(IMemento memento)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void addPropertyListener(IPropertyListener listener)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void createPartControl(Composite parent)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose()
	{
		// TODO Auto-generated method stub

	}

	@Override
	public IWorkbenchPartSite getSite()
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getTitle()
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Image getTitleImage()
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getTitleToolTip()
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void removePropertyListener(IPropertyListener listener)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void setFocus()
	{
		// TODO Auto-generated method stub

	}

	@Override
	public Object getAdapter(Class adapter)
	{
		// TODO Auto-generated method stub
		return null;
	}

}
 
三.続きます...