input
stringlengths
10
828
output
stringlengths
5
107
public void runtime info string info log info source method name info ehi logger log state info ehi logger get instance log event new std log event log event state info null get origin 0
log informations during runtime by means this may represent a valuable
public boolean is set string name if options contains key name return options get name boolean value return false
return whether option with given name is configured yes or no
public void set close on save boolean close on save this close on save close on save
set whether save object in detail views shall close gui if only one
public void runtime warning string warning log runtime warning source method name warning ehi logger log adaption warning ehi logger get instance log event new std log event log event adaption warning null get origin 0
log warnings during runtime by means errors might have been happened but
public void set action string action get lbl action set foreground java awt color black get lbl action set text action
display an action message in middle panel
public void set option string name boolean allow options put name boolean value of allow
set a certain option
protected string get description string return resource manager get resource base dialog class cidescription
return description label string
public void set mark string status get lbl mark set text status
display an object mark in right panel
public void reset get txt date from set date null get txt date to set date null
enter null values into from to fields
public void set mode final int mode this mode mode ehi logger get instance set trace filter mode silent mode normal
change the filter level for logging messages
public void set status string status get lbl status set text status
display a status message in left panel
public void set rights user action rights rights if rights null if rights is save object allowed set status get resource string ciread only
display user rights for the gui this status bar is attached to
public void add object save changes if listener null objects add listener create object see get last current index objects size 1 set current object objects get current index else tracer get instance developer error make sure to have a listener non nls 2 non nls 1
add a new object to list at the very end
public void uncaught exception throwable exception try exception print stack trace out stream log uncaught exception source method name exception to string ehi logger get instance log event new std log event log event error uncaught exception exception get origin 0 catch throwable e system err println tracer uncaught exception e get localized message
use this message to trace non visually handled exceptions which might be
public void set working directory java lang string working directory set property working directory working directory
sets the working directory property java
public void set status assign try get lbl status set text resource manager get resource status bar class cistatus assign catch java util missing resource exception e get lbl status set text assign
the owning view is in state of an assignment
public void set warning string status get lbl action set foreground java awt color red get lbl action set text status
display a warning state in middle panel
protected void handle exception java lang throwable exception if exception instanceof number format exception ignore else super handle exception exception
called whenever the part throws an exception
public void toggle visbility set visible is visible
hide or show the statusbar
protected string get remove string return resource manager get resource base dialog class btn remove text
return remove button label string
public color get chosen color if is saved chosen color null return color white else return chosen color
return the selected color
protected void handle exception java lang throwable exception base frame show exception this exception
popup an error dialog
protected void close on save if get view options null get view options get close on save if get objects size 1 dispose else other model instances may be changed by same view
close this view after save
public boolean is saved do nothing by default return saved
overwrite this method for other ok reasons
protected void undo chosen color null
resets chosen color to null
public void set list java util list string list if list null throw new illegal argument exception null is not valid java util list old value field list field list list fire property change list old value list java util vector integer elements new java util vector integer 1 elements add new integer 1 get cbx count set model new javax swing default combo box model elements todo only one element is implemented yet if list size 1 get pnl editor set text list get 0
sets the list property java
private void handle exception java lang throwable exception ch softenvironment util tracer get instance uncaught exception exception
called whenever the part throws an exception
private void value changed if ch softenvironment util string utils is null or empty get pnl editor get text if get list size 0 get list remove 0 else get list set 0 get pnl editor get text else if get list size 0 get list add get pnl editor get text else get list set 0 get pnl editor get text fire property change list null cheat to really trigger event get list
update list and signal change
protected void ok pressed if save dispose
typical ok action
public void set image string image set image new javax swing image icon splash screen class get resource image
set the wanted image
public void set image image icon icon if icon null ch softenvironment util tracer get instance runtime warning given icon is null get lbl image set icon icon
set the wanted image
protected boolean save do nothing by default saved true return true
overwrite this method for other ok reasons
public object get first save changes if current index 0 current index 0 set current object objects get current index return get current object
return the first of all objects
public void set center location set center location base frame get screen size
show the dialog in the center of the screen
protected void dispose application tracer get instance stop super dispose system exit 0
overwrite the dispose method for b launchers containing a
public object get last save changes if objects null current index 1 objects size current index objects size 1 set current object objects get current index return get current object
return the last of all objects
private void set center location dimension outer size dimension frame size get size if frame size height outer size height frame size height outer size height if frame size width outer size width frame size width outer size width set location new point outer size width frame size width 2 outer size height frame size height 2
show the dialog in the center of the outer dimension
protected void trace only java lang throwable exception tracer get instance uncaught exception exception non nls 1
trace the exception
public object get next if objects null objects size 0 current index 1 objects size save changes set current object objects get current index else set current object null return get current object
set next object as current object
public void dispose get dlg exception dispose super dispose
disposes the dialog and then causes show to return if it is currently
protected void handle exception java lang throwable exception show exception this exception
top level handler
protected void undo do nothing by default
overwrite this method for other undo reasons
public object get previous save changes if current index 0 set current object objects get current index return get current object
set previous object as current object
protected void set relative location java awt component parent if parent null set location new point parent get x base frame x child offset parent get y base frame y child offset set center location parent get size set location relative to parent
set this dialog relative to parent window
public void finished if wait counter thread 0 close wait dialog when last actions are done tracer get instance debug thread closing wait dialog try see exeption handler at opening wait dialog wait dialog thread dispose catch throwable e tracer get instance runtime warning show busy thread finished could not dispose wait dialog correctly wait dialog thread null owner set cursor java awt cursor get predefined cursor java awt cursor default cursor
will be called when construct has finished
private void handle exception java lang throwable exception ch softenvironment view base frame show exception null exception
called whenever the part throws an exception
protected void handle exception java lang throwable exception super trace only exception
called whenever the part throws an exception
public void caret position changed java awt event input method event event
invoked when the caret within composed text has changed
public void input method text changed java awt event input method event event char last char event get text last if last char 0 last char 9 last char last char last char if is editable is enabled object parent get root pane get parent string title resource manager get resource number text field class ctinvalid input non nls 1 string message resource manager get resource number text field class cicorrect input non nls 1 reset wrong value ch softenvironment view base dialog show warning java awt component parent title message ignore last char input event consume
invoked when the text entered through an input method has changed
public void append string text get txa editor append text set contents changed
append text at the end
public void page dialog p format p job page dialog p format
displays a page setup dialog
public void set list java util list string list todo only one entry is supported yet java util list string old value field list field list list fire property change list old value list java util vector integer elements new java util vector integer 1 elements add new integer 1 get cbx count set model new javax swing default combo box model elements if list null list size 1 set text list get 0
sets the list property java
public void clear all get txa editor select all mni delete
remove the whole contents from editing area
private void set phone number set internal text get txt country prefix get text separator get txt site prefix get text separator get txt number get text
change the value by this gui
public void remove object if listener null remove from context listener remove object get current object if current index 0 remove from current list only objects remove get current object see get previous set current object objects get current index else very first object to be deleted in list objects remove current index if objects size 0 set current object objects get current index else set current object null else tracer get instance developer error make sure to have a listener non nls 2 non nls 1
remove the current object from list
private void set exception throwable exception if exception null get btn stacktrace set enabled false else this exception exception show minimal presentation get pnl exception set text exception get localized message get btn stacktrace set enabled true
display the exception context
public void print jeditor pane jed pane jeditor pane jed pane new jeditor pane set document jed pane get content type jed pane get document print dialog
prints a document contained within a jeditor pane
protected void fire text key released java util event object new event if field file name panel listener event multicaster null return field file name panel listener event multicaster text key released new event
method to support listener events
public void set text string text get pnl error text set text text
set the text
private void save changes if listener null get current object null objects set current index listener save changes get current object
allow listener to save any changes
private void print dialog if p job print dialog p job set printable this p format try p job print catch printer exception ex page start y 0 page end y 0 current page 1 tracer get instance runtime error error printing document ex
displays the print dialog and initiates
private void set up java awt component owner string title string message throwable original initialize set title title null get resource string ctunexpected error title non nls 1 get pnl error text set text message set exception original set relative location owner set visible true
initialize the dialog
private void set document plain document plain document set document text plain plain document
set a plain document as the document to print
public object get selected object return selected package
returns the package selected by the user
public void set current object java lang object current object object old value field current object field current object current object fire property change current object old value current object non nls 1 treat next previous buttons if listener null listener set current object current object
sets the current object property java
public void add tree model listener tree model listener listener if tree model listeners contains listener tree model listeners add element listener
adds a listener for the tree model event posted after the tree changes
public void set text java lang string arg1 get txt file name set text arg1
method generated to support the promotion of the text attribute
private void set document final string type final document document jeditor pane new jeditor pane jeditor pane set content type type jeditor pane set document document
set the content type and document of the jeditor pane
private void stacktrace get dlg exception set visible true get pnl exception set editable false get pnl exception set text base frame exception to string exception
show the stacktrace of an exception
public void add generic file filter filter if filters null filters new array list generic file filter filters add filter
will be used at file choosing
public void set listener data selector panel listener listener this listener listener get tbb new set visible listener null
set the listener
protected void fire tree structure changed object node ch softenvironment util tracer get instance debug this fire tree structure changed element node structure changed int len tree model listeners size tree model event e new tree model event this get tree path node for int i 0 i len i tree model listener tree model listeners element at i tree structure changed e
invoked after the tree has drastically changed structure from the given
public object get child object parent int index list children get children parent return children get index
returns the child of parent at index index in the parents child array
public int get child count object parent list children get children parent return children size
returns the number of children of parent
public void set objects java util list objects current index 1 this objects objects get next
set the list of objects to treat by selector
private list get children object parent list ret new java util array list add owned elements iterator iterator utility iterator children parent while iterator has next object next iterator next if show only packages if utility is leaf next ret add next else ret add next sort according to user settings java util collections sort ret new compare get order return ret
return all visible children of parent
protected boolean save if get tre tree get selection path null cancel pressed return false else selected package get tre tree get selection path get last path component return super save
overwrites in case ok button was pressed
public int get index of child object parent object child list children get children parent return children index of child
returns the index of child in parent
private void browse try ch ehi basics view browser control display url get txt urltext catch throwable e base dialog show warning java awt component this resource manager get resource urlview class ct browser error e to string
open the standard browser with given text
public void translate set text resource manager get resource file history menu class mnu file history text set tool tip text resource manager get resource file history menu class mnu file history tool tip text
translate to current locale
public void add recent final string filename remove recent filename prevent double entries history add 0 filename shuffle last at top if history size number of entries history remove number of entries build submenu
add most recently opened file to check in at top of history
private void build submenu remove all iterator string iterator history iterator while iterator has next final string filename iterator next jmenu item menu item new jmenu item filename menu item add action listener new action listener public void action performed action event event listener open file filename add menu item
create generic jmenu items
private void signal current object iterator data browser listener it listeners iterator while it has next it next set current object get current object
inform listeners that current object has changed
public void remove recent string filename if history contains filename history remove filename build submenu
remove a file from history for e
private void changed java awt event item event item event if changing if group get selection get action command equals action no set value boolean false else if group get selection get action command equals action yes set value boolean true else set value null
trigger event at user selection change
protected void fire url key released java util event object new event if field urlview listener event multicaster null return field urlview listener event multicaster url key released new event
method to support listener events
private void save changes if get current object null iterator data browser listener it listeners iterator while it has next objects set current index it next save changes get current object
allow listener to save any changes
public boolean is remove allowed return get current object null
enable remove button
public void property change java beans property change event event if event get new value instanceof list event get old value instanceof list if list event get new value size list event get old value size assume last element in list has changed fire tree nodes inserted list event get new value get list event get new value size 1 event get source if utility is node structure changed event fire tree structure changed event get source else if utility is node changed event fire tree nodes changed event get source
this method gets called when a bound property is changed
public void test logarithm natural double log natural math utils ln 59 0 calculated by hp 28 s assert true log natural 4 077 log natural 4 078
this is typically the log function provided by computers
public string get value string if get rbt true is selected return get rbt true get text else if get rbt false is selected return get rbt false get text else return get rbt all get text
return speaking value of
public void remove tree model listener tree model listener l if tree model listeners contains l tree model listeners remove element l
removes a listener previously added with add tree model listener
public void set text java lang string arg1 get txt url set text arg1
method generated to support the promotion of the text attribute
public void set txt urltext java lang string arg1 get txt url set text arg1
method generated to support the promotion of the txt urltext attribute
public void test date gregorian calendar cal new java util gregorian calendar 2003 java util calendar january 25 string date java text date format get date instance java text date format short format cal get time assert true nls utils date equals nls utils format date cal
depends on current locale
public void show tri state boolean tri state get rbt all set visible tri state
show whether all option is available or not
protected void fire txa editor key key released java util event object new event if field simple editor panel listener event multicaster null return field simple editor panel listener event multicaster txa editor key key released new event
method to support listener events whenever contents changes
private jbutton get btn show busy if btn show busy null btn show busy new jbutton btn show busy set text show busy once btn show busy add action listener new java awt event action listener public void action performed java awt event action event e show busy new runnable public void run do long action 1 return btn show busy
this method initializes j button
private jbutton get btn show busy twice if btn show busy twice null btn show busy twice new jbutton btn show busy twice set text show busy recursive btn show busy twice add action listener new java awt event action listener public void action performed java awt event action event e show busy new runnable public void run do long action 3 return btn show busy twice
this method initializes j button
private jbutton get btn show busy sequential if btn show busy sequential null btn show busy sequential new jbutton btn show busy sequential set text show busy sequential btn show busy sequential add action listener new java awt event action listener public void action performed java awt event action event e show busy new runnable public void run do long action 1 show busy new runnable public void run do long action 1 return btn show busy sequential
this method initializes j button