public class ActorCalendar
extends org.eclipse.ui.part.ViewPart
implements org.eclipse.jface.viewers.IDoubleClickListener
Modifier and Type | Field and Description |
---|---|
ArrayList<ArrayList<DayProfileActor>> |
actorDayProfilesLists |
ArrayList<DayProfileActor> |
helpList |
ActorResource |
selectedActor |
Constructor and Description |
---|
ActorCalendar()
the constructor which sets the parameters
and specificates the 365 days of the year.
|
Modifier and Type | Method and Description |
---|---|
String |
calculateUnit(double t)
calculates the string of the form "hh:mm:ss" to
a given time of double.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
implements the ui elements in this class, the group to load a model,
the comboBox to choose an Actor, the calendar and the buttons to edit
day profiles and to switch to the ProcessCalendarView.
|
void |
doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event) |
ArrayList<DayProfileActor> |
getDayprofiles() |
ArrayList<DayActor> |
getDays() |
int |
getIndex(String date)
this method gets the index of the day in the list of days
of a given String date
|
ArrayList<Period> |
getPeriodList() |
void |
open(String textO)
this method is performed, when the Buton "Actor Calendar" is clicked
on the view ProcessCalendar.
|
void |
setDayprofiles(ArrayList<DayProfileActor> dayprofiles) |
void |
setFocus() |
void |
setSelectedTimeUnit(String selectedTimeUnit) |
getViewSite, init, init, saveState, setInitializationData
addPartPropertyListener, addPropertyListener, dispose, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ArrayList<ArrayList<DayProfileActor>> actorDayProfilesLists
public ArrayList<DayProfileActor> helpList
public ActorResource selectedActor
public ActorCalendar()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
parent
- the parent composite of this view
(non-Javadoc)WorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)
public int getIndex(String date)
date
- the date of which the index is to getpublic void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
doubleClick
in interface org.eclipse.jface.viewers.IDoubleClickListener
public void setSelectedTimeUnit(String selectedTimeUnit)
public String calculateUnit(double t)
It calculates the string with respect to the time unit.
t
- given time in a time unitpublic void open(String textO)
textO
- the location of the OrganizationEnvironmentModel in the
same Project as the UsageModel in the ProcessCalendarpublic ArrayList<DayProfileActor> getDayprofiles()
public void setDayprofiles(ArrayList<DayProfileActor> dayprofiles)