edu.stanford.hci.dtools.assetlibrary
Class AssetLibraryView

java.lang.Object
  extended by org.eclipse.ui.part.WorkbenchPart
      extended by org.eclipse.ui.part.ViewPart
          extended by edu.stanford.hci.dtools.assetlibrary.AssetLibraryView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class AssetLibraryView
extends org.eclipse.ui.part.ViewPart

The asset library view. Scrolling code originated at: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet166.java?rev=HEAD

This software is distributed under the BSD License.

Author:
Michael Bernstein ( mbernst(AT)stanford.edu ), Bjoern Hartmann ( bjoern(AT)stanford.edu )

Field Summary
static ImageFileFilter imageFilter
           
static java.lang.String lastDrag
          public static holding the last type of drag that was begun.
static LEDBlinkPatternFileFilter ledFilter
           
static SoundFileFilter soundFilter
           
static VideoFileFilter videoFilter
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
AssetLibraryView()
           
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite eclipseParentComposite)
           
 void refreshScrollingThumbnailPane(int selectionIndex)
           
 void setFocus()
           
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, dispose, getAdapter, getContentDescription, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, showBusy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

imageFilter

public static ImageFileFilter imageFilter

videoFilter

public static VideoFileFilter videoFilter

soundFilter

public static SoundFileFilter soundFilter

ledFilter

public static LEDBlinkPatternFileFilter ledFilter

lastDrag

public static java.lang.String lastDrag
public static holding the last type of drag that was begun. This is necessary because data is not set to a drag until the drop actually occurs, but the EditPolicy needs to know the type of AssetRequest in order to decide whether or not to accept. See http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg02947.html

Constructor Detail

AssetLibraryView

public AssetLibraryView()
Method Detail

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

refreshScrollingThumbnailPane

public void refreshScrollingThumbnailPane(int selectionIndex)

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite eclipseParentComposite)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart