Returns a help image icon tag to display a help text in the setup wizard.<p>

@param id the id of the desired help div
@param pathPrefix the path prefix to the image
@return the HTML part for the help icon or an empty String, if the part was not found
328983
public String getHtmlHelpIcon(String id, String pathPrefix) {

        String value = m_htmlProps.getProperty("C_HELP_IMG");
        if (value == null) {
            return "";
        } else {
            value = CmsStringUtil.substitute(value, "$replace$", id);
            return CmsStringUtil.substitute(value, "$path$", pathPrefix);
        }
    }
1053891
public static String getImageIdFromAgent(Launcher launcher, final String imageTag, final String host) throws IOException, InterruptedException {
        return launcher.getChannel().call(new MasterToSlaveCallable<String, IOException>() {
            public String call() throws IOException {
                return DockerUtils.getImageIdFromTag(imageTag, host);
            }
        });
    }
547001
public final static String getDisplayName(String ID) {
        return getDisplayName(ID, ULocale.getDefault(Category.DISPLAY));
    }
587569
protected String getViewVersionButtonHtml(CmsUUID structureId, String version) {

        // set flag to activate the preview button of the comparison dialog
        boolean active = true;
        try {
            // only show preview, if the resource is a file
            // or the version has content
            if (OpenCms.getResourceManager().getResourceType(getResource1().getTypeId()).isFolder()) {
                active = false;
            } else {
                byte[] content = readFile(getCms(), structureId, version).getContents();
                if (content.length < 1) {
                    active = false;
                }
            }
        } catch (CmsLoaderException e) {
            // ignore, buttons will be shown

        } catch (CmsException e) {
            // do not show the preview button
            active = false;
        }

        // return button only if file resource
        if (active) {
            String label = Messages.get().container(
                Messages.GUI_COMPARE_VIEW_VERSION_1,
                CmsHistoryListUtil.getDisplayVersion(version, getLocale())).key(getLocale());
            String iconPath = null;
            try {
                String typeName = OpenCms.getResourceManager().getResourceType(
                    getResource1().getTypeId()).getTypeName();
                iconPath = CmsWorkplace.RES_PATH_FILETYPES
                    + OpenCms.getWorkplaceManager().getExplorerTypeSetting(typeName).getIcon();
            } catch (CmsException e) {
                iconPath = CmsWorkplace.RES_PATH_FILETYPES
                    + OpenCms.getWorkplaceManager().getExplorerTypeSetting(
                        CmsResourceTypePlain.getStaticTypeName()).getIcon();
            }
            StringBuffer result = new StringBuffer(1024);
            result.append("<span class='link' onClick=\"");
            result.append("window.open('");
            result.append(getJsp().link(CmsHistoryListUtil.getHistoryLink(getCms(), structureId, version)));
            result.append("','version','scrollbars=yes', 'resizable=yes', 'width=800', 'height=600')\">");
            result.append("<img style='width: 16px; height: 16px;' src='");
            result.append(CmsWorkplace.getSkinUri());
            result.append(iconPath);
            result.append("' alt='");
            result.append(label);
            result.append("' title='");
            result.append(label);
            result.append("'>&nbsp;<a href='#'>");
            result.append(label);
            result.append("</a></span>");

            return result.toString();
        }
        return "";
    }
632124
protected WebMarkupContainer newTabsContainer(final String id)
	{
		final WebMarkupContainer wmc = new WebMarkupContainer(id)
		{
			/** The Constant serialVersionUID. */
			private static final long serialVersionUID = 1L;

			/**
			 * {@inheritDoc}
			 */
			@Override
			protected void onComponentTag(final ComponentTag tag)
			{
				super.onComponentTag(tag);
				tag.put("class", getTabContainerCssClass());
			}
		};
		wmc.setOutputMarkupId(true);
		return wmc;
	}
709755
public static String mapToID(final String aPtPath) throws InvalidPathException {
        final String encapsulatingDir = getEncapsulatingDir(aPtPath);

        String id = aPtPath;

        if (id.endsWith(Character.toString(mySeparator))) {
            id = id.substring(0, id.length() - 1);
        }

        if (encapsulatingDir != null) {
            id = id.substring(0, id.length() - encapsulatingDir.length());
        }

        id = id.replace(Character.toString(mySeparator), "");
        id = decodeID(id);

        return id;
    }
592916
@NonNull
    public static Icon url(@NonNull URL url) {
        return new Icon(url.toString(), false);
    }
800243
public String getAssetURL(String id) {
        String url = getRepositoryUrl() + "/assets/" + id + "?";
        if (getUserId() != null) {
            url += "userId=" + getUserId();
        }
        if (getUserId() != null && getPassword() != null) {
            url += "&password=" + getPassword();
        }
        if (getApiKey() != null) {
            url += "&apiKey=" + getApiKey();
        }
        return url;
    }
79946
public static int getId(Context context, String id) {
        final String defType;
        if (id.startsWith("R.")) {
            int dot = id.indexOf('.', 2);
            defType = id.substring(2, dot);
        } else {
            defType = "drawable";
        }

        Log.d(TAG, "getId(): id: %s, extracted type: %s", id, defType);
        return getId(context, id, defType);
    }
533537
static String getDropDownButtonHtml(ExternalResource icon) {

        return "<div tabindex=\"0\" role=\"button\" class=\"v-button v-widget borderless v-button-borderless "
            + OpenCmsTheme.TOOLBAR_BUTTON
            + " v-button-"
            + OpenCmsTheme.TOOLBAR_BUTTON
            + "\"><span class=\"v-button-wrap\"><img class=\"v-icon\" src=\""
            + icon.getURL()
            + "\" /></span></div>";
    }
581897
protected void appendId(StringBuffer html, String id) {

        html.append(" name=\"");
        html.append(id);
        html.append("\" id=\"");
        html.append(id);
        html.append("\" ");
    }
577071
@Override
    public String displayError(String pathPrefix) {

        if (pathPrefix == null) {
            pathPrefix = "";
        }
        StringBuffer html = new StringBuffer(512);
        html.append("<table border='0' cellpadding='5' cellspacing='0' style='width: 100%; height: 100%;'>");
        html.append("\t<tr>");
        html.append("\t\t<td style='vertical-align: middle; height: 100%;'>");
        html.append(getHtmlPart("C_BLOCK_START", "Error"));
        html.append("\t\t\t<table border='0' cellpadding='0' cellspacing='0' style='width: 100%;'>");
        html.append("\t\t\t\t<tr>");
        html.append("\t\t\t\t\t<td><img src='").append(pathPrefix).append("resources/error.png' border='0'></td>");
        html.append("\t\t\t\t\t<td>&nbsp;&nbsp;</td>");
        html.append("\t\t\t\t\t<td style='width: 100%;'>");
        html.append("\t\t\t\t\t\tThe Alkacon OpenCms update wizard has not been started correctly!<br>");
        html.append("\t\t\t\t\t\tPlease click <a href='").append(pathPrefix);
        html.append("index.jsp'>here</a> to restart the wizard.");
        html.append("\t\t\t\t\t</td>");
        html.append("\t\t\t\t</tr>");
        html.append("\t\t\t</table>");
        html.append(getHtmlPart("C_BLOCK_END"));
        html.append("\t\t</td>");
        html.append("\t</tr>");
        html.append("</table>");
        return html.toString();
    }
193803
public String getIdValue(final URI id) {
        if (id == null) {
            return null;
        }
        final URI localId = id.normalize();
        return idMap.get(localId);
    }
90524
public static function _add_icon( $title, $id ) {
		$meta = Menu_Icons_Meta::get( $id );
		$icon = self::get_icon( $meta );

		if ( empty( $icon ) ) {
			return $title;
		}

		$title_class   = ! empty( $meta['hide_label'] ) ? self::$hidden_label_class : '';
		$title_wrapped = sprintf(
			'<span%s>%s</span>',
			( ! empty( $title_class ) ) ? sprintf( ' class="%s"', esc_attr( $title_class ) ) : '',
			$title
		);

		if ( 'after' === $meta['position'] ) {
			$title_with_icon = "{$title_wrapped}{$icon}";
		} else {
			$title_with_icon = "{$icon}{$title_wrapped}";
		}

		/**
		 * Allow plugins/themes to override menu item markup
		 *
		 * @since 0.8.0
		 *
		 * @param string  $title_with_icon Menu item markup after the icon is added.
		 * @param integer $id              Menu item ID.
		 * @param array   $meta            Menu item metadata values.
		 * @param string  $title           Original menu item title.
		 *
		 * @return string
		 */
		$title_with_icon = apply_filters( 'menu_icons_item_title', $title_with_icon, $id, $meta, $title );

		return $title_with_icon;
	}
850929
function getIcon(id) {
    id = id || '';

    // If the "id" provided is not a string, the only other valid value is a $sce trust wrapper
    // over a URL string. If the value is not trusted, this will intentionally throw an error
    // because the user is attempted to use an unsafe URL, potentially opening themselves up
    // to an XSS attack.
    if (!angular.isString(id)) {
      id = $sce.getTrustedUrl(id);
    }

    // If already loaded and cached, use a clone of the cached icon.
    // Otherwise either load by URL, or lookup in the registry and then load by URL, and cache.

    if (iconCache[id]) {
      return $q.when(transformClone(iconCache[id]));
    }

    if (urlRegex.test(id) || dataUrlRegex.test(id)) {
      return loadByURL(id).then(cacheIcon(id));
    }

    if (id.indexOf(':') === -1) {
      id = '$default:' + id;
    }

    var load = config[id] ? loadByID : loadFromIconSet;
    return load(id)
      .then(cacheIcon(id));
  }
1071154
public String getFullPath(String pathToFix)
    {
        String dirPrefix = this.getProperty(DIR_PREFIX);
        if (dirPrefix == null)
        	dirPrefix = Utility.addToPath(System.getProperty("user.home"), "workspace/tourgeek/src/com/tourgeek");
        if (pathToFix == null)
            pathToFix = dirPrefix;
        else
        	if ((!pathToFix.startsWith("/")) && (!pathToFix.startsWith(".")) && (!pathToFix.startsWith(File.separator)))
        		pathToFix = Utility.addToPath(dirPrefix, pathToFix);
        return pathToFix;
    }
839539
public String getResourceTypeIcon(CmsFileInfo file) {

        String typeName = null;
        typeName = getIconMapping().get(file.getFileSuffix().toLowerCase());
        if (typeName == null) {
            typeName = getIconMapping().get("");
        }
        return typeName;
    }