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 java.lang.Object
implements org.eclipse.jface.viewers.IContentProvider

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

Author:
Aleksander Pohl apohllo[at]o2.pl

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-2008 AGH University of Science and Technology. All Rights Reserved.