input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
private jscroll pane get jscroll pane signs list if j scroll pane signs list null j scroll pane signs list new jscroll pane j scroll pane signs list set bounds new rectangle 14 64 394 92 j scroll pane signs list set viewport view get jlist signs return j scroll pane signs list
|
this method initializes j scroll pane signs list
|
private jlist get jlist signs if j list signs null j list signs new mutable list j list signs set selection mode list selection model multiple interval selection return j list signs
|
this method initializes j list signs
|
private jbutton get jbutton add sign if j button add sign null j button add sign new jbutton j button add sign set bounds new rectangle 420 65 64 20 j button add sign set text j button add sign add mouse listener new mouse adapter public void mouse clicked mouse event e button add sign mouse clicked e return j button add sign
|
this method initializes j button add sign
|
private jbutton get jbutton remove sign if j button remove sign null j button remove sign new jbutton j button remove sign set bounds new rectangle 420 87 64 20 j button remove sign set text j button remove sign add mouse listener new mouse adapter public void mouse clicked mouse event e button remove sign mouse clicked e return j button remove sign
|
this method initializes j button remove sign
|
private jbutton get jbutton generate smime if j button generate smime null j button generate smime new jbutton j button generate smime set bounds new rectangle 125 213 173 17 j button generate smime set text generar s mime j button generate smime add mouse listener new mouse adapter public void mouse clicked mouse event e try generate smime catch exception ex ex print stack trace return j button generate smime
|
this method initializes j button generate smime
|
private jtext field get jtext field output path if j text field output path null j text field output path new jtext field j text field output path set bounds new rectangle 15 180 393 20 return j text field output path
|
this method initializes j text field out file path
|
private jbutton get jbutton open file2 if j button open file2 null j button open file2 new jbutton j button open file2 set bounds new rectangle 417 179 63 20 j button open file2 set text open j button open file2 set icon new image icon signatura frame sign class get resource openfile gif j button open file2 add mouse listener new mouse adapter public void mouse clicked mouse event e button open file2 mouse clicked e return j button open file2
|
this method initializes j button open file2
|
public log get instance class clazz throws log configuration exception return new dummy log
|
convenience method to derive a name from the specified class and call
|
protected string get internal class name if origin internet explorer return es caib signatura provider impl common capicom signature impl else if origin mozilla firefox return es caib signatura provider impl common cmssignature implv2 else throw new runtime exception signature type unknown origin
|
gets the implementing class name
|
private void invert certificate chain for int i 0 i certificate chain length 2 i x509 certificate temporal certificate certificate chain certificate chain length 1 i certificate chain certificate chain length 1 i certificate chain i certificate chain i temporal certificate
|
method to invert the certificate chain
|
public void set nif string nif this nif nif
|
sets the nif cif of the certificate holder
|
public void set nif responsable string nif responsable this nif responsable nif responsable
|
sets the nif of the responsible person for the certificate
|
private key store ask for pin throws key store exception no such algorithm exception certificate exception ioexception char new pin pin dialog get pin try key store ks get key store new pin key store password new pin return ks catch ioexception e2 e2 print stack trace if e2 get cause instanceof login exception joption pane show message dialog null the keystore password is not correct keystore joption pane warning message throw e2
|
asks for the keystore password and returns it
|
private void initialize this set title introdu u la contrasenya d acc s al magatzem de claus this set modal true this set size 438 263 this set content pane get jcontent pane center window
|
this method initializes this
|
private jbutton get jbutton if j button null j button new jbutton j button set text cancel lar j button set horizontal alignment javax swing swing constants center j button add action listener new java awt event action listener public void action performed java awt event action event e ok false pin dialog this set visible false return j button
|
this method initializes j button
|
private jbutton get jbutton1 if j button1 null j button1 new jbutton j button1 set text acceptar j button1 set horizontal alignment javax swing swing constants right j button1 add action listener new java awt event action listener public void action performed java awt event action event e do ok return j button1
|
this method initializes j button1
|
private void initialize string dlg title introdu u el pin d acc s a la tarja criptogr fica if pkcs11 title null dlg title pkcs11 title this set title dlg title this set modal true this set size 438 263 this set content pane get jcontent pane center window
|
this method initializes this
|
public void init this set bounds new java awt rectangle 0 0 500 110 this dir this get parameter url this lng this get parameter lng locale locale null if lng null lng es if lng equals es locale new locale es es if lng equals ca locale new locale ca ca res resource bundle get bundle message locale this set content pane get jcontent pane
|
this method initializes this
|
private key store ask for pin throws key store exception no such algorithm exception certificate exception ioexception char new pin pin dialog get pin this provider desc try key store ks get key store new pin pin new pin return ks catch ioexception e2 e2 print stack trace if e2 get cause instanceof login exception joption pane show message dialog null wrong pin cryptographic card joption pane warning message throw e2
|
shows a dialog asking for the card pin
|
public void test nodes add pointers document vendor contact assert equals list document vendor 1 contact 1 document vendor 1 contact 2 document vendor 1 contact 3 document vendor 1 contact 4 to string node set get pointers to string assert equals list john jack jim jack black node set get values assert element names list contact contact contact contact node set get nodes assert element values list john jack jim jack black node set get nodes
|
demonstrate when nodes values in xml models
|
public set get used namespaces if by namespace null prepare cache return by namespace key set
|
returns a set containing all namespaces used by the aggregated
|
private void prepare cache by namespace new hash map int count all functions size for int i 0 i count i functions funcs functions all functions get i set namespaces funcs get used namespaces for iterator it namespaces iterator it has next string ns string it next object candidates by namespace get ns if candidates null by namespace put ns funcs else if candidates instanceof functions list lst new array list lst add candidates lst add funcs by namespace put ns lst else list candidates add funcs
|
prepare the cache
|
public int get length return value utils get length get base value
|
if the property contains a collection then the length of that
|
private int get length int length try length property node pointer get length tbd cache length catch throwable t if ignore exceptions if t instanceof runtime exception throw runtime exception t else throw new runtime exception t length 0 return length
|
computes length for the current pointer ignores any exceptions
|
public int get length property descriptor pd get property descriptor if pd null return 1 if pd instanceof indexed property descriptor return value utils get indexed property length get bean indexed property descriptor pd int hint value utils get collection hint pd get property type if hint 1 return 1 return value utils get length get base value
|
if the property contains a collection then the length of that
|
private int get relative position by name if node instanceof element object parent element node get parent if parent instanceof element return 1 list children element parent get content int count 0 string name element node get qualified name for int i 0 i children size i object child children get i if child instanceof element element child get qualified name equals name count if child node break return count return 1
|
get relative position of this among like named siblings
|
private void prepare node pointer parent parent context get current node pointer if parent null return node pointer use parent start from parent location parent get parent parent iterator use parent child iterator node test reverse start from parent location parent null get jxpath context is ignore exceptions
|
allocates a property iterator
|
private int get relative position by name int count 1 node n node get previous sibling while n null if n get node type node element node string nm n get node name if nm equals node get node name count n n get previous sibling return count
|
get relative position of this among like named siblings
|
public node iterator attribute iterator qname qname boolean ignore exceptions node pointer value pointer get value pointer return value pointer null value pointer this null value pointer attribute iterator qname ignore exceptions
|
returns a node iterator that iterates over all attributes of the current
|
public void prepare component comp event event throws exception principal security association get principal credential security association get credential
|
initial the event processing thread at this method
|
private void initialize this set title introdu u el pin per a signar this set modal true this set size 438 263 this set content pane get jcontent pane center window
|
this method initializes this
|
private node pointer get absolute root pointer return node pointer root pointer
|
get absolute root pointer
|
private void sync model final int newsz model get size if get rows null return final int oldsz get rows get children size for int j oldsz 1 j 0 j get row at index j detach detach and remove for int j 0 j newsz j new row j
|
synchronizes the listbox to be consistent with the specified model
|
private data row new row int j master row r master row master row clone r unlock r set parent get rows if get model null get model instanceof model proxy r set data path model proxy get model get bind j return r
|
creates an new and unloaded listitem
|
public void clear if get rows get children is empty for iterator it new array list get rows get children iterator it has next component it next detach detach and remove
|
clears all child items
|
public subject login throws login exception subject ret null lc new login context client login client login new client call back handler this username this password lc login ret lc get subject return ret
|
performs the jaas client side login and returns the subject
|
public subject login throws login exception subject ret null lc new login context client login seycon domain new client call back handler this username this password lc login ret lc get subject return ret
|
performs the jaas client side login and returns the subject
|
public void test data source throws remote exception sqlexception naming exception test case assert equals new boolean true this engine test data source this data source name
|
verifica que el ejb tenga acceso al data source y prueba la conexion
|
public subject login string username string password throws login exception subject ret null this user username this password password lc new login context workflow login client login new client call back handler username password lc login ret lc get subject return ret
|
performs the jaas client side login and returns the subject
|
public void test obtener tareas indirectas throws remote exception bpmexception list task list this engine retreive indirect task list pablo null task instance task instance null if task list size 0 task instance task instance task list iterator next test case assert equals task instance get name trim verificar datos
|
recupera las tareas asignadas indirectamente a un usuario
|
public void test reservar tarea throws remote exception bpmexception list task list this engine retreive indirect task list pablo null task instance task instance null if task list size 0 task instance task instance task list iterator next test case assert equals task instance get name trim verificar datos this engine reserve task task instance get id pablo
|
reserva la tarea para un usuario
|
public void test obtener tareas creadas throws remote exception list task list this engine retreive tasks created by pablo test case assert true task list size 0
|
obtiene las tareas creadas por un usuario
|
public void test recuperar proxy throws remote exception list task list this engine retreive task list pablo task instance task instance null process instance process instance null process definition definition null test case assert true task list null task list size 0 if task list size 0 task instance task instance task list iterator next process instance this engine retreive process instance for task task instance get id if process instance get process definition instanceof hibernate proxy definition process definition this engine retreive entity hibernate proxy process instance get process definition test case assert true definition get name null
|
recupera un proxy de hibernate
|
private void transform final source xml source final transformer transformer final string package name final result java result assert xml source null assert transformer null assert package name null assert java result null final string timestamp get timestamp try transformer set parameter package name xlst param package name transformer set parameter timestamp name xlst param timestamp transformer transform xml source java result catch final transformer exception te final string err msg xslt transformer error te logger log severe err msg
|
performs an xml stylesheet transformation xslt on the jill
|
private string get timestamp final string date format iso8601 yyyy mm dd t hh mm ss sssz final locale locale locale get default final date format date format new simple date format date format iso8601 locale final date now new date final field position not interesting new field position date format date field final string buffer string buffer date format format now new string buffer not interesting final string timestamp string buffer to string return timestamp
|
produces an iso8601 timestamp for the current time
|
private string get package name final string source dir final string package dir assert source dir null assert package dir null assert package dir starts with source dir final int strlen source dir source dir length final int prefix length strlen source dir 1 skip file separator between prefix and suffix final string relative package dir package dir substring prefix length final string package name relative package dir replace file separator char package separator char if logger is loggable info final string log msg computed package name package name logger log info log msg return package name
|
produces the fully qualified java package name associated with the
|
private string get source directory name final string source dir system get property user dir assert source dir null if logger is loggable info final string log msg current working directory source dir logger log info log msg return source dir
|
produces the name of the directory to search for jill configuration
|
protected void validate final object context default behavior performs no validation
|
see the documentation of
|
public long to millis return milliseconds
|
produces the amount of milliseconds in this interval
|
public builder period final long period period validator validate period this period time unit seconds to millis period return this
|
specifies the periodic delay optional parameter
|
public builder name final string name non null non empty string validate name this name name return this
|
specifies the name optional parameter
|
public thread new thread final runnable runnable final int sequence number next sequence number get and increment final string thread name pool name sequence number final thread thread new thread runnable thread name thread set priority thread norm priority return thread
|
produces a new
|
public builder error hook final runnable error hook non null object validate error hook this error hook error hook return this
|
specifies the error hook optional parameter
|
private string get name final boolean name overridden equals name final string result name overridden name default thread name prefix serial number generator get and increment return result
|
produces the name as described by
|
public periodic suspendable thread build synthetic code generation suppress warnings pmd accessor class generation justification not maintaining factory method final periodic suspendable thread new instance new periodic suspendable thread this return new instance
|
produces a new
|
private void validate range context nullable final object context final boolean context provided context null if context provided try final context format context formats context format values final context format context format context formats context length context format validate context catch final index out of bounds exception ioobe final string err msg msgs get l7d msg validation error invalid range context throw new validation exception err msg ioobe
|
ensures that the validation time context is valid as described by the
|
private t get minimum final object context return get effective value context min max index offset minimum get minimum context
|
produces the effective range minimum
|
private t get maximum final object context return get effective value context min max index offset maximum get maximum context
|
produces the effective range maximum
|
private void ensure enable called try lock lock while enabled try enabled condition await catch final interrupted exception ignored logger warning periodic suspendable thread interrupted while waiting for enabled condition finally lock unlock
|
barrier that waits until this thread is enabled
|
public string capitalize final string str if str null throw new illegal argument exception null string final string upper first str substring 0 1 to upper case return str length 1 upper first str substring 1 upper first
|
produces a capitialized form of
|
private void fill spinner schedule db db new schedule db m context try db open create cursor from and to statements cursor c db get hour scheme names string from new string hour scheme table i scheme name int to new int android r id text1 simple cursor adapter adapter new simple cursor adapter m context android r layout simple spinner item c from to adapter set drop down view resource android r layout simple dropdown item 1line spinner hour scheme set adapter adapter finally if db null db close
|
load data from the database into the spinner
|
public jsptext tools get jsptext tools if jsp text tools null jsp text tools new jsptext tools get preference store return jsp text tools
|
returns instance of text tools for jsp
|
public properties text tools get properties text tools if properties text tools null properties text tools new properties text tools get preference store return properties text tools
|
returns instance of text tools for properties
|
public void create tabs ilaunch configuration dialog dialog string mode launch tabs new ilaunch configuration tab 2 launch tabs 0 new launch configuration main tab launch tabs 1 new common tab
|
creates the tab pages
|
public void launch iselection selection string mode
|
insert the methods description here
|
public void launch ieditor part editor string mode
|
insert the methods description here
|
private void create initial marker annotations try imarker markers ifile editor input get editor input get file find markers breakpoint breakpoint id true iresource depth zero iannotation model anno get annotation model for int i 0 i markers length i imarker marker markers i int start marker get attribute imarker char start 0 int length marker get attribute imarker char end 0 start position p new position start length marker annotation m anno new breakpoint marker annotation marker anno add annotation m anno p catch core exception c ex debug plugin log c ex
|
creates the marker annotations when the editor is first shown
|
public void do save as perform save as get progress monitor
|
the code i18 ntext editor code implementation of this
|
public void do save iprogress monitor progress monitor idocument provider p get document provider if p null return if p is deleted get editor input if is save as allowed perform save as progress monitor else shell shell get site get shell string title editor messages get string i18 ntext editor error save deleted title non nls 1 string msg editor messages get string i18 ntext editor error save deleted message non nls 1 message dialog open error shell title msg else perform save operation create save operation false progress monitor
|
the code i18 ntext editor code implementation of this
|
public button get xsl file button return fxsl file button
|
returns the xsl file button
|
public label get xsl file label return fxsl file label
|
returns the xsl file label
|
public text get xsl file text return fxsl file text
|
returns the xsl file text
|
public void set xsl file button button fxsl file button this fxsl file button fxsl file button
|
sets the xsl file button
|
public void set xsl file label label fxsl file label this fxsl file label fxsl file label
|
sets the xsl file label
|
public void set xsl file text text fxsl file text this fxsl file text fxsl file text
|
sets the xsl file text
|
public button get xml file button return fxml file button
|
returns the xml file button
|
public label get xml file label return fxml file label
|
returns the xml file label
|
public text get xml file text return fxml file text
|
returns the xml file text
|
public void set xml file button button f xml file button this fxml file button f xml file button
|
sets the xml file button
|
public void set xml file label label f xml file label this fxml file label f xml file label
|
sets the xml file label
|
public void set xml file text text f xml file text this fxml file text f xml file text
|
sets the xml file text
|
public void dispose java text tools null jsp directive scanner null jsp code scanner null jsp comment scanner null java partition scanner null partition scanner null super dispose
|
disposes all the individual tools of this tools collection
|
public void dispose xml scanner null xml definition scanner null xml tag scanner null xml comment scanner null xml partition scanner null if color manager null color manager dispose color manager null if preference store null preference store remove property change listener preference listener preference store null preference listener null
|
disposes all the individual tools of this tools collection
|
public rule based scanner get jsp directive scanner return jsp directive scanner
|
returns a scanner which is configured to scan java source code
|
public rule based scanner get jsp code scanner return jsp code scanner
|
returns a scanner which is configured to scan java source code
|
public rule based scanner get xmlscanner return xml scanner
|
returns a scanner which is configured to scan java source code
|
public rule based scanner get java multiline comment scanner return java text tools get multiline comment scanner
|
returns a scanner which is configured to scan java multiline comments
|
public rule based scanner get xmldefinition scanner return xml definition scanner
|
returns a scanner which is configured to scan xml definitions code
|
public rule based scanner get java singleline comment scanner return java text tools get singleline comment scanner
|
returns a scanner which is configured to scan java singleline comments
|
public rule based scanner get java string scanner return java text tools get string scanner
|
returns a scanner which is configured to scan java strings
|
public rule based scanner get java doc scanner return java text tools get java doc scanner
|
notes that the start sequence and the corresponding end sequence
|
public rule based scanner get xmlcdatascanner return xml cdata scanner
|
returns a scanner which is configured to scan java source code
|
public ipartition token scanner get jsp partition scanner return partition scanner
|
returns a scanner which is configured to scan
|
public ipartition token scanner get xmlpartition scanner return xml partition scanner
|
returns a scanner which is configured to scan
|
public boolean affects behavior property change event event return super affects behavior event jsp code scanner affects behavior event jsp directive scanner affects behavior event jsp comment scanner affects behavior event
|
determines whether the preference change encoded by the given event
|
public idocument partitioner create document partitioner string types new string xmlpartition scanner xml definition xmlpartition scanner xml comment xmlpartition scanner xml tag xmlpartition scanner xml cdata return new default partitioner xml partition scanner types
|
factory method for creating a java specific document partitioner
|
protected void adapt to preference change property change event event if super affects behavior event super adapt to preference change event if jsp code scanner affects behavior event jsp code scanner adapt to preference change event if jsp comment scanner affects behavior event jsp comment scanner adapt to preference change event if jsp directive scanner affects behavior event jsp directive scanner adapt to preference change event
|
adapts the behavior of the contained components to the change
|
public boolean affects behavior property change event event return xml scanner affects behavior event xml definition scanner affects behavior event xml tag scanner affects behavior event xml comment scanner affects behavior event xml cdata scanner affects behavior event
|
determines whether the preference change encoded by the given event
|
protected void adapt to preference change property change event event if xml scanner affects behavior event xml scanner adapt to preference change event if xml definition scanner affects behavior event xml definition scanner adapt to preference change event if xml tag scanner affects behavior event xml tag scanner adapt to preference change event if xml comment scanner affects behavior event xml comment scanner adapt to preference change event if xml cdata scanner affects behavior event xml cdata scanner adapt to preference change event
|
adapts the behavior of the contained components to the change
|
protected void perform defaults bad word list set items solar eclipse plugin get default get default bad words preference super perform defaults
|
performs special processing when this pages restore defaults button has been pressed
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.