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

Method select

src/main/java/gate/gui/MainFrame.java:456–464  ·  view source on GitHub ↗

Selects a resource if loaded in the system and not invisible. @param res the resource to be selected. @return the Handle for the resource, null if not found.

(Resource res)

Source from the content-addressed store, hash-verified

454 * @return the {@link Handle} for the resource, null if not found.
455 */
456 public Handle select(Resource res) {
457 // first find the handle for the resource
458 Handle handle = findHandleForResource(res);
459 // now select the handle if found
460 if(handle != null) {
461 select(handle);
462 }
463 return handle;
464 }
465
466 protected void select(Handle handle) {
467 final JComponent largeView = handle.getLargeView();

Callers 15

processMouseEventMethod · 0.95
valueChangedMethod · 0.95
processMouseEventMethod · 0.95
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
actionPerformedMethod · 0.80

Calls 7

findHandleForResourceMethod · 0.95
getLargeViewMethod · 0.65
viewsBuiltMethod · 0.65
getTitleMethod · 0.65
getIconMethod · 0.65
getTooltipTextMethod · 0.65
getSmallViewMethod · 0.65

Tested by

no test coverage detected