input
stringlengths
10
828
output
stringlengths
5
107
public void set selected boolean b revision data set selected b redraw
toggles the selection state
public boolean is selected return revision data is selected
returns true if selected
public int compare viewer viewer object o1 object o2 string e1 string o1 string e2 string o2 int result 0 if e1 null e2 null result super compare viewer o1 o2 else int column sort order sort orders by column column number for int i 0 i column sort order length i result e1 column number compare to e2 column number if result 0 break if reversed result result return result
compares two log entries sorting first by the main column of this sorter
public void init viewer connectors new connect arrows this swt none connectors set layout null this set content connectors this get vertical bar set increment width this get horizontal bar set increment height
initializes the tree view widget
public void clear selection manager clear selection current revivion null remove all widgets connectors clear connectors connectors redraw
removes all components from the view
public void widget selected selection event e column selected need to sort int column table viewer get table index of table column e widget value sorter old sorter value sorter table viewer get sorter if old sorter null column old sorter get column number old sorter set reversed old sorter is reversed table viewer refresh else table viewer set sorter new value sorter column
handles the case of user selecting the
public void set selected element irevision element selection clear selection add element last selected element element
clears the selection adds an element to the selection
public void set selected elements list irevision elements selection clear if elements is empty last selected element null else selection add all elements last selected element elements get 0
clears the selection and adds the elements to the selection
public void add selected element irevision element selection add element last selected element element
adds an element to the selection
public void add selected elements list irevision elements if elements is empty selection add all elements last selected element elements get 0
adds a set of elements to the selection and sets the first element
public void remove selected element object element if selection contains element selection remove element last selected element element
removes an element from the selection if it is contained in it
public boolean contains object element return selection contains element
returns true if the element is in the selection
public void clear selection clear
removes all elements from the selection
public void show resize content widget point size connectors compute size swt default swt default size x border size y border connectors set size size scroll to current revision if current revivion null scroll to revision current revivion
computes the size of the view
private void scroll to revision revision revision rectangle rev bounds revision get bounds rectangle client area get client area client area x get origin x client area y get origin y if client area contains rev bounds x rev bounds y client area contains rev bounds x rev bounds width rev bounds y rev bounds height set origin rev bounds x rev bounds y
scrolls the content so that the given revision is visible
public boolean has branch tags return num tags cvstag branch 0
uses cvslog to return whether any branches from this revision exist
private int num tags int tagname cvstag tags log entry get tags int count 0 for int i 0 i tags length i cvstag tag tags i if tag get type tagname count return count
generalization of all has num x calls counts tags of a specific type
public string get branch prefix string revision log entry get revision if revision length 0 revision last index of 1 throw new runtime exception revision malformed revision string branch number revision substring 0 revision last index of if branch number last index of 1 branch number equals ibranch vendor prefix return branch number string branch prefix branch number substring 0 branch number last index of 0 branch number substring branch number last index of return branch prefix non nls 1
returns the branch prefix from the revision number
private void remove all widgets control childs connectors get children for int i 0 i childs length i control control childs i control set menu null control dispose reload prefrences
removes all widgets from the content pane
public string get revision suffix string revision log entry get revision return revision substring revision last index of 1 revision length
returns the revision suffix from the revision number
public int compare to irevision other if other instanceof revision data revision data rev revision data other if this get revision equals irevision initial revision return 1 if rev get revision equals irevision initial revision return 1 return log entry get date compare to rev log entry get date return 1
revisions are compared based on their revsion date
private void reload prefrences ipreference store store version tree plugin get default get preference store hspacing store get int version tree plugin p default hspacing vspacing store get int version tree plugin p default vspacing height store get int version tree plugin p default element height width store get int version tree plugin p default element width
reloads some layout relevant preferences from the preference store
public istructured selection get selection return selection manager get structured selection
returns the elements currently selected
public boolean equals object obj if obj instanceof revision data revision data rev revision data obj return this get revision equals rev get revision else return false
compares revision data objects based on the revsion
public void mouse double click mouse event e if e get source instanceof revision e button 1 log selection listener log entry double clicked selection manager get structured selection
forwards double clicks to the log entry listener
private void redraw all control childs connectors get children for int i 0 i childs length i childs i redraw
redraws all childs
private void create branches ilog entry log entry cvstag tags log entry get tags for int j tags length 1 j 0 j if tags j get type cvstag branch string branch number tags j get branch number create branch log entry get revision branch number tags j get name
creates all branches for the given log entry including
public ibranch get head branch return head branch
gets head branch for decension
public iselection provider get selection provider return selection manager
returns the selection provider for the tree view
public void show version tree iresource resource if resource null resource instanceof ifile ifile file ifile resource set file file repository provider team provider repository provider get provider file get project cvsprovider plugin get type id if team provider null try for a file this will return the base icvsremote file remote file icvsremote file cvsworkspace root get remote resource for file show version tree remote file catch team exception e cvsuiplugin open error get view site get shell null null e else set file null this set current entry null tree view clear
shows the version tree for the given iresource in the view
public void show version tree icvsremote file remote file if remote file null get log entries remote file
shows the version tree for the given icvsremote file in the view
public void render current version tree render version tree branch tree
relayouts and draws the current tree without connecting to the cvs
public void set focus tree view set focus
passing the focus request to the viewers control
public void set linking enabled boolean enabled linking enabled enabled remember the last setting in the dialog settings settings set value version tree plugin p history view editor linking enabled if turning linking on update the selection to correspond to the active editor if enabled editor activated get site get page get active editor
enabled linking to the active editor
private boolean is linking enabled return linking enabled
returns if linking to the ative editor is enabled or disabled
protected void editor activated ieditor part editor only fetch contents if the view is shown in the current page if editor null is linking enabled check if page is visible return ieditor input input editor get editor input ifile file resource util get file input show version tree file
an editor has been activated
private void refresh show version tree get file
refresh the view by refetching the log entries for the remote file
public void log entry selected ilog entry log return if file is already selected if get current entry get revision equals log get revision return update display set current entry log
display details of selected log
public void log entry double clicked istructured selection selection open action delegate selection changed null selection open action delegate run null
open selected revision
public vector clock get vector clock return vector clock
returned de vector clock
public void register drawing surface rdesktop jpanel surface this surface surface surface register cache cache
register an rdesktop jpanel with this orders object
public void register cache cache cache orders jpanel cache cache
set current cache
private jbutton get jbutton if j button null j button new jbutton j button set text send event j button add action listener new java awt event action listener public void action performed java awt event action event e if rdp null rdp send input input jpanel get time integer decode input type field get text int value integer decode flags field get text int value integer decode param1 field get text int value integer decode param2 field get text int value return j button
this method initializes j button
public void register comm layer rdp jpanel rdp this rdp rdp if fb keys null input new input localised jpanel this rdp fb keys
register the rdp layer to act as the communications interface to this
public void clear channels new vchannel max channels num channels 0
remove all registered virtual channels
public void put image int x int y int cx int cy int data backstore set rgbno conversion x y cx cy data 0 drawing entire image no offset needed cx this repaint all x y cx cy
draw an image from an integer array of colour data to the backstore
public void send one by keys rdp5 if input jpanel key code send key presses 78 input jpanel key code false else send key presses 58 input jpanel key code true integer keycode new integer 106 pressed keys remove element keycode send key presses
send one by split info
public input jpanel get input return input
return input instance associated with this canvas
private string get icon html abstract file file string name and extension file get name split int extension index name and extension length 0 name and extension length 1 0 if file is directory return get icons folder icon get html else if is image name and extension extension index return get icons photo icon get html else if is video name and extension extension index return get icons film icon get html else if is music name and extension extension index return get icons music icon get html else return get icons page icon get html
decides what icon will represent a file based on its extension
public adapter create document root history adapter return null
creates a new adapter for an object of class
public adapter create system history adapter return null
creates a new adapter for an object of class
public adapter create system version adapter return null
creates a new adapter for an object of class
public void init iworkbench workbench istructured selection selection this workbench workbench this selection selection set window title domain editor plugin instance get string ui wizard label set default page image descriptor extended image registry instance get image descriptor domain editor plugin instance get image full wizban new domain
this just records the information
protected void add revision number property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui system version revision number feature get string ui property descriptor description ui system version revision number feature ui system version type domain package literals system version revision number true false false item property descriptor generic value image null null
this adds a property descriptor for the revision number feature
protected void add full qualified name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui entity full qualified name feature get string ui property descriptor description ui entity full qualified name feature ui entity type domain package literals entity full qualified name true false false item property descriptor generic value image null null
this adds a property descriptor for the full qualified name feature
protected void add kind property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui entity kind feature get string ui property descriptor description ui entity kind feature ui entity type domain package literals entity kind true false false item property descriptor generic value image null null
this adds a property descriptor for the kind feature
protected void add container name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui entity container name feature get string ui property descriptor description ui entity container name feature ui entity type domain package literals entity container name true false false item property descriptor generic value image null null
this adds a property descriptor for the container name feature
protected void add location property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui entity location feature get string ui property descriptor description ui entity location feature ui entity type domain package literals entity location true false false item property descriptor generic value image null null
this adds a property descriptor for the location feature
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui entity name feature get string ui property descriptor description ui entity name feature ui entity type domain package literals entity name true false false item property descriptor generic value image null null
this adds a property descriptor for the name feature
protected void add parent property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui entity parent feature get string ui property descriptor description ui entity parent feature ui entity type domain package literals entity parent true false true null null null
this adds a property descriptor for the parent feature
protected void add revision number property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui entity revision number feature get string ui property descriptor description ui entity revision number feature ui entity type domain package literals entity revision number true false false item property descriptor generic value image null null
this adds a property descriptor for the revision number feature
protected string get label string type name try return domain edit plugin instance get string ui type name type catch missing resource exception mre domain editor plugin instance log mre return type name
returns the label for the specified type name
protected void add short name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric short name feature get string ui property descriptor description ui metric short name feature ui metric type domain package literals metric short name true false false item property descriptor generic value image null null
this adds a property descriptor for the short name feature
protected void add value property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric value feature get string ui property descriptor description ui metric value feature ui metric type domain package literals metric value true false false item property descriptor generic value image null null
this adds a property descriptor for the value feature
public adapter create metric description type adapter return null
creates a new adapter for an object of class
public adapter create metric results type adapter return null
creates a new adapter for an object of class
public adapter create metric type adapter return null
creates a new adapter for an object of class
public void init iworkbench workbench istructured selection selection this workbench workbench this selection selection set window title reader editor plugin instance get string ui wizard label set default page image descriptor extended image registry instance get image descriptor reader editor plugin instance get image full wizban new domain
this just records the information
protected string get label string type name try return reader edit plugin instance get string ui type name type catch missing resource exception mre reader editor plugin instance log mre return type name
returns the label for the specified type name
protected void add system history property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui document root history system history feature get string ui property descriptor description ui document root history system history feature ui document root history type domain package literals document root history system history true false true null null null
this adds a property descriptor for the system history feature
protected void add container name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type container name feature get string ui property descriptor description ui metric description type container name feature ui metric description type type mtbl domain package literals metric description type container name true false false item property descriptor generic value image null null
this adds a property descriptor for the container name feature
protected void add end offset property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type end offset feature get string ui property descriptor description ui metric description type end offset feature ui metric description type type mtbl domain package literals metric description type end offset true false false item property descriptor integral value image null null
this adds a property descriptor for the end offset feature
protected void add fqname property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type fqname feature get string ui property descriptor description ui metric description type fqname feature ui metric description type type mtbl domain package literals metric description type fqname true false false item property descriptor generic value image null null
this adds a property descriptor for the fqname feature
protected void add kind property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type kind feature get string ui property descriptor description ui metric description type kind feature ui metric description type type mtbl domain package literals metric description type kind true false false item property descriptor integral value image null null
this adds a property descriptor for the kind feature
protected void add is comparation property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric results type is comparation feature get string ui property descriptor description ui metric results type is comparation feature ui metric results type type mtbl domain package literals metric results type is comparation true false false item property descriptor generic value image null null
this adds a property descriptor for the is comparation feature
protected void add language property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type language feature get string ui property descriptor description ui metric description type language feature ui metric description type type mtbl domain package literals metric description type language true false false item property descriptor generic value image null null
this adds a property descriptor for the language feature
protected void add line property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type line feature get string ui property descriptor description ui metric description type line feature ui metric description type type mtbl domain package literals metric description type line true false false item property descriptor integral value image null null
this adds a property descriptor for the line feature
protected void add location property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type location feature get string ui property descriptor description ui metric description type location feature ui metric description type type mtbl domain package literals metric description type location true false false item property descriptor generic value image null null
this adds a property descriptor for the location feature
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type name feature get string ui property descriptor description ui metric description type name feature ui metric description type type mtbl domain package literals metric description type name true false false item property descriptor generic value image null null
this adds a property descriptor for the name feature
protected void add offset property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type offset feature get string ui property descriptor description ui metric description type offset feature ui metric description type type mtbl domain package literals metric description type offset true false false item property descriptor integral value image null null
this adds a property descriptor for the offset feature
protected void add project name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type project name feature get string ui property descriptor description ui metric description type project name feature ui metric description type type mtbl domain package literals metric description type project name true false false item property descriptor generic value image null null
this adds a property descriptor for the project name feature
protected void add resource property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type resource feature get string ui property descriptor description ui metric description type resource feature ui metric description type type mtbl domain package literals metric description type resource true false false item property descriptor generic value image null null
this adds a property descriptor for the resource feature
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric type name feature get string ui property descriptor description ui metric type name feature ui metric type type mtbl domain package literals metric type name true false false item property descriptor generic value image null null
this adds a property descriptor for the name feature
protected void add resource name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type resource name feature get string ui property descriptor description ui metric description type resource name feature ui metric description type type mtbl domain package literals metric description type resource name true false false item property descriptor generic value image null null
this adds a property descriptor for the resource name feature
protected void add value property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric type value feature get string ui property descriptor description ui metric type value feature ui metric type type mtbl domain package literals metric type value true false false item property descriptor real value image null null
this adds a property descriptor for the value feature
protected void add timestamp property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui metric description type timestamp feature get string ui property descriptor description ui metric description type timestamp feature ui metric description type type mtbl domain package literals metric description type timestamp true false false item property descriptor integral value image null null
this adds a property descriptor for the timestamp feature
protected void set fixture metric description type fixture this fixture fixture
sets the fixture for this metric description type test case
protected metric description type get fixture return fixture
returns the fixture for this metric description type test case
protected void set fixture metric type fixture this fixture fixture
sets the fixture for this metric type test case
protected metric type get fixture return fixture
returns the fixture for this metric type test case
protected void set fixture metric results type fixture this fixture fixture
sets the fixture for this metric results type test case
protected metric results type get fixture return fixture
returns the fixture for this metric results type test case
public diagnostic analyze resource problems resource resource exception exception if resource get errors is empty resource get warnings is empty basic diagnostic basic diagnostic new basic diagnostic diagnostic error br pucrio les systemhistory editor 0 get string ui create model error message resource get uri new object exception null object resource exception basic diagnostic merge ecore util compute diagnostic resource true return basic diagnostic else if exception null return new basic diagnostic diagnostic error br pucrio les systemhistory editor 0 get string ui create model error message resource get uri new object exception else return diagnostic ok instance
returns a diagnostic describing the errors and warnings listed in the resource
public diagnostic analyze resource problems resource resource exception exception if resource get errors is empty resource get warnings is empty basic diagnostic basic diagnostic new basic diagnostic diagnostic error br pucrio les systemhistory reader editor 0 get string ui create model error message resource get uri new object exception null object resource exception basic diagnostic merge ecore util compute diagnostic resource true return basic diagnostic else if exception null return new basic diagnostic diagnostic error br pucrio les systemhistory reader editor 0 get string ui create model error message resource get uri new object exception else return diagnostic ok instance
returns a diagnostic describing the errors and warnings listed in the resource
public void set edit boolean edit this bool edit edit
set new value of edit
public boolean get edit return this bool edit
get if is available edit mode
public file get obr folder return this obr folder
return folder of pictures
public int get method return this int load method
getting loading method
public void set text obr string text this str popis obr text
setting description of picture
public string get text obr return this str popis obr
getting description of picture