input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
private void option tree mouse clicked java awt event mouse event evt gen first event option tree mouse clicked gen headerend event option tree mouse clicked try determine which object was clicked jtree jtree jtree evt get source string leaf jtree get selection path get last path component to string show card show card leaf catch exception e e print stack trace gen last event option tree mouse clicked | show option card selected in the option tree |
private void clips table view mouse released java awt event mouse event evt gen first event clips table view mouse released gen headerend event clips table view mouse released if evt is popup trigger show context menu show clips popup menu evt else if evt get click count 2 todo make this customizable via preferences play doubleclicked clips my pod get play clips add action 1 action performed null gen last event clips table view mouse released | handle mouse click in table list view |
private void playlist list view mouse released java awt event mouse event evt gen first event playlist list view mouse released gen headerend event playlist list view mouse released if evt is popup trigger this show playlist popup menu evt gen last event playlist list view mouse released | handle mouse click in table list view |
private void form window closing java awt event window event evt gen first event form window closing gen headerend event form window closing check if gui is locked if this is locked my pod get exit action action performed null gen last event form window closing | handles window closing event |
private my file validate filename my file file string default extension throws exception if file exists string tmp filepath file remove extension int cnt 0 do check file exteded by a counter file new my file tmp filepath cnt default extension cnt while file exists cnt 100000 if file exists if the dir is not there or not readable yet we are in serious trouble throw new exception could not get new filename last try was file return file | validates a filename |
protected string get analyze menu item return null | get string to associate with analyze menu action if any |
public dbclass get dbclass return dbclass get referenced | the class that contains this member |
public void create field editors add field new directory field editor preference constants p db path directory for object db get field editor parent | creates the field editors |
public void stop bundle context context throws exception super stop context plugin null if m db null m db close db | this method is called when the plug in is stopped |
public void create part control composite parent sash form new sash form parent swt vertical query area new composite sash form 0 query area set layout new fill layout swt horizontal history list new list sash form swt single swt h scroll swt v scroll query text new text query area swt multi swt h scroll swt v scroll initialize history list make actions activation ihandler service platform ui get workbench get service ihandler service class activate handler run query command new action handler query action hook context menu hook double click action contribute to action bars | this is a callback that will allow us |
public void set focus sash form set focus | passing the focus request to the viewers control |
public void modify test element test element element element set property oauth sampler key key get text element set property new boolean property oauth sampler use auth header use auth header is selected element set property new boolean property oauth sampler url encode url encode is selected element set property oauth sampler signature method signature method get text element set property oauth sampler secret secret get text element set property oauth sampler token token get text element set property oauth sampler token secret token secret get text | save the gui values in the sampler |
public private key get private key throws ioexception private key key key cache get file name if key null log debug key file file name found in cache non nls 1 non nls 2 return key load file server reserve file file name utf 8 file name non nls 1 non nls 1 key read server close file file name populate cache key cache put file name key log debug key file file name loaded in cache non nls 1 non nls 2 return key | get a private key for the file |
protected jpanel get consumer secret panel signature method new jlabeled choice oauth sampler gui get res string oauth signature method non nls 1 oauth sampler methods signature method add change listener this secret new jtext field 20 secret set name oauth sampler secret secret label new jlabel oauth sampler gui get res string oauth consumer secret non nls 1 secret label set label for secret jpanel panel new jpanel new grid bag layout panel add secret label fixed constraints panel add secret stretchy constraints panel add signature method fixed constraints return panel | secret panel contains |
private void create constraints fixed constraints new grid bag constraints fixed constraints anchor grid bag constraints center fixed constraints insets new insets 1 1 1 1 fixed constraints weightx 0 0 fixed constraints gridwidth 1 fixed constraints gridx grid bag constraints relative fixed constraints gridy 0 stretchy constraints grid bag constraints fixed constraints clone stretchy constraints fill grid bag constraints horizontal stretchy constraints weightx 1 0 stretchy constraints gridwidth grid bag constraints relative | the constraints used by grid bag layout manager |
protected void set default request headers http method http method if use auth header return try http method add request header authorization message non nls 1 get authorization header null catch ioexception e log error failed to set authorization header e get message non nls 1 | add authorization header if use auth header is true |
public void test certificate throws exception server set property rsa sha1 x509 certificate read file certificate x509 pem for string private key file private key files client set property rsa sha1 private key read file private key file rsa sha1 signature test sign and verify client server | verify with a certificate from an x |
public void test public key throws exception server set property rsa sha1 public key read file public x509 pem for string private key file private key files client set property rsa sha1 private key read file private key file rsa sha1 signature test sign and verify client server | verify with a public key from an x |
public oauth response message access oauth message request parameter style style throws ioexception http message http request http message new request request style http response message http response http execute http request http parameters http response http message decoder decode http response return new oauth response message http response | send a request and return the response |
public string get body type return get header content type | the mime type of the body of this message |
public string get body encoding return iso 8859 1 | the character encoding of the body of this message |
public object open string tipo mov create contents tipo mov shell open shell layout display display get parent get display while shell is disposed if display read and dispatch display sleep return result | open the dialog |
protected void create contents foto new clabel this swt border swt center foto set bounds 220 15 173 178 capturar new button this swt none capturar add selection listener new selection adapter public void widget selected final selection event e capturar foto capturar set text capturar capturar set bounds 50 85 112 44 status label new clabel this swt border status label set bounds 25 210 367 19 visual container new jpanel | create contents of the dialog |
public string get view actions string buffer res new string buffer res append a href append details url append id res append get current entry get id append img src icon details png alt details a nbsp res append a href append download url append id res append get current entry get id append img src icon certificate save png alt details a br n return res to string | creates a list of view operations details remove |
public string get admin name return admin name | get the value of admin name |
public void set admin name string admin name this admin name admin name | set the value of admin name |
public string get admin email return admin email | get the value of admin email |
public void set admin email string admin email this admin email admin email | set the value of admin email |
public void add extension string oid string mode if oid null mode null no use of any error msg return extensions put oid mode | adds a pair of oid and mode |
public void test setup session system out println setup session mailer instance new mailer instance setup session assert not null instance session | test of setup session method of class mailer |
public void test extract throws exception system out println extract byte array output stream os new byte array output stream object output stream oos new object output stream os string value alfa beta oos write object value oos close string id idxxx serializable serializer instance new serializable serializer input stream is new byte array input stream os to byte array record serializable result instance extract is null id assert equals result get id id assert equals result get value value | test of extract method of class serializable serializer |
public void test write object throws exception system out println write object byte array output stream os new byte array output stream string value hello record serializable record new record impl serializable aaaa value serializable serializer instance new serializable serializer system out println storing instance write object os record os close system out println plain read object read new object input stream new byte array input stream os to byte array read object assert equals read value | test of write object method of class serializable serializer |
public void set codec int lineid string codec ojiaxline line ojiaxline get line lineid line get codec set set prefered codec ojiaxcodecs value of codec | do set codec for the next call to use preferred codec |
public void start thread this writer start this reader start this executor start | start tutti i thread |
public void create gas mash this mash gas new jbutton new image icon this path images off on png this mash gas set border null this mash gas add action listener new java awt event action listener public void action performed java awt event action event evt mash action performed evt this mash gas set preferred size new dimension 70 70 this mash gas panel add this mash gas | creazione pulsante gas mash |
public void action performed action event e try ts server turn right player id catch remote exception re error re get message | send a navigation command to the server to turn the players |
public void state changed change event e try ts server set sail player id sail slider get value catch remote exception re error re get message | sends the new sail value of the player to the server |
public void check action string action throws wtk exception base check action action | check action method comment |
public search criteria construct search criteria environment env throws wtk exception enumeration en filter keys custom environment cenv new custom environment env while en has more elements string name string en next element if name starts with wtk string value filter get name string flag filter get wtk name if flag null s equals flag a equals flag cenv add request parameter name value cenv add request parameter wtk required name true return base construct search criteria cenv | construct search criteria method comment |
public string get name return base get name | get name method comment |
public void show empty form embed manager em string section writer wr throws wtk exception em set filter filter to string base show empty form em section wr | show empty form method comment |
public void show document in form embed manager ev basic document d string section writer wr throws wtk exception ev set filter filter to string system err println filtered form show document in form base base base show document in form ev d section wr | show document in form method comment |
public binary variant get binary variant string section string field name throws wtk exception return base get binary variant section field name | get binary variant method comment |
public string get external id return external key | get external key method comment |
public string load external id wtk connection con throws wtk exception return get external id | load external id method comment |
public int get count return set1 get count set2 get count | get count method comment |
public void set content length int length res set content length length | set content length method comment |
public void set content type string ct res set content type ct | set content type method comment |
public void set content length int length | set content length method comment |
public void set content type string ct | set content type method comment |
public void apply changes wtk connection wcon com othiemann wtk hierarchy changes chnages | apply changes method comment |
public boolean is collapsed int position return false | is collapsed method comment |
public boolean is last int position return true | is last method comment |
public int get nodes count wtk connection wcon user user throws com othiemann wtk exceptions wtk exception return 1 | get nodes count method comment |
public boolean direction string field boolean dir boolean get field true asc false desc return dir null dir boolean value | direction method comment |
public void close throws java io ioexception base close | close method comment |
public int get count return meta get rows per this page | get count method comment |
public int load internal id wtk connection wcon throws com othiemann wtk exceptions wtk exception if i null if get external id null i new integer ll get document internal id wcon dt get external id else throw new com othiemann wtk exceptions wtk fatal error broken id return i int value | get internal id method comment |
public void close throws java io ioexception try rs close stmt close catch sqlexception ex ex print stack trace throw new java io ioexception can t close search result set | close method comment |
public document type get association document type return as dt | get first type method comment |
public document id get primary key return pk | get primary key method comment |
public void set primary key document id did this pk did | get primary key method comment |
public void state changed wtk connection connection document type dt string external key int state pk throws wtk exception | state changed method comment |
public trigger get default trigger return new standard trigger | get police method comment |
public void close throws java io ioexception this array null cur pos 0 | close method comment |
public int get count return array length | get count method comment |
public void add resource2 bclosed wtk closeable resource res resources add res | add resource2 bclosed method comment |
public trigger get default trigger return new imap trigger | get police method comment |
public void set permitted states int states this states states | set permitted states method comment |
public string calculate state return null | calculate state method comment |
public void backup config c file dir writer out try class for name c get string jdbc class connection con driver manager get connection c get string jdbc url c get string jdbc user c get string jdbc pwd try user u com othiemann wtk security user manager get instance authorize as system load docs con dir u out finally con close catch exception ex ex print stack trace system out println wtk xml backup finished | insert the methods description here |
public int get count return list size | get count method comment |
public int get count return one get count two get count | get count method comment |
public void set content id java lang string new content id content id new content id | insert the methods description here |
public imap message get imap message return get top parent get imap message | insert the methods description here |
public parsed message get parent return parent | insert the methods description here |
public boolean is attach return attach | insert the methods description here |
public boolean is encrypted return encrypted | insert the methods description here |
public boolean is may have built in images return may have built in images | insert the methods description here |
public void set attach boolean new attach attach new attach | insert the methods description here |
public void set attach name java lang string new attach name attach name new attach name | insert the methods description here |
public void set encrypted boolean new encrypted encrypted new encrypted | insert the methods description here |
public void set error java lang string new error error new error | insert the methods description here |
public void set html text java lang string new html text html text new html text | insert the methods description here |
public void set imap message imap message new imap message imap message new imap message | insert the methods description here |
public void set may have built in images boolean new may have built in images may have built in images new may have built in images | insert the methods description here |
public void set parent parsed message new parent parent new parent | insert the methods description here |
public void set plain text java lang string new plain text plain text new plain text | insert the methods description here |
public void set binary stream string name input stream x set named name x types longvarbinary | sets the designated parameter to a java boolean value |
public void un link wtk connection con link link throws com othiemann wtk exceptions wtk exception throw new com othiemann wtk exceptions wtk redo exception you can t unlink documents with this link directly please make 2 different links dirst doccument middle document and middle document second document | un link method comment |
public link link wtk connection con document id d1 document id d2 throws com othiemann wtk exceptions wtk exception throw new com othiemann wtk exceptions wtk redo exception you can t link documents with this link directly beacuse you should specify in middle object please make 2 different links dirst doccument middle document and middle document second document | link method comment |
public void un link wtk connection con link l throws com othiemann wtk exceptions wtk exception throw new com othiemann wtk exceptions wtk redo exception you can t unlink documents with this link directly please make 2 different links dirst doccument middle document and middle document second document | un link method comment |
public string translate repository path string rep path string parts rep path split int start 0 while parts start trim length 0 parts start equals get context path without slashes start string buffer ret new string buffer for int i start i parts length i ret append append parts i return ret to string | converts path in repository to path within context |
public void create png file string location throws ioexception create png file new file location | renders the current text to a |
public void create png file file location throws ioexception image io write create image png location | renders the current text to a |
public void create png file servlet output stream sos throws ioexception image io write create image png sos | renders the current text to a |
public void set font face string fontname throws ioexception font format exception if fontname equals this fontname this fontname fontname update face | set the true type font to render with |
public void set font size int fontsize if fontsize this fontsize this fontsize fontsize update size | set the point size of the font |
private void update size if cached font null return derive font of correct fontsize cached font cached font derive font float fontsize set on graphics object so we can get font metrics g2 set font cached font | updates the cached font to new font derived with new size |
private font metrics get font metrics return g2 get font metrics | get the font metrics object for the current font |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.