org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview
Class HistoryBrowserView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.HistoryBrowserView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, ProjectSpaceContainer, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class HistoryBrowserView
extends org.eclipse.ui.part.ViewPart
implements ProjectSpaceContainer

This eclipse views displays the version history of EMFStore.

Author:
wesendon, Aumann, Hodaie, Shterev

Field Summary
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
HistoryBrowserView()
           
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 ProjectSpace getProjectSpace()
          Retrieve the project space of the container.
 void refresh()
          Reloads the view with the current parameters.
 void setFocus()
           
 void setInput(org.eclipse.emf.ecore.EObject input)
          Displays the history for the given input.
 void setInput(ESLocalProject localProject)
          Sets a ESLocalProject as an input for the view.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, 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, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

HistoryBrowserView

public HistoryBrowserView()
Method Detail

getProjectSpace

public ProjectSpace getProjectSpace()
Retrieve the project space of the container.

Specified by:
getProjectSpace in interface ProjectSpaceContainer
Returns:
the project space

createPartControl

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

refresh

public void refresh()
Reloads the view with the current parameters.


setInput

public void setInput(org.eclipse.emf.ecore.EObject input)
Displays the history for the given input.

Parameters:
input - eobject in projectspace or projectspace itself

setInput

public void setInput(ESLocalProject localProject)
Sets a ESLocalProject as an input for the view. The history for the input will be shown.

Parameters:
localProject - the project to show the history for.

dispose

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

setFocus

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


Copyright © 2015. All Rights Reserved.