input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public jcomponent get satellite view return scene create satellite view | method get satellite view |
public void set files list file table row files model clear location null for file table row file files if location null location file get location model add element file | method set files |
public boolean was ok pressed return ok pressed | method was ok pressed |
public void build scene revision graph scene scene graph tree widget parent int index graph tree tree graph tree widget w add node scene tree parent index int local index 0 for graph tree node tree if node is label local index build scene scene w local index node | method build scene |
public string get message return message area get text | method get message |
public string get property string name for svnproperty data row data if row get name equals name return row get value get string return null | method get property |
public boolean is recursive return recursive check box is selected | method is recursive |
public void add property string name string value int row index 0 for svnproperty data row data if row get name equals name data remove row if value null value trim length 0 fire table rows deleted row index row index else data add row index new svnproperty data name svnproperty value create value null fire table cell updated row index 1 return row index if value null value trim length 0 data add row index new svnproperty data name svnproperty value create value null fire table rows inserted row index row index | method add property |
public svnrepository get repository return repository | method get repository |
public void get child entries collection svndir entry entries throws svnexception repository get dir get path 1 null entries | method get child entries |
public string get path string string if parent null string parent get path if path null string path get relative path return string | method get path |
public string get repo path string string if parent null string parent get repo path if path null string path get relative path else string repository get location to string return string | method get repo path |
public boolean is folder return path null path get kind svnnode kind dir | method is folder |
public void start loading loaded true loading true | method start loading |
public void stop loading loading false | method stop loading |
public void load repo string url boolean focus search if url null url equals this url this url url root create root node url recursive model new default tree model root model set asks allows children true repo tree set model model repo tree expand row 0 if focus search search text field request focus start worker default mutable tree node model get root location field set selected item url | method load repo |
public void set log list svnlog entry history data clear min revision long max value max revision long min value for svnlog entry entry history min revision math min min revision entry get revision max revision math max max revision entry get revision data add entry table model fire table data changed | method set log |
public void set committed revision long commit revision boolean modified this commit revision commit revision this modified modified | method set committed revision |
public void set file row location location boolean diff boolean update boolean revert this location location change set popup menu new history popup menu false diff update revert false file popup menu new history popup menu true diff update revert false j table1 set component popup menu change set popup menu j list1 set component popup menu file popup menu | method set file row |
public boolean did accept return accept | method did accept |
public void set accept text string text accept action put value action name text accept button set visible true | method set accept text |
public void set multi select boolean b if b j table1 set selection mode javax swing list selection model multiple interval selection else j table1 set selection mode javax swing list selection model single selection | method set multi select |
public svnlog entry get log entry return log entry | method get log entry |
public void set message text string message this message message | method set message text |
public location get log location return log location | method get log location |
public date get date return log entry get date | method get date |
public void set map map string string properties this properties properties | method set map |
public string get author return log entry get author | method get author |
public long get revision return log entry get revision | method get revision |
public map get changed paths return log entry get changed paths | method get changed paths |
public void set comparator comparator comp if comp null sort order sort order unordered comparator collator get instance reset model data else comparator comp collections sort sorted model fire contents changed list data event contents changed 0 sorted model size 1 | method set comparator |
public svnlog entry get last entry return last | method get last entry |
public preferences get preferences if preferences null preferences preferences user node for package svnapp class return preferences | method get preferences |
public void set preferences string repo name string uuid if current uuid equals uuid if uuid null current uuid uuid preferences preferences user node for package svnapp class node uuid preferences put repo repo name else current uuid preferences preferences user node for package svnapp class reset svnclient manager | method set preferences uuid |
public void set items string state copy state state | method set items |
public void set text string state text state | method set text |
public void reset svnclient manager if client manager null client manager dispose client manager svnclient manager new instance options null null client manager set authentication manager login dialog auth manager | method reset svnclient manager |
public svninfo get file info file file try return get svnclient manager get wcclient do info file svnrevision working catch svnexception svne return null | method get file info |
public svnurl get root url file file svninfo info get file info file if info null return info get repository root url else return null | method get root url |
public string get url return server branch path | method get url |
public string get url string new path return server branch new path | method get url |
public file get working copy base return working copy base | method get working copy base |
public boolean is commitable boolean file modified status char at 0 a status char at 0 r status char at 0 status char at 0 d status char at 0 m status char at 0 c boolean folder modified status char at 1 c status char at 1 m return file modified folder modified | method is commitable |
public file table row get row int row index return rows get row index | method get row |
public int index of object object return rows index of object | method index of |
public void add rows list file table row file table rows if file table rows null file table rows size 0 int index rows size int count 0 for file table row file table row new linked list file table row file table rows rows add file table row count fire table rows inserted index index count 1 | method add rows |
public boolean is conflict boolean file modified status char at 0 c boolean folder modified status char at 1 c return file modified folder modified | method is conflict |
private void process internal diff file left file file right file boolean left read only boolean right read only for diff view diff view diff view loader try diff view execute diff left file get path right file get path left read only right read only catch exception ex java util logging logger get logger diff task class get name log level severe null ex break | use the internal diff function to do the comparison |
public boolean is ignored return status char at 0 i | method is ignored |
public boolean is missing return status char at 0 | method is missing |
public boolean needs update return status char at 6 | method needs update |
public long get revision return revision | method get revision |
public long get commit revision return committed revision | method get commit revision |
public string get selected path return selected repo path | method get selected path |
public boolean find node boolean next tree node node null tree path path repo tree get selection path if path null node tree node path get last path component if node null node root return find node default mutable tree node node next | method find node |
public boolean find node default mutable tree node start boolean next tree node found find node by name search text field get text start next if found null tree path path new tree path model get path to root found repo tree scroll path to visible path repo tree set selection path path return true else toolkit get default toolkit beep if start root find node root false return false | method find node |
public boolean is internal diff availalbe return diff task is internal diff available | method is internal diff availalbe |
public boolean is false return false | method is false |
public void set false boolean b | method set false |
public svnurl get root url return svn app get root url new file get working folder | method get root url |
public svnurl get url svninfo info svn app get file info new file get working folder return info get url | method get url |
public string show repo view boolean modal boolean recursive svnurl url get root url string url string null if url null url string url to string if repo view null repo view new repo tree view svn app get main frame modal url string recursive repo view load repo url string true repo view set visible true if modal string repo repo view get selected path system out println repo repo return repo else return null | method show repo view |
public void fix buttons show changed tb changed is selected show updated tb updated is selected show added tb added is selected show removed tb removed is selected show conflicts tb conflicts is selected show missing tb show missing is selected hide missing tb hide missing is selected show unknown tb show unknown is selected hide unknown tb hide unknown is selected show ignored tb show ignored is selected table filter set text update tool bar | method fix buttons |
public void do refresh string message boolean wait boolean updated final task refresh refresh message updated if refresh null runnable runnable new runnable override public void run try thread sleep 250 catch interrupted exception ex logger get logger svnapp view class get name log level severe null ex svn app get context get task service execute refresh if wait try swing utilities invoke and wait runnable catch interrupted exception ex catch invocation target exception ex else swing utilities invoke later runnable | method do refresh |
public void set logged in boolean b boolean old is logged in if old b this logged in b fire property change logged in old is logged in login menu item set tool tip text currently logged in as svn app get preferences get username no one | method set logged in |
public boolean is table populated return table populated | method is table populated |
public void set table populated boolean b boolean old is table populated if old b this table populated b fire property change table populated old is table populated | method set table populated |
public boolean is row selected return row selected | method is row selected |
public boolean is single row selected return single row selected | method is row selected |
public boolean is two rows selected return two rows selected | method is two rows selected |
public boolean is commitable selected return commitable selected | method is commitable selected |
public boolean is revertable selected return revertable selected | method is commitable selected |
public boolean is conflict selected return conflict selected | method is conflict selected |
public boolean is addable selected return addable selected | method is addable selected |
public boolean is jindent enabled return row selected svn app get preferences get jindent program null null | method is jindent enabled |
public boolean is diff enabled return row selected is internal diff availalbe svn app get preferences get diff program null null | method is diff enabled |
public boolean is graph enabled return row selected graph task is graph view available | method is diff enabled |
public boolean is repo empty string repo tf repository get text return repo null repo length 0 | method is repo empty |
public boolean is repo set string repo tf repository get text return repo null repo length 0 | method is repo set |
public void set repo string string long version string uuid string old string tf repository get text string new string string if version 0 new string version if old string equals new string system out println setting repo new string boolean old value old string null old string length 0 boolean new value new string null new string length 0 svn app set preferences string uuid tf repository set text new string fire property change repo set old value new value fire property change repo empty old value new value reset buttons | method set repo |
public boolean is jnlp enabled return jnlp enabled | method is jnlp enabled |
public void set jnlp enabled boolean b boolean old is jnlp enabled this jnlp enabled b fire property change jnlp enabled old is jnlp enabled | method set jnlp enabled |
public void set tab list tab tab this tab tab | sets the tab |
public void check names element element log check names element implement name checks with a visitor but expose that functionality through this method instead name check scanner scan element | if the name of the argument or its enclosed elements violates the |
private user story user story annotation story ref annotation user story user story new user story user story description story ref annotation class behaviour sorter if user stories contains user story return from user stories equal to user story else user stories add user story return user story | adds a userstory if it doesnt exist |
public user story user story for user story description user story description return from user stories equal to new user story user story description | gets the user story given by the criteria |
private string remove package and parent class name string full class name string class name full class name if class name contains string split on dot class name split class name split on dot split on dot length 1 if class name contains string split on inner class class name split class name split on inner class split on inner class length 1 return class name | removes the package and parent class name from a full class name |
public string camel case sentence string camel case sentence get name if camel case sentence equals ignore case test return camel case sentence if camel case sentence starts with test method prefix camel case sentence camel case sentence substring test method prefix length camel case sentence camel case sentence substring 0 1 to lower case camel case sentence substring 1 camel case sentence length return camel case sentence | gets the camel case sentence from the testmethod removing test if junit |
private boolean heuristically constant variable element e log heuristically constant e fields declared in interfaces are logically constants jlsv3 section 9 3 if e get enclosing element get kind interface return true else if e get kind field e get modifiers contains all enum set of public static final return true else a parameter declared final should not be named like a constant neither should exception parameters return false | using heuristics return |
public boolean is test boolean test method false boolean ignore false annotation annotations method get annotations for annotation annotation annotations string name annotation annotation type get name if name ends with test test method true else if name ends with ignore ignore true if test method ignore return true if method get name starts with test method prefix return true return false | tells if the metod is a test method |
public void x | just a short public methods to check for trouble |
public void accept environment env throws ioexception env get out write text | simply outputs the text |
public void add ing ing ing persistence manager pm pmf get get persistence manager try ing set create date new date pm make persistent ing finally pm close | title add post |
public void add options options options persistence manager pm pmf get get persistence manager try pm make persistent options finally pm close | title add options |
public string get options string id persistence manager pm pmf get get persistence manager query query pm new query options class query set filter id id param query declare parameters string id param list options resultes list options query execute id if resultes iterator has next return resultes get 0 get value else return 0 return null | title get options |
public void upd options options options persistence manager pm pmf get get persistence manager try options o pm get object by id options class options get id o set value options get value finally pm close | title upd options |
public void add post post post persistence manager pm pmf get get persistence manager try post set create date new date post set update date new date pm make persistent post finally pm close | title add post |
public int get posts counter string category list post posts null persistence manager pm pmf get get persistence manager query query pm new query post class int posts counter 0 if category null category query set filter category category param query declare parameters string category param try if category null category posts list post query execute category else posts list post query execute posts counter posts size finally query close all return posts counter | title get posts counter |
public int get start page num int current page num int start page num current page num this nava page range if start page num 1 start page num 1 return start page num | title get start page num |
public int get end page num int current page num int end page num current page num this nava page range if total pages end page num end page num total pages return end page num | title get end page num |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.