private Image createRunIcon() { Image icon = new Image(ThemeResources.INSTANCE.runChunk()); icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon()); icon.setTitle(commands_.executeCurrentChunk().getTooltip()); bindNativeClickToExecuteChunk(this, icon.getElement()); return icon; }
private Image createRunPreviousIcon(boolean dark) { Image icon = new Image( dark ? ThemeResources.INSTANCE.runPreviousChunksDark() : ThemeResources.INSTANCE.runPreviousChunksLight()); icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon()); icon.setTitle(commands_.executePreviousChunks().getTooltip()); bindNativeClickToExecutePreviousChunks(this, icon.getElement()); return icon; }
private Image createOptionsIcon(boolean dark, boolean setupChunk) { Image icon = new Image( dark ? ThemeResources.INSTANCE.chunkOptionsDark() : ThemeResources.INSTANCE.chunkOptionsLight()); icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon()); if (setupChunk) icon.addStyleName(RES.styles().setupChunk()); icon.setTitle("Modify chunk options"); bindNativeClickToOpenOptions(this, icon.getElement()); return icon; }