protected void handleRequest(final HttpRequest request, final HttpResponse response) throws HttpException, IOException, JSONException, CalicoAPIErrorException { try { GUITemplate gt = new GUITemplate("command_help.vm"); gt.setSection("console"); // gt.put("test.param.yar", "this is a big test"); gt.getOutput(response); } catch (Exception e) { e.printStackTrace(); } }
public MBColorButton(long c, Color col, String iconPath, Rectangle2D bounds) { super(); cuid = c; color = col; iconString = iconPath; try { // Color curColor = CalicoOptions.getColor("pen.default_color"); // setImage(CalicoOptions.getColorImage(color)); if (CalicoDataStore.PenColor.equals(color) && (CalicoDataStore.Mode == CInputMode.EXPERT || CalicoDataStore.Mode == CInputMode.ARROW)) { setSelected(true); } setImage(CalicoIconManager.getIconImage(iconPath)); setBounds(bounds); } catch (Exception e) { e.printStackTrace(); } }