input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void set filter matcher ifilter matcher filter matcher if filter matcher null throw new illegal argument exception filter matcher must not be null f filter matcher filter matcher
|
sets the filter matcher
|
public void set filter string filter f filter filter null filter non nls 1 update list
|
sets the filter pattern
|
public void action performed action event arg0 string pattern search field get text update lists pattern
|
update lists if timer expires and signals this with call to
|
public void key typed key event key event int key key event get key char get selected row if key string selected snip string qualifier list get selected value launch browser selected snip
|
typing space launches the browser for the selected item
|
public boolean get allow duplicates return f allow duplicates
|
returns whether or not duplicates are allowed
|
public boolean get ignore case return f ignore case
|
returns whether or not case should be ignored
|
public boolean get match empty string return f match empty string
|
returns whether empty filter strings should filter everything or nothing
|
public ilabel provider get label provider return f label provider
|
returns the label provider for the items
|
public void action performed action event action event created true create new label set visible false
|
this method creates a new label if the ok button has been
|
private void create new label get the settings for the new label string name name text field get text string description description text area get text create a new label on the server try view create revision label name description false catch exception e e print stack trace
|
this method creates a new star team label
|
public void action performed action event action event created true create new project set visible false
|
this method creates a new project if the ok button has been
|
private void create new project get the settings for the new project string name name text field get text string description description text area get text create a new project on the server project p new project server name description save the project p update
|
this method creates a new star team project
|
public void focus gained focus event focus event add projects new project already selected false if new project equals messages get string star team server panel 17 non nls 1 starteam project combo box set selected item new project new project messages get string star team server panel 18 non nls 1
|
this method adds all available projects from the star team server
|
public boolean has created return created
|
this method returns if the folder has already been created
|
public void focus gained focus event focus event add views
|
this method adds all available views from the star team server to
|
public string get server host return dimensions server host text field get text
|
this method returns the name of the server
|
public void action performed action event action event created true create new folder set visible false
|
this method creates a new folder if the ok button has been
|
public string get user name return dimensions user name text field get text
|
this method returns the user name
|
private void init this get content pane set layout border layout this set resizable false this set title string format messages get string migrator 1 this get company name this get product name non nls 1 cp new client panel this this get content pane add cp java awt border layout center bp new button panel this cp this get content pane add bp java awt border layout south set default close operation jframe do nothing on close this add window listener new window adapter public void window closing java awt event window event arg0 get button panel cancel
|
this method initializes the gui controls
|
public void migrate users migrating label set text messages get string progress panel 1 non nls 1 current pos 0 migrating progress bar set maximum max users migrating progress bar set value current pos current overall pos 0 overall progress progress bar set value current overall pos
|
call this method in order to indicate that users will be migrated
|
public void action performed action event action event set visible false
|
this method closes the dialog if the cancel button has been
|
public void migrate artifacts migrating label set text messages get string progress panel 2 non nls 1 current pos 0 migrating progress bar set maximum max items migrating progress bar set value current pos current overall pos max users overall progress progress bar set value current overall pos
|
call this method in order to indicate that items will be migrated
|
public string get password return string copy value of dimensions password password field get password
|
this method returns the password
|
public void migrate links migrating label set text messages get string progress panel 3 non nls 1 current pos 0 migrating progress bar set maximum max links migrating progress bar set value current pos current overall pos max users max items overall progress progress bar set value current overall pos
|
call this method in order to indicate that links will be migrated
|
public void build summary pane get summary panel summary panel summary panel cp get wizard panel get wizard client panel get summary panel set summary text summary panel set summary this get summary
|
this method creates a summary text about all wizard pages and sets this
|
public string get dbconnection return string dimensions dbconnection text field get text
|
this method returns the name of the selected project
|
public boolean wants migrate next project return migrate next project check box is selected
|
this method returns if the user wants to migrate another project
|
public void migrate swing worker worker new swing worker public object construct try get the panels apply the settings bp apply settings migrate users migrate users migrate items migrate artifacts catch throwable t t print stack trace return null public void finished bp next page worker start
|
this method starts the migration
|
public string get dbname return string dimensions dbname text field get text
|
this method returns the name of the selected view
|
public string get folder return string dimensions folder combo box get selected item
|
this method returns the name of the selected project
|
private void migrate artifacts throws throwable this process migrate packages
|
this method migrates the items
|
public legacy repository panel get legacy repository panel return legacy repository panel
|
this method returns the code legacy repository panel code instance of
|
public summary panel get summary panel return summary panel
|
this method returns the code summary panel code instance of this
|
public progress panel get progress panel return progress panel
|
this method returns the code progress panel code instance of this
|
private void init this set layout client panel card layout this add new welcome panel this migrator welcome panel non nls 1 wp new wizard panel migrator this add wp wizard panel non nls 1 fp new finish panel migrator this add fp finish panel non nls 1
|
this method initializes the gui controls
|
private void migrate users migrate the users todo bz migrate users
|
this method migrates the users
|
public wizard panel get wizard panel return wp
|
this method returns the wizard panel which contains the individual
|
public finish panel get finish panel return fp
|
this method returns the finish panel
|
public void set messages string title string description title label set text title description label set text description
|
use this method to set the title and description displayed in this panel
|
private void init this set layout wizard border layout this set border null this set minimum size new dimension 41 80 this set preferred size new dimension 41 80 tp new top panel this migrator this add tp java awt border layout north wcp new wizard client panel migrator this add wcp java awt border layout center
|
this method initializes the gui controls
|
public void connect get the legacy repository panel legacy repository panel legrep cp get wizard panel get wizard client panel get legacy repository panel get source connection connection source legrep get connection get target connection connection target this get target connection connect to both bugzilla and star team this process set source source get repository this process set destination target get repository bz add observer new observer public void update observable o object arg cp get wizard panel get wizard client panel get progress panel inc current pos
|
this method connects to the legacy repository and to the borland star team
|
public wizard client panel get wizard client panel return wcp
|
this method returns the code wizard client panel code that holds the
|
public string get server host return starteam server host text field get text
|
this method returns the name of the server
|
public top panel get top panel return tp
|
this method returns the top panel which provides a title and description
|
public void set focus dimensions user name text field grab focus
|
this method sets the focus to the first component of this page
|
public boolean check legacy connection params get the wizard panel that contains the individual panels of the wizard wizard client panel wcp cp get wizard panel get wizard client panel legacy repository panel legacy panel wcp get legacy repository panel check if the legacy connection settings are complete return legacy panel check connection
|
this method checks if the legacy connection params entered by the user
|
private string get connection string return legacy connection string text field get text
|
this method returns the server host name given by the user
|
private string get user name return legacy user name text field get text
|
this method returns the user name given by the user
|
public int get server endpoint return integer starteam server port spinner get value int value
|
this method returns the server port
|
public void action performed action event action event if page index 1 page sub index 0 if migrator check legacy connection params update panels 1 else display invalid settings dlg else if page index 2 if migrator get client panel get finish panel wants migrate next project page index 1 page sub index 0 update panels 0 else update panels 1
|
this method handles pressing the next button
|
public client panel get client panel return cp
|
this method returns the client panel which allows access to all pages
|
private string get password return string copy value of legacy password password field get password
|
this method returns the password given by the user
|
public button panel get button panel return bp
|
this method returns the button panel
|
private void display invalid settings dlg joption pane show message dialog migrator messages get string button panel 53 non nls 1 messages get string button panel 54 non nls 1 joption pane error message
|
this method displays a message that the settings made by the user
|
protected image icon create image icon string path string description http java sun com docs books tutorial uiswing misc icon html java net url img url get resource path path if img url null return new image icon img url description else system err println messages get string welcome panel 0 path non nls 1 return null
|
this method is creates a new code image icon code from the given
|
public string get user name return starteam user name text field get text
|
this method returns the user name
|
private void init this set layout summary panel border layout summary scroll pane set horizontal scroll bar policy scroll pane constants horizontal scrollbar never summary scroll pane set vertical scroll bar policy scroll pane constants vertical scrollbar always summary label set tool tip text messages get string summary panel 0 non nls 1 summary label set background color white summary label set vertical alignment swing constants top this add summary scroll pane java awt border layout center summary scroll pane get viewport add summary label
|
this method initializes the gui controls
|
public void action performed action event action event update panels 1
|
this method handles pressing the back button
|
public void set summary string summary summary label set text summary
|
this method sets the summary text
|
public void action performed action event action event cancel
|
this method handles pressing the cancel button
|
public string get password return string copy value of starteam password password field get password
|
this method returns the password
|
public string get new name return name text field get text
|
this method returns the name entered by the user
|
public string get project return string starteam project combo box get selected item
|
this method returns the name of the selected project
|
public string get view return string starteam view combo box get selected item
|
this method returns the name of the selected view
|
public void enable next button boolean enabled next button set enabled enabled
|
this method enables or disables the next button
|
public string get folder return string starteam folder combo box get selected item
|
this method returns the name of the selected project
|
public void build summary pane get summary panel summary panel summary panel cp get wizard panel get wizard client panel get summary panel set summary text summary panel set summary this get summary if this process instanceof default process file output stream out print stream summary file try out new file output stream default process this process get log name html summary file new print stream out summary file println this get summary summary file close catch exception e e print stack trace system err println error writing to file
|
this method creates a summary text about all wizard pages and sets this
|
public void next page update panels 1
|
this method locates the next page
|
public void set focus starteam server host text field grab focus
|
this method sets the focus to the first component of this page
|
private void close notifier synchronized block notifier if notifier null try if concept sdk build does not work correctly in concept sdk but should be done in real phone to deregister service notifier close catch exception e string message error trying to close notifier e get message error screen show error message display get current notifier null
|
closes the notifier
|
public void set service uuid string uuid store uuid service uuid uuid because this is normally one of the first functions called this notification is placed here if concept sdk build display note reminder that this is build for conecpt sdk in build for real phones concept sdk build should be set to false alert a new alert concept sdk build null alert type info a set timeout 1000 display set current a try thread sleep 1000 catch interrupted exception e we can just ignore
|
sets the uuid for the service
|
public void run int time add one second time gauge get value 1 is current value of gauge less than the max if time gauge get max value begin at 0 time 0 store new value gauge set value time
|
the run method
|
protected void stop stop the timer cancel tm cancel
|
stops the timer
|
public void next device set current value gauge set value timer max stop the timer timer max page time
|
start progress bar for next device
|
public void inquiry completed int disc type if disc type inquiry completed check if devices have been found if cached devices size 0 no device found warning no devices found else stop inquiry progress bar progress bar stop start service search progress bar progress bar new page progress bar search service cached devices size start service search next device service search return in case inquiry was terminated or no device has been found then return to main function synchronized block c block c notify all note progress bar is anyway stopped by search service method
|
called when an inquiry is completed
|
public void services discovered int trans id service record serv record a service was found on the device curr serv rec serv record 0
|
is called when the service we searched for is found
|
private void display found services if device list null create new device list int lt if search type search all devices select several lt list multiple else lt list implicit create new device lsit device list new device list lt append new service device retrieve remote name data element de service record found service records last element get attribute value service name base language string rname string de get value add device to list device list append rname null
|
display found services
|
public void run synchronized block ss if service search trans id 1 only if there is a service search active discovery agent cancel service search service search trans id wait until service search has terminated try block ss wait catch interrupted exception e we can ignore this now notify search service method synchronized block c block c notify all
|
terminates service search
|
private void cancel serv search synchronized block ss if service search trans id 1 only if there is a service search active discovery agent cancel service search service search trans id wait until service search has terminated try block ss wait catch interrupted exception e we can ignore this
|
cancels the current service search
|
public void ready remove command stop add command cancel
|
should be called when no more elements will be added to the
|
private void simulate keystroke final int key code runnable proc new runnable public void run context dispatch key event new key event key event action down key code context dispatch key event new key event key event action up key code handler post proc
|
wrapper function taking a key code
|
protected void append in lines string builder sb string lines validate not null sb if lines null log finest lines is null else for int i 0 i lines length i if string utils is not blank lines i if i 0 sb append finwriter visitor swift eol sb append lines i
|
append each lines in a new lines empty lines are ignored
|
public string get component final int number internal position index is zero based int position number 1 if this components null if position 0 position this components size return this components get position return null
|
gets a specific component from the components list
|
public void set amount number amount set component1 com prowidesoftware swift model swift format utils get number amount
|
set the amount
|
public string get value return get component1
|
get the swift format value of the field
|
public string get value string builder result new string builder result append append in lines result get component1 get component2 get component3 get component4 get component5 return result to string
|
get the swift format value of the field
|
public string get value string buffer result new string buffer boolean wrote something false if org apache commons lang string utils is not empty get component1 result append get component1 wrote something true if org apache commons lang string utils is not empty get component2 result append get component2 wrote something true if org apache commons lang string utils is not empty get component3 if wrote something result append net sourceforge wife swift writer finwriter visitor swift eol result append get component3 return result to string
|
get the swift format value of the field
|
public string get value string buffer result new string buffer if org apache commons lang string utils is not blank get component1 result append get component1 if org apache commons lang string utils is not blank get component2 result append get component2 if org apache commons lang string utils is not blank get component3 result append get component3 string r result to string return r
|
get the swift format value of the field
|
public string get value string buffer result new string buffer if org apache commons lang string utils is not empty get component1 result append get component1 if get component2 as number null result append swift format utils get number get component2 as number string r result to string return r
|
get the swift format value of the field
|
public consignar create consignar return new consignar
|
create an instance of
|
public transaccion create transaccion return new transaccion
|
create an instance of
|
public transaccion response create transaccion response return new transaccion response
|
create an instance of
|
public retiro response create retiro response return new retiro response
|
create an instance of
|
public retiro create retiro return new retiro
|
create an instance of
|
public int get origen return origen
|
gets the value of the origen property
|
public void set origen int value this origen value
|
sets the value of the origen property
|
public int get destino return destino
|
gets the value of the destino property
|
public int get saldo return saldo
|
gets the value of the saldo property
|
public void set destino int value this destino value
|
sets the value of the destino property
|
public void set saldo int value this saldo value
|
sets the value of the saldo property
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.