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 re... | 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 refr... | 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 o... | 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... | 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 ve... | 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... | 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 pag... | 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 in... | 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 ... | 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 imag... | 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 ... | 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 ... | 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 enti... | 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 ... | 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 fea... | 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 enti... | 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 u... | 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 entit... | 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 na... | 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 m... | 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 imag... | 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 descrip... | 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 descr... | 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 u... | 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... | 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 des... | 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 descripti... | 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 me... | 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 des... | 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 me... | 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 des... | 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... | 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 descripti... | 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 me... | 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 featu... | 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 descrip... | 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 fe... | 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 ... | 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 obje... | 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 n... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.