input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void set compression level int level compression level level | sets the file transfer compression level |
public int get compression level return compression level | gets the file transfer compression level |
public image descriptor get image descriptor string id return image descriptor image descriptors get id | returns the image descriptor for the given image id |
public void set default text ksubst option ksubst option ksubst default text ksubst option ksubst | sets the default keyword substitution mode for text files |
public ksubst option get default text ksubst option return default text ksubst option | gets the default keyword substitution mode for text files |
private string get previous bug id string string if string starts with bug id initial int new line index string index of line separator return string substring bug id initial length new line index return | get the bug id if exists from the previous comment |
public boolean get prune empty directories return prune empty directories | should the cvs adapter prune empty directories |
private string get previous comment string string if string starts with bug id initial int new line index string index of line separator return string substring new line index line separator length string length return string | get the comment string without the bug id text from the previous comment |
public void set prune empty directories boolean prune prune empty directories prune | set whether the cvs adapter should prune empty directories |
public int get timeout return communications timeout | get the communications timeout value in seconds |
public void set timeout int timeout this communications timeout math max 0 timeout | set the timeout value for communications to a value in seconds |
private label create label composite parent string text int horizontal span label label new label parent swt left label set text text grid data data new grid data data horizontal span horizontal span data horizontal alignment grid data fill label set layout data data return label | utility method that creates a label instance |
private button create check box composite group string label button button new button group swt check swt left button set text label grid data data new grid data data horizontal span 2 button set layout data data return button | creates an new checkbox instance and sets the default |
public void set quietness quiet option option this quietness option | set the quietness option to use with cvs commands |
public quiet option get quietness return quietness | get the quietness option for commands |
public void set console listener iconsole listener console listener console listeners get instance add listener console listener | set the console listener for commands |
protected void perform defaults super perform defaults initialize values verify validation | defaults was clicked |
public string get cvs rsh command return cvs rsh command | gets the cvs rsh command |
public void set cvs rsh command string cvs rsh command this cvs rsh command cvs rsh command | sets the cvs rsh command |
public boolean is use project name on checkout return get preference store get boolean icvsuiconstants pref use project name on checkout | helper method which access the preference store to determine if the |
public string get cvs rsh parameters return cvs rsh parameters | returns the cvs rsh parameters |
public void set cvs rsh parameters string cvs rsh parameters this cvs rsh parameters cvs rsh parameters | sets the cvs rsh parameters |
public string get cvs server return cvs server | gets the cvs server |
private void initialize values populate the previous comment list for int i 0 i comments length i previous comments combo add flatten text comments i we don t want to have an initial selection see bug 32078 http bugs eclipse org bugs show bug cgi id 32078 previous comments combo set text non nls 1 if comment properties null old comment null text set text non nls 1 comment text get text | method initialize values |
public void set cvs server string cvs server this cvs server cvs server | sets the cvs server |
private void signal ctrl enter fire property change change ok requested null null | method signal ctrl enter |
public string get comment ipreference store store svnuiplugin get plugin get preference store if store get boolean isvnuiconstants pref bug id field if comment length 0 bug id length 0 comment bug id comment if comment null comment length 0 finished if store get boolean isvnuiconstants pref bug id field if comment length 0 bug id length 0 return comment return comment | returns the comment |
public boolean get fetch absent directories return fetch absent directories | gets the etch absent directories |
public void set fetch absent directories boolean fetch absent directories this fetch absent directories fetch absent directories | sets the fetch absent directories |
private void set svn client interface string client interface if cmd line client adapter factory commandline client equals client interface client interface java svn client adapter factory javasvn client svnprovider plugin get plugin get svnclient manager set svn client interface client interface | set the svn client interface |
private void set svn client config dir string config dir svnprovider plugin plugin svnprovider plugin get plugin svnclient manager svn client manager plugin get svnclient manager if equals config dir non nls 1 svn client manager set config dir null else file config dir file new file config dir svn client manager set config dir config dir file | set the svn client config dir |
public iproject get project return project | gets the project |
public void set project iproject project this project project | sets the project |
public boolean is replace unmanaged return replace unmanaged | gets the replace unmanaged |
public void set replace unmanaged boolean replace unmanaged this replace unmanaged replace unmanaged | sets the replace unmanaged |
public void add repository listener icvslistener listener known repositories get instance add repository listener listener | register to receive notification of repository creation and disposal |
static public installer project create ijava project java project installer project result null try installer project add tikal installer nature java project result installer project java project get project get nature installer plugin nature id if result null result set java project java project catch core exception ex ex print stack trace return result | return a installer project if this java project has the tikal installer nature |
public void add decorator enablement listener icvsdecorator enablement listener listener synchronized decorator enablement listeners decorator enablement listeners add listener | register to receive notification of enablement of sync info decoration requirements |
static public installer project create iproject project ijava project java project java core create project if java project null return installer project create java project else return null | return a installer project if this java project has the tikal installer nature |
private void do load by object object object serializable id lock mode lock mode throws hibernate exception class clazz object get class if get entry object null throw new persistent object exception attempted to load into an instance that was already associated with the session message helper info string clazz id object result do load clazz id object lock mode true object not found exception throw if null result id clazz if result object throw new non unique object exception id clazz | load the data for the object with the specified id into the supplied |
public boolean is determine version enabled return determine version enabled | gets the determine version enabled |
public void set determine version enabled boolean determine version enabled this determine version enabled determine version enabled | sets the determine version enabled |
public string get comment if project properties null issue null issue length 0 if project properties is append return commit comment area get comment n project properties get resolved message issue n non nls 1 non nls 2 else return project properties get resolved message issue n commit comment area get comment non nls 1 return commit comment area get comment | returns the comment |
public file modification manager get file modification manager return file modification manager | returns the file modification manager |
public void set excludes dirs string excludes dirs this excludes dirs excludes dirs | sets the excludes dirs |
public void set includes dirs string includes dirs this includes dirs includes dirs | sets the includes dirs |
private void scan file from dir file to dir string files string to files file name mapper mapper null mapper new identity mapper build map from dir to dir files mapper to files | compares source files to destination files to see if they should be |
private void scan file from dir file to dir string files string dirs boolean flatten false file name mapper mapper null if mapper element null mapper mapper element get implementation else if flatten mapper new flat file name mapper else mapper new identity mapper build map from dir to dir files mapper | compares source files to destination files to see if they should be |
private void scan file from dir file to dir string files string dirs file name mapper mapper null mapper new identity mapper build map from dir to dir files mapper | compares source files to destination files to see if they should be |
public void set optional boolean optional this optional optional | sets the optional attribute |
public void set file string file i don t think we can use file different rules for relative paths this file file | the name of the file to import |
public void set classpath path classpath if this classpath null this classpath classpath else this classpath append classpath | the classpath to use when looking up a resource |
public path create classpath if this classpath null this classpath new path get project return this classpath create path | the classpath to use when looking up a resource |
public void set classpath ref reference r create classpath set refid r | the classpath to use when looking up a resource |
public url get resource string resource name url result null while policy has next result null result policy next get resource resource name return result | finds a resource with a given name |
public class load class string class name throws class not found exception class result null while policy has next result null try result policy next load class class name catch class not found exception ignore ignore if result null throw new class not found exception class name return result | loads the class with the specified name |
public boolean has next return iterator has next | indicates whether or not there is a next class loader to iterate |
public class loader next return class loader iterator next | the next class loader in the iteration |
public void reset init | resets the iterator to start from the beginning |
public boolean is debug enabled level l level debug if log is enabled for l return false return l is greater or equal log get effective level | check if debug level is enabled for this logger |
public void debug object message log log level debug message null | add a log entry with debug level |
public void debug object message throwable t log log level debug message t | add a log entry with debug level |
public boolean is info enabled level l level info if log is enabled for l return false return l is greater or equal log get effective level | check if info level is enabled for this logger |
public void info object message log log level info message null | add a log entry with info level |
public void info object message throwable t log log level info message t | add a log entry with info level |
public void warn object message log log level warn message null | add a log entry with warn level |
public void warn object message throwable t log log level warn message t | add a log entry with warn level |
public void error object message log log level error message null | add a log entry with error level |
public void error object message throwable t log log level error message t | add a log entry with error level |
public void fatal object message log log level fatal message null | add a log entry with fatal level |
public void fatal object message throwable t log log level fatal message t | add a log entry with fatal level |
public void log level l object message log log l message null | add a log entry with the given level |
public void log level l object message throwable t log log l message t | add a log entry with the given level and caus |
protected void check namespace string uri | will be called every time a namespace is reached |
public ant handler get current ant handler return current handler | returns the current ant handler object |
public void set document locator locator locator context set locator locator | sets the locator in the project helper for future reference |
public void end element string uri string name string q name throws saxexception current handler on end element uri name context ant handler prev ant handler ant handlers pop current handler prev if current handler null current handler on end child uri name q name context | handles the end of an element |
public void start prefix mapping string prefix string uri context start prefix mapping prefix uri | start a namespace prefix to uri mapping |
public void end prefix mapping string prefix context end prefix mapping prefix | end a namepace prefix to uri mapping |
public void on end element string uri string tag ant xmlcontext context context set current target context get implicit target | handle the end of the project sets the current target of the |
public void on end element string uri string tag ant xmlcontext context context pop wrapper | handles the end of the element |
private void execute throws hibernate exception log trace executing flush try we need to lock the collection caches before executing entity inserts updates in order to account for bidi associations before executions all collection removals before executions all collection updates before executions all collection creations now actually execute sql and update the second level cache execute all insertions execute all updates execute all collection removals execute all collection updates execute all collection creations execute all deletions catch hibernate exception he log error could not synchronize database state with session throw he | execute all sql and second level cache updates in a |
private void pre flush entities throws hibernate exception list list identity map concurrent entries entity entries safe from concurrent modification because of how entry set is implemented on identity map int size list size for int i 0 i size i map entry me map entry list get i entity entry entry entity entry me get value status status entry status if status loading status gone status deleted object object me get key cascading try cascades cascade this entry persister object cascades action save update cascades cascade on update finally cascading | process cascade save update at the start of a flush to discover |
private void pre flush collections throws hibernate exception initialize dirty flags for arrays collections with composite elements and reset reached doupdate etc list list identity map entries collection entries int size list size for int i 0 i size i map entry e map entry list get i collection entry e get value pre flush persistent collection e get key | initialize the flags of the collection entry including the |
private void add uninitialized collection persistent collection collection collection persister persister serializable id collection entry ce new collection entry persister id flushing collection set collection snapshot ce add collection collection ce id | add a collection we just loaded up still needs initializing |
private void add uninitialized detached collection persistent collection collection collection persister persister serializable id collection entry ce new collection entry persister id collection set collection snapshot ce add collection collection ce id | add a detached uninitialized collection |
public void add array holder array holder holder todo refactor make this method private array holders put holder get array holder | associate a holder with an array called after loading array |
protected void finalize throws throwable log debug running session finalize if is current transaction log warn after transaction completion was never called if connection null ie it was never disconnected after transaction completion false if connection is closed log warn finalizing unclosed session with closed connection else log warn unclosed connection forgot to call close on your session if auto close connection close todo should i also call close statements from here | just in case user forgot to commit cancel or close |
private collection entry get collection entry or null object collection persistent collection coll if collection instanceof persistent collection coll persistent collection collection if collection null throw new transient object exception collection was not yet persistent else coll get array holder collection if coll null it might be an unwrapped collection reference try to find a wrapper slowish iterator wrappers identity map key iterator collection entries while wrappers has next persistent collection pc persistent collection wrappers next if pc is wrapper collection coll pc break return coll null null get collection entry coll | get the collection entry for a collection passed to filter |
public void evict object object throws hibernate exception if object instanceof hibernate proxy lazy initializer li hibernate proxy helper get lazy initializer hibernate proxy object serializable id li get identifier class persister persister get class persister li get persistent class key key new key id persister proxies by key remove key if li is uninitialized object entity remove entity key if entity null entity entry e remove entry entity do evict e persister entity else entity entry e remove entry object if e null remove entity new key e id e persister do evict e persister object | remove any hard references to the entity that are held by the infrastructure |
private void evict cached collections class persister persister serializable id throws hibernate exception evict cached collections persister get property types id | evict collections from the factory level cache |
private evaluated ship evaluate enemy star ship enemy evaluated ship ret new evaluated ship enemy ret set evaluation position distance ship get position enemy get position return ret | evaluate each target for distance coverage already being attacked and power |
public long get build duration return build duration | returns the duration this build has required to be performed given in |
public void set build duration long time spent for build this build duration time spent for build | sets the duration this build has required to be performed given in |
public boolean has configuration return this args null this args length 0 | returns if the test result described by this object has a configuration |
public date get build date return build date | returns the date this build has been started |
public boolean has message return this message null this message get text length 0 | returns if the test result described by this object has a message |
public type get type type t message type success for string test object name this messages key set message test messages get test object name if test get type equals type error return type error if test get type equals type failure t type failure return t | summarized type of the contained messages |
public boolean has configuration return this configuration null this configuration is empty | returns if the test result described by this object has a configuration |
public void next long size current step start current step size current step size size | indicates that the next step of this progress has begun |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.