MCPcopy Create free account
hub / github.com/GateNLP/gate-core / show

Method show

src/main/java/gate/gui/NewResourceDialog.java:180–195  ·  view source on GitHub ↗

This method is intended to be used in conjunction with getSelectedParameters(). The method will not instantiate the resource like #show(ResourceData) but it is intended to collect the params required to instantiate a resource. Returns true if the user pressed OK and false otherwise.

(ResourceData rData, String aTitle)

Source from the content-addressed store, hash-verified

178 * and false otherwise.
179 */
180 public synchronized boolean show(ResourceData rData, String aTitle) {
181 this.resourceData = rData;
182 if (aTitle != null) setTitle(aTitle);
183
184 parametersEditor.init(null,
185 rData.getParameterList().getInitimeParameters());
186 pack();
187 nameField.requestFocusInWindow();
188 userCanceled = true;
189 setModal(true);
190 setLocationRelativeTo(getOwner());
191 super.setVisible(true);
192 dispose();
193 if(userCanceled) return false;
194 else return true;
195 }//show();
196
197 /** Returns the selected params for the resource or null if none was selected
198 * or the user pressed cancel

Callers 15

runMethod · 0.95
actionPerformedMethod · 0.45
processMethod · 0.45
showContextMenuMethod · 0.45
processMouseEventMethod · 0.45
runMethod · 0.45
runMethod · 0.45
handleMouseEventMethod · 0.45
mousePressedMethod · 0.45
mouseReleasedMethod · 0.45
processMouseEventMethod · 0.45
mousePressedMethod · 0.45

Calls 15

disposeMethod · 0.95
genSymMethod · 0.95
getPrintWriterMethod · 0.95
setTitleMethod · 0.80
getInitimeParametersMethod · 0.80
getParameterListMethod · 0.80
getResourceClassMethod · 0.80
startMethod · 0.80
initMethod · 0.65
getOwnerMethod · 0.65
getNameMethod · 0.65
packMethod · 0.45

Tested by

no test coverage detected