private String getValue(Object[] objects) { StringBuffer buffer = new StringBuffer(); for (Object object : objects) { IPackageFragment fragment = (IPackageFragment) object; if (buffer.length() > 0) buffer.append("," + getLineDelimiter() + " "); // $NON-NLS-1$ //$NON-NLS-2$ buffer.append(fragment.getElementName()); } return buffer.toString(); }
private void updateArgumentPreview(IArgumentsInfo launcherArguments) { StringBuffer buffer = new StringBuffer(); String delim = System.getProperty("line.separator"); // $NON-NLS-1$ String args = launcherArguments.getCompleteProgramArguments( TAB_LABELS[fLastTab], TAB_ARCHLABELS[fLastArch[fLastTab]]); if (args.length() > 0) { buffer.append(PDEUIMessages.ArgumentsSection_program); buffer.append(delim); buffer.append(args); buffer.append(delim); buffer.append(delim); } args = launcherArguments.getCompleteVMArguments( TAB_LABELS[fLastTab], TAB_ARCHLABELS[fLastArch[fLastTab]]); if (args.length() > 0) { buffer.append(PDEUIMessages.ArgumentsSection_vm); buffer.append(delim); buffer.append(args); } fPreviewArgs.setValue(buffer.toString()); }