private static String getText ( final IConfigurationElement[] children ) { if ( children == null ) { return null; } for ( final IConfigurationElement ele : children ) { return ele.getValue (); } return null; }
private static String getText ( final IConfigurationElement[] children ) { if ( children == null ) { return null; } for ( final IConfigurationElement ele : children ) { return ele.getValue (); } return null; }
@Override public String getText() { if (fText == null && fElement != null) fText = fElement.getValue(); return fText; }
@Override public String getTextData() { return configurationElement.getValue(); }
private String getDescriptionFromConfig(IConfigurationElement config) { IConfigurationElement [] children = config.getChildren(TAG_DESCRIPTION); if (children.length>=1) { return children[0].getValue(); } return ""; //$NON-NLS-1$ }
private String getDescriptionFromConfig(IConfigurationElement config) { IConfigurationElement [] children = config.getChildren(TAG_DESCRIPTION); if (children.length>=1) { return children[0].getValue(); } return ""; //$NON-NLS-1$ }
/** * This method extracts description as a subelement of the given element. * * @return description string if defined, or empty string if not. */ protected String getDescription(IConfigurationElement config) { IConfigurationElement[] children = config.getChildren(TAG_DESCRIPTION); if (children.length >= 1) { return children[0].getValue(); } return "";//$NON-NLS-1$ }
public String getLocalScopeCheckboxLabel() { if (config==null) return null; IConfigurationElement child = getChild("localScopeCheckbox"); //$NON-NLS-1$ if (child!=null) return child.getValue(); return null; } public boolean needsLiveHelp(boolean embedded) {
private String getDescriptionFromConfig(IConfigurationElement config) { IConfigurationElement [] children = config.getChildren(TAG_DESCRIPTION); if (children.length>=1) { return children[0].getValue(); } return ""; //$NON-NLS-1$ }
/** * This method extracts description as a sub-element of the given element. * * @return description string if defined, or empty string if not. */ protected String getDescription(IConfigurationElement config) { IConfigurationElement[] children = config.getChildren(TAG_DESCRIPTION); if (children.length >= 1) { return children[0].getValue(); } return ""; //$NON-NLS-1$ } /**
/** * This method extracts description as a subelement of * the given element. * @return description string if defined, or empty string * if not. */ protected String getDescription(IConfigurationElement config) { IConfigurationElement[] children = config.getChildren(TAG_DESCRIPTION); if (children.length >= 1) { return children[0].getValue(); } return "";//$NON-NLS-1$ }
public String getDescription() { String desc = null; IConfigurationElement [] children = config.getChildren(IHelpUIConstants.TAG_DESC); if (children.length==1) desc = children[0].getValue(); return desc; } public ImageDescriptor getImageDescriptor() {
public String getShowAllMessage() { if (config==null) return null; IConfigurationElement child = getChild("showAllMessage"); //$NON-NLS-1$ if (child!=null) return child.getValue(); return null; } public String getLocalScopeCheckboxLabel() {
/** * This method extracts description as a subelement of * the given element. * @return description string if defined, or empty string * if not. */ /*package*/ String getDescription(IConfigurationElement config) { IConfigurationElement[] children = config.getChildren(TAG_DESCRIPTION); if (children.length >= 1) { return children[0].getValue(); } return ICheatSheetResource.EMPTY_STRING; }
/** * This method extracts description as a sub-element of the given element. * * @return description string if defined, or empty string if not. */ protected String getDescription(IConfigurationElement config) { IConfigurationElement[] children = config.getChildren(TAG_DESCRIPTION); if (children.length >= 1) { return children[0].getValue(); } return ""; //$NON-NLS-1$ } /**
public String getDescription() { if (description == null) { IConfigurationElement[] children = configurationElement.getChildren(TAG_DESCRIPTION); if (children.length > 0) { description = expandDescription(children[0].getValue()); } } return description; }
private void createSampleManifestContent(String projectName, Properties properties) { writeProperty(properties, "id", sample.getAttribute("id")); //$NON-NLS-1$ //$NON-NLS-2$ writeProperty(properties, "name", sample.getAttribute("name")); //$NON-NLS-1$ //$NON-NLS-2$ writeProperty(properties, "projectName", projectName); //$NON-NLS-1$ writeProperty(properties, "launcher", sample.getAttribute("launcher")); //$NON-NLS-1$ //$NON-NLS-2$ IConfigurationElement desc[] = sample.getChildren("description"); //$NON-NLS-1$ if (desc.length == 1) { writeProperty(properties, "helpHref", desc[0] //$NON-NLS-1$ .getAttribute("helpHref")); //$NON-NLS-1$ writeProperty(properties, "description", desc[0].getValue()); //$NON-NLS-1$ } }
private void displayConfigElement(CommandInterpreter ci, IConfigurationElement ce, int level) throws Exception { String spacing = spacing(ci, level); ci.println(spacing + '<' + ce.getName() + '>'); String[] attrs = ce.getAttributeNames(); for (int k = 0; k < attrs.length; k++) ci.println(indent + spacing + attrs[k] + " = " + ce.getAttribute(attrs[k])); //$NON-NLS-1$ String value = ce.getValue(); if (value != null) ci.println(indent + spacing + value); IConfigurationElement[] children = ce.getChildren(); for (int z = 0; z < children.length; z++) displayConfigElement(ci, children[z], level + 1); ci.println(spacing + "</" + ce.getName() + '>'); //$NON-NLS-1$ }
private void displayConfigElement(CommandInterpreter ci, IConfigurationElement ce, int level) throws Exception { String spacing = spacing(ci, level); ci.println(spacing + '<' + ce.getName() + '>'); String[] attrs = ce.getAttributeNames(); for (int k = 0; k < attrs.length; k++) ci.println(indent + spacing + attrs[k] + " = " + ce.getAttribute(attrs[k])); //$NON-NLS-1$ String value = ce.getValue(); if (value != null) ci.println(indent + spacing + value); IConfigurationElement[] children = ce.getChildren(); for (int z = 0; z < children.length; z++) displayConfigElement(ci, children[z], level + 1); ci.println(spacing + "</" + ce.getName() + '>'); //$NON-NLS-1$ }
private void displayConfigElement(CommandInterpreter ci, IConfigurationElement ce, int level) throws Exception { String spacing = spacing(ci, level); ci.println(spacing + '<' + ce.getName() + '>'); String[] attrs = ce.getAttributeNames(); for (int k = 0; k < attrs.length; k++) ci.println(indent + spacing + attrs[k] + " = " + ce.getAttribute(attrs[k])); //$NON-NLS-1$ String value = ce.getValue(); if (value != null) ci.println(indent + spacing + value); IConfigurationElement[] children = ce.getChildren(); for (int z = 0; z < children.length; z++) displayConfigElement(ci, children[z], level + 1); ci.println(spacing + "</" + ce.getName() + '>'); //$NON-NLS-1$ }