input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
private void mni add to diagram launcher view get instance get current class diagram add get selected node
|
add selected node to current class diagram
|
protected boolean is loading return loading
|
return state if loading figures
|
private void mni open change objects null
|
triggered by menu nav tree activate diagram
|
public class diagram view create class diagram element diagram element tool done jinternal frame frame get internal frame diagram element if frame null refocus found frame try frame set selected true catch java beans property veto exception e handle exception e return class diagram view drawing frame frame get drawing view else diagram not yet shown class diagram view drawing view new class diagram view this diagram diagram element add internal frame drawing view return drawing view
|
creates and opens a class diagram within an internal frame
|
private tool button create tool button string icon name string tool name tool tool try return new tool button this icon name tool name tool catch null pointer exception e tracer get instance developer error file icon name could not be found non nls 3 non nls 2 non nls 1 return null
|
creates a tool button with the given image tool and text
|
private void de activate frame drawing frame frame if current frame frame if frame null frame validate frame unregister listener frame get drawing view freeze view set current frame null
|
deactivate the current internal frame and adapt corresponding tools
|
private void new class diagram try element element element factory create diagram get selected node launcher view get instance create class diagram element select element element rename node catch throwable e handle exception e
|
add a new class diagram to model and open it
|
private node figure load node ch ehi umleditor umlpresentation presentation node node figure figure set model node figure figure set class diagram this node figure figure set node node show figure super add figure move the figure to the last saved coordinates java awt point origin new java awt point node get east node get south java awt point corner new java awt point node get east node get width node get south node get height figure display box origin corner return node figure figure
|
draw a node out of model on this diagram
|
public void dispose if save on closing dispose application
|
exits the application
|
public drawing drawing if current frame null return null else return current frame get drawing
|
gets the editors drawing
|
private boolean correct dependency relocation dependency line connection dependency figure ch ehi umleditor umlpresentation dependency dependency ch ehi umleditor umlpresentation dependency dependency figure get edge if dependency size endpoint 2 iterator endpoints dependency iterator endpoint if correct node edge figure dependency figure presentation edge dependency dependency figure get start element 0 presentation node endpoints next if correct node edge figure dependency figure presentation edge dependency dependency figure get end element 1 presentation node endpoints next return true tracer get instance developer warning auto correction removing dependency presentation from diagram get diagram delete presentation element dependency return false
|
client or supplier might have been changed therefore correct its presentation
|
private boolean correct generalization relocation generalization line connection generalization figure ch ehi umleditor umlpresentation generalization generalization ch ehi umleditor umlpresentation generalization generalization figure get edge if generalization size endpoint 2 iterator endpoints generalization iterator endpoint if correct node edge figure generalization figure presentation edge generalization generalization figure get start element 0 presentation node endpoints next if correct node edge figure generalization figure presentation edge generalization generalization figure get end element 1 presentation node endpoints next return true tracer get instance developer warning auto correction removing generalization presentation from diagram get diagram delete presentation element generalization return false
|
parent or child might have been changed therefore correct its presentation
|
public void figure selection changed ch ifa draw framework drawing view view
|
sent when the figure selection has changed
|
public class diagram view get current class diagram if current frame null current frame get drawing view instanceof class diagram view return class diagram view current frame get drawing view else return null
|
return the currently selected class diagram
|
private edge figure load role presentation role role edge figure figure new presentation role figure this role load simple edge figure return figure
|
draw the presentation role
|
protected void load simple edge edge figure figure figure connect nodes show figure super add figure figure update view
|
show a simple edge by means plain edge figure as dependency or generalization
|
public figure remove figure figure seems to be tricky in jhot draw to get what is wanted figure fig super remove figure clear selection repaint repair damage remove from selection figure if figure null editor view null remove node from drawing clear selection add to selection figure command delete command new undoable command new delete command jhot draw constants delecte command editor delete command execute return figure
|
removes a figure from the drawing
|
private figure save association composite ch ehi umleditor umlpresentation association association composite composite is saved in diagram instead of edges get diagram add presentation element association composite display the whole composite load association association composite return null
|
draw figures and save element into diagram
|
private jinternal frame get internal frame element diagram element jinternal frame frames get dtp draw area get all frames for int i 0 i frames length i if class diagram view drawing frame frames i get drawing view get diagram diagram element return frames i return null
|
return internal frame for given diagram element if existing null otherwise
|
private figure save class figure abstract model element classifier classifier figure figure todo hack classifier type should be classifier create the presentation element ch ehi umleditor umlpresentation class class def view ch ehi umleditor umlpresentation class element factory create object ch ehi umleditor umlpresentation class class save node class def view classifier figure return figure
|
draw figure and save element into diagram
|
protected void save node ch ehi umleditor umlpresentation presentation node node model element model element figure figure node figure figure set class diagram this node add subject model element node figure figure set node node save node in diagram node figure
|
save the presentation of node in model
|
private void check association ch ehi uml1 4 implementation abstract model element model element presentation node node ch ehi uml1 4 foundation core association association def iterator it association def iterator connection while it has next association end role def association end it next if role def contains participant role def get participant equals model element try save association association def node role def check xor role model element
|
check whether given association should have been drawn
|
private void new uml package try select element element factory create owned element ch ehi uml1 4 implementation uml package class get selected node rename node catch throwable e handle exception e
|
add a uml package
|
private figure save package figure model element model element figure figure create the presentation element ch ehi umleditor umlpresentation package package view ch ehi umleditor umlpresentation package element factory create object ch ehi umleditor umlpresentation package class save node package view model element figure return figure
|
draw figure and save element into diagram
|
protected void show all association names boolean visible show association names visible figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof link figure presentation assoc class link figure figure get node get association set show name visible link figure figure changed check damage
|
show hide all association names in diagram
|
private jpanel get tre projects there must be a hideen connection conn eto c1 which cannot be removed properly resp save bean generates references see inner class mouse released tracer get instance developer warning va bug method actually not necessary non nls 2 non nls 1 return new jpanel
|
dummy method because of vaj bug
|
protected void show all attribute multiplicity boolean visible get diagram set show attribute multiplicity visible update attributes
|
show hide all attribute multiplicities in diagram
|
public string get id ch interlis ili2c compiler log event evt translate filename and linenumber to element id int line evt get line string filename evt get filename string id null id find element id filename line if id null return id return null
|
called by the log listener for every ili2c error message
|
public void handle exception java lang throwable exception log get resource string ceruntime error exception to string non nls 1 super handle exception exception
|
called whenever the part throws an exception
|
protected void show all attributes boolean visible show attributes visible figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof class figure presentation abstract class class figure figure get node set suppress attributes visible
|
show hide all attributes names in diagram
|
public void remove in model element element get selected node if element null element factory remove element element
|
remove the element in model
|
protected void show all attribute types boolean visible get diagram set show attribute type visible update attributes
|
show hide all attribute types in diagram
|
private void rename node tree path path get tre navigation get selection path if path null get tre navigation start editing at path path
|
switch selected node into editing mode
|
public void handle exception java lang throwable exception string title string message log get resource string ceruntime error title message exception to string non nls 4 non nls 3 non nls 2 non nls 1 base dialog show error this title message exception
|
called whenever the part throws an exception
|
protected void show all link figures boolean visible show link figure visible figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof link figure figure changed check damage
|
show hide all link figures of an association
|
public void select element element element if element instanceof ch ehi interlis associations participant element ch ehi interlis associations participant element get association tree path found node model adapter find element definition node element if found node null ce 20030301 was soll das machen clear selection get tre navigation set selection path null else get tre navigation expand path get tre navigation get selection path get tre navigation make visible path get tre navigation set selection path found node get tre navigation scroll path to visible found node
|
select given element in navigation tree
|
protected void show all operations boolean visible show attributes visible figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof class figure presentation abstract class class figure figure get node set suppress operations visible
|
show hide all operations in diagram
|
private void selection changed javax swing event tree selection event tree selection event element tree node get selected node if tree node null rename get tre navigation set editable navigation tree node utility is node editable tree node documentation update at deselect as well launcher view get instance set description tree node
|
adapt anything when tree selection changes
|
protected void show all multiplicities boolean visible show multiplicity visible figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof presentation role figure presentation role presentation role figure figure get edge set multiplicity visible visible
|
show hide all roles in diagram
|
protected void show all roles boolean visible show roles visible figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof presentation role figure presentation role presentation role figure figure get edge set name visible visible
|
show hide all roles in diagram
|
protected void layout all visible rolenames figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof presentation role figure presentation role figure figure layout rolename
|
layout all visible rolenames in diagram
|
public void show specification element tree node get selected node if tree node null show uml model specification which is actually in logical view node but showed as root node launcher view get instance show specification launcher view get instance get model else if navigation tree node utility has specification tree node generic case new common specification dialog launcher view get instance tree node else if tree node instanceof ch ehi umleditor umlpresentation diagram default case launcher view get instance show specification tree node
|
show the specification dialog of the presentation element
|
protected void layout all visible multiplicities figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof presentation role figure presentation role figure figure layout multiplicity
|
layout all visible multiplicities in diagram
|
private void update attributes figure enumeration enumeration drawing figures while enumeration has more elements figure figure enumeration next figure if figure instanceof class figure class figure figure update view
|
update all attributes in diagram
|
protected void initialize view add window listener new java awt event window adapter public void window closing java awt event window event e dispose initialize launcher menu create look and feel menu get mnu look and feel initialize drawing area mdi listeners new vector add internal frame listener this used by adapt tools new iconkit this refresh documentation
|
initialize the view
|
public void internal frame activated javax swing event internal frame event e activate frame drawing frame e get source
|
invoked when an internal frame is activated
|
public void internal frame closed javax swing event internal frame event e de activate frame drawing frame e get source
|
invoked when an internal frame has been closed
|
public void internal frame closing javax swing event internal frame event e de activate frame drawing frame e get source
|
invoked when an internal frame is in the process of being closed
|
public void internal frame deactivated javax swing event internal frame event e de activate frame drawing frame e get source
|
invoked when an internal frame is de activated
|
public void internal frame deiconified javax swing event internal frame event e activate frame drawing frame e get source
|
invoked when an internal frame is de iconified
|
public void internal frame iconified javax swing event internal frame event e de activate frame drawing frame e get source
|
invoked when an internal frame is iconified
|
public void internal frame opened javax swing event internal frame event e activate frame drawing frame e get source
|
invoked when a internal frame has been opened
|
public void log string title string log text try get pnl log append text title log text catch throwable e tracer get instance developer error e get localized message
|
forward a log message to the log view
|
public void log string id string title string log text try get pnl log append text id title log text catch throwable e tracer get instance developer error e get localized message
|
forward a log message to the log view
|
public void meta model changed meta model change event set model changed true adapt window title if event get source instanceof ch ehi uml1 4 implementation uml model set title keep documentation up to date if event get source current element refresh documentation
|
this function gets called when a change to a metamodel object occured
|
private void mni about box tool deactivate new about box dialog this tool activate
|
show about box
|
private void mni cascade windows tool deactivate get dtp draw area cascade frames tool activate
|
show internal frames cascaded
|
private void mni find replace new find dialog this false
|
open the find dialog
|
private void mni layout diagram tool deactivate ch ehi umleditor format layout diagram layout current diagram tool activate
|
layout current diagram
|
private void mni model check tool deactivate ch ehi umleditor interlis modelcheck check model check all tool activate
|
initiate a model check
|
private void mni new file tool deactivate try if save current changes create new empty project element factory reset counter set current file null set model null null log get resource string cimodel new non nls 2 non nls 1 open initial diagram catch throwable e handle exception e tool activate
|
create a new file
|
private void mni object catalog tool deactivate ch ehi umleditor objectcatalog object catalog write all html tool activate
|
build an object catalog
|
private void mni open file tool deactivate if save current changes file chooser open dialog new file chooser get settings get working directory open dialog set dialog title common user access get title file open open dialog add choosable file filter create uml interlis editor filter if open dialog show open dialog this jfile chooser approve option get settings set working directory open dialog get current directory get absolute path set model changed false open file open dialog get selected file get absolute path tool activate
|
shows a file dialog and opens a drawing
|
private void mni options tool deactivate new options dialog this tool activate
|
show options dialog
|
private void mni modellanguage tool deactivate modellanguage dialog dlg new modellanguage dialog this get resource string dlg modellanguage true string lang dlg get selected language if lang null set modelling language lang tool activate
|
show modellanguage dialog
|
protected void mni remove tool deactivate nyi l schen der aktuellen selektion non nls 1 tool activate
|
remove whatever the current selection asks for
|
private boolean mni save file tool deactivate if get current file null tool activate return mni save as else try tool done save file get current file catch java io ioexception e handle exception e filesave e get message catch throwable e handle exception e tool activate return true
|
saves model and drawings into a file
|
private void mni tile tool deactivate get dtp draw area tile frames tool activate
|
show internal frames tiled
|
private void mni tile windows tool deactivate get dtp draw area tile frames tool activate
|
show internal frames tiled
|
public void palette user over palette button button boolean inside tool button tool button tool button button if inside show status tool button name else if selected tool button null show status null else show status selected tool button name
|
the user moved the mouse over the palette entry
|
public void palette user selected palette button button tool button tool button tool button button set selected tool tool button
|
the user selected a palette entry
|
protected void print navigation tree tool deactivate print job print job get toolkit get print job this get resource string ciprint nav tree null non nls 1 if print job null graphics graphics print job get graphics if graphics null get pnl navigation print all graphics graphics dispose flush page print job end tool activate
|
print navigation tree
|
private void refresh documentation if current element null get pnl documentation set editable false get pnl documentation set text null else if get pnl documentation get text null get pnl documentation get text equals element utils map nls string current element get documentation get pnl documentation set text element utils map nls string current element get documentation get pnl documentation set editable true
|
show refreshed documentation of the currently selected element in navigationtree
|
public void refresh internal frames drawing view current view jinternal frame frames get dtp draw area get all frames for int i 0 i frames length i if drawing frame frames i get drawing view equals current view frames i dispose drawing frame frames i get drawing view check damage
|
refresh all internal frames
|
public void refresh model clear current model if ch ehi uml1 4 changepropagation meta model get instance contains meta model listener this unregister listener while building new model ch ehi uml1 4 changepropagation meta model get instance remove meta model listener this get dtp draw area remove all get dtp draw area repaint current frame null adapt tools get pnl log clear register listener meta model get instance add meta model listener this log modell geladen von datei model get name this model model get pnl navigation set model get model set title set model changed true
|
refresh the current model for e
|
public void remove view change listener ch ifa draw framework view change listener vsl
|
remove view change listener method comment
|
private boolean save current changes try tool done if has model changed boolean answer base dialog show confirm exit java awt component this if answer boolean true return mni save file else return answer null else return true catch throwable e handle exception e return false
|
check whether model has changed
|
private void save documentation update current documentation if current element null get pnl documentation has contents changed current element set documentation new ch ehi basics types nls string current element get documentation get pnl documentation get text
|
save the documentation of the current element
|
public void selection changed drawing view view handle main menu
|
informs that the current selection has changed
|
private void set current frame drawing frame drawing frame current frame drawing frame get mni layout diagram set enabled drawing frame null adapt tools drawing frame
|
keep activated diagram in mind
|
public void set description element element if current element element save documentation done at key released replace current element current element element refresh documentation
|
set the focused element to keep changes of its documentation
|
private void set model changed boolean changed has model changed changed get mni save set enabled changed get tlb standard set tbb save enabled changed
|
keep changes of model in mind
|
static public boolean is ili struct attr role def role association def assoc association def role get association if assoc size connection 2 return false role def oppend get opp end role if oppend null association incomplete return false if oppend contains participant association incomplete return false classifier oppend class oppend get participant if role get aggregation aggregation kind composite oppend class instanceof class def class def oppend class get kind ch ehi interlis modeltopicclass class def kind structure return true return false
|
tests if role is a ili struct attr
|
private void set current file java io file file current file file if file null set title get application name default file name non nls 1 else set title get application name file get name non nls 1 if model null ch ehi uml1 4 changepropagation meta model get instance notify change new ch ehi uml1 4 changepropagation meta model change model set name
|
set current working uml file
|
public void show specification element element if element instanceof ch ehi interlis associations participant element ch ehi interlis associations participant element get association try java lang class types java awt frame class element class object args this element java lang reflect constructor constructor element utils get element dialog element get constructor types constructor new instance args catch throwable e dialog error handle exception e
|
show the specification dialog of the model element
|
public tool tool if selected tool button null return selected tool button tool else return null
|
gets the editors current tool
|
public void tool done if default tool button null set selected tool default tool button
|
informs the editor that a tool has done its interaction
|
public drawing view view if current frame null return null else return current frame get drawing view
|
gets the editors current drawing view
|
protected void set up throws exception red 34 green 104 blue 99 awt color new java awt color red green blue presentation color new ch ehi umleditor umlpresentation color presentation color set red red presentation color set green green presentation color set blue blue
|
sets up the fixture for example open a network connection
|
public void test create awt color awt color color converter create color presentation color assert true create awt color red awt color get red red assert true create awt color green awt color get green green assert true create awt color blue awt color get blue blue
|
test static creators
|
public void test create presentation color presentation color color converter create color awt color assert true create presentation color red presentation color get red red assert true create presentation color green presentation color get green green assert true create presentation color blue presentation color get blue blue
|
test static creators
|
public void test is same assert true is same equal color color converter is same presentation color awt color assert true is same null null color converter is same null null assert true is same color null color converter is same presentation color null assert true is same null color color converter is same null awt color
|
test static comparison
|
public void set home page history token string home page history token
|
this method set the value of history token of homepage
|
public void set home page history token string home page history token if home null get home page link if home page history token null home set html a href javascript application resources get costants home page context label a else home set html a href home page history token application resources get costants home page context label a
|
this method set the value of history token of homepage
|
public void on failure final throwable caught noinspection for loop replaceable by for each for int i 0 i listeners size i object listener listeners get i bootstrap event listener be listener bootstrap event listener listener if be listener null be listener on bootstrap failed new bootstrap event set event description gwt error caught caught
|
invoke when the bootstrap service fail
|
public void on success object result noinspection for loop replaceable by for each for int i 0 i listeners size i object listener listeners get i bootstrap event listener be listener bootstrap event listener listener if be listener null noinspection instanceof interfaces if result null result instanceof bootstrap data be listener on bootstrap new bootstrap event bootstrap data result else be listener on bootstrap failed new bootstrap event set event description no authorization data received or authorization system was not set up correctly
|
invoke when the bootstrap service is success
|
public void bootstrap bootstrap event listener ae listener add bootstrap event listener ae listener bootstrap service factory get instance get bootstrap data new bootstrap async callback bootstrap event listeners
|
adds a new authentication event listener object to the list of listeners
|
public void add bootstrap event listener bootstrap event listener ae listener noinspection unchecked bootstrap event listeners add ae listener
|
adds a new authentication event listener object to the list of listeners
|
public void remove bootstrap event listener bootstrap event listener ae listener if bootstrap event listeners contains ae listener bootstrap event listeners remove ae listener
|
remove a authentication event listener object to the list of listeners
|
public void on module load log text write on log text on module load bootstrap entry point class get name gwt set uncaught exception handler new my uncaught exception handler bootstrap new bootstrap event listener public void on bootstrap failed bootstrap event bootstrap event message box alert authentication failed bootstrap event get event description window alert authentication failed bootstrap event get event description public void on bootstrap bootstrap event bootstrap event bootstrap data bootstrap event get bootstrap data application context factory create application context bootstrap data
|
the entry point of all application
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.