pl.edu.agh.cast.ui
Class AbstractContentProvider

java.lang.Object
  extended by pl.edu.agh.cast.ui.AbstractContentProvider
All Implemented Interfaces:
org.eclipse.jface.viewers.IContentProvider
Direct Known Subclasses:
NavigatorContentProvider, OutlineContentProvider

public abstract class AbstractContentProvider
extends Object
implements org.eclipse.jface.viewers.IContentProvider

This is base class for content providers which are used with viewers in GUI. It provides the basic functionality and fields used in all types of content providers.

Author:
AGH CAST Team

Field Summary
protected  org.eclipse.ui.IMemento configuration
          The configuration of the view.
protected  org.apache.log4j.Logger log
          Logger.
protected  AbstractConfigurableView view
          The view, where this content provider is used (i.e.
protected  org.eclipse.jface.viewers.Viewer viewer
          The viewer which is the master of this content provider (i.e.
 
Constructor Summary
AbstractContentProvider(org.eclipse.jface.viewers.Viewer viewer, AbstractConfigurableView view)
          Basic constructor - initializes this content provider with necessary information.
 
Method Summary
 void dispose()
          The default implementation does not grab any resources, so this method is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
inputChanged
 

Field Detail

view

protected AbstractConfigurableView view
The view, where this content provider is used (i.e. it displays the content provided by this content provider).


viewer

protected org.eclipse.jface.viewers.Viewer viewer
The viewer which is the master of this content provider (i.e. this content provider provides content for this viewer).


configuration

protected org.eclipse.ui.IMemento configuration
The configuration of the view.


log

protected org.apache.log4j.Logger log
Logger.

Constructor Detail

AbstractContentProvider

public AbstractContentProvider(org.eclipse.jface.viewers.Viewer viewer,
                               AbstractConfigurableView view)
Basic constructor - initializes this content provider with necessary information.

Parameters:
viewer - the viewer which is the master of this content provider
view - the view, where this content provider is used
Method Detail

dispose

public void dispose()
The default implementation does not grab any resources, so this method is empty.

Specified by:
dispose in interface org.eclipse.jface.viewers.IContentProvider


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.