String currentTN= current.getSimpleTypeName(); result.append(currentTN); String currentTCN= getTypeContainerName(current); if (last != null) { String lastTN= last.getSimpleTypeName(); String lastTCN= getTypeContainerName(last); if (currentTCN.equals(lastTCN)) { if (currentTN.equals(lastTN)) { result.append(currentTCN); result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current)); return result.toString(); String nextTCN= getTypeContainerName(next); if (currentTCN.equals(nextTCN)) { if (currentTN.equals(nextTN)) { result.append(currentTCN); result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current)); return result.toString(); if (fFullyQualifyDuplicates) { result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current));
private void processVMInstallType(IVMInstallType installType, List locations, List labels) { if (installType != null) { IVMInstall[] installs= installType.getVMInstalls(); boolean isMac= Platform.OS_MACOSX.equals(Platform.getOS()); final String HOME_SUFFIX= "/Home"; //$NON-NLS-1$ for (int i= 0; i < installs.length; i++) { String label= getFormattedLabel(installs[i].getName()); LibraryLocation[] libLocations= installs[i].getLibraryLocations(); if (libLocations != null) { processLibraryLocation(libLocations, label); } else { String filePath= installs[i].getInstallLocation().getAbsolutePath(); // on MacOS X install locations end in an additional "/Home" segment; remove it if (isMac && filePath.endsWith(HOME_SUFFIX)) filePath= filePath.substring(0, filePath.length()- HOME_SUFFIX.length() + 1); locations.add(filePath); labels.add(label); } } } } private void processLibraryLocation(LibraryLocation[] libLocations, String label) {
elements.add(type); filteredMatches.add(type); imageDescriptors.add(fLabelProvider.getImageDescriptor(type)); labels.add(fLabelProvider.getText(last, type, next)); last= type; type= next; next= (nextIndex == result.length) ? null : result[nextIndex]; elements.add(type); labels.add(fLabelProvider.getText(last, type, next)); imageDescriptors.add(fLabelProvider.getImageDescriptor(type)); last= type; type= next;
fTable= new Table(parent, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER | SWT.FLAT | flags | (VIRTUAL ? SWT.VIRTUAL : SWT.NONE)); fTable.setFont(parent.getFont()); fLabelProvider= new TypeInfoLabelProvider(imageExtension); fItems= new ArrayList(500); fTable.setHeaderVisible(false);
fTable= new Table(parent, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER | SWT.FLAT | flags); fTable.setFont(parent.getFont()); fLabelProvider= new TypeInfoLabelProvider(imageExtension); fItems= new ArrayList(500); fTable.setHeaderVisible(false);
fTable= new Table(parent, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER | SWT.FLAT | flags); fTable.setFont(parent.getFont()); fLabelProvider= new TypeInfoLabelProvider(imageExtension); fItems= new ArrayList(500); fTable.setHeaderVisible(false);
elements.add(type); filteredMatches.add(type); imageDescriptors.add(fLabelProvider.getImageDescriptor(type)); labels.add(fLabelProvider.getText(last, type, next)); last= type; type= next; next= (nextIndex == result.length) ? null : result[nextIndex]; elements.add(type); labels.add(fLabelProvider.getText(last, type, next)); imageDescriptors.add(fLabelProvider.getImageDescriptor(type)); last= type; type= next;
elements.add(type); filteredMatches.add(type); imageDescriptors.add(fLabelProvider.getImageDescriptor(type)); labels.add(fLabelProvider.getText(last, type, next)); last= type; type= next; next= (nextIndex == result.length) ? null : result[nextIndex]; elements.add(type); labels.add(fLabelProvider.getText(last, type, next)); imageDescriptors.add(fLabelProvider.getImageDescriptor(type)); last= type; type= next;
String currentTN= current.getSimpleTypeName(); result.append(currentTN); String currentTCN= getTypeContainerName(current); if (last != null) { String lastTN= last.getSimpleTypeName(); String lastTCN= getTypeContainerName(last); if (currentTCN.equals(lastTCN)) { if (currentTN.equals(lastTN)) { result.append(currentTCN); result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current)); return result.toString(); String nextTCN= getTypeContainerName(next); if (currentTCN.equals(nextTCN)) { if (currentTN.equals(nextTN)) { result.append(currentTCN); result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current)); return result.toString(); if (fFullyQualifyDuplicates) { result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current));
String currentTN= current.getSimpleTypeName(); result.append(currentTN); String currentTCN= getTypeContainerName(current); if (last != null) { String lastTN= last.getSimpleTypeName(); String lastTCN= getTypeContainerName(last); if (currentTCN.equals(lastTCN)) { if (currentTN.equals(lastTN)) { result.append(currentTCN); result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current)); return result.toString(); String nextTCN= getTypeContainerName(next); if (currentTCN.equals(nextTCN)) { if (currentTN.equals(nextTN)) { result.append(currentTCN); result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current)); return result.toString(); if (fFullyQualifyDuplicates) { result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(current));
TypeNameMatch next= i == lastIndex ? null : historyItems[i + 1]; addSingleElement(type, fLabelProvider.getImageDescriptor(type), fLabelProvider.getText(last, type, next)); last= type; type= next;
TypeNameMatch next= i == lastIndex ? null : historyItems[i + 1]; addSingleElement(type, fLabelProvider.getImageDescriptor(type), fLabelProvider.getText(last, type, next)); last= type; type= next;
TypeNameMatch next= i == lastIndex ? null : historyItems[i + 1]; addSingleElement(type, fLabelProvider.getImageDescriptor(type), fLabelProvider.getText(last, type, next)); last= type; type= next;
private void processVMInstallType(IVMInstallType installType, List locations, List labels) { if (installType != null) { IVMInstall[] installs= installType.getVMInstalls(); boolean isMac= Platform.OS_MACOSX.equals(Platform.getOS()); final String HOME_SUFFIX= "/Home"; //$NON-NLS-1$ for (int i= 0; i < installs.length; i++) { String label= getFormattedLabel(installs[i].getName()); LibraryLocation[] libLocations= installs[i].getLibraryLocations(); if (libLocations != null) { processLibraryLocation(libLocations, label); } else { String filePath= installs[i].getInstallLocation().getAbsolutePath(); // on MacOS X install locations end in an additional "/Home" segment; remove it if (isMac && filePath.endsWith(HOME_SUFFIX)) filePath= filePath.substring(0, filePath.length()- HOME_SUFFIX.length() + 1); locations.add(filePath); labels.add(label); } } } } private void processLibraryLocation(LibraryLocation[] libLocations, String label) {
private void processVMInstallType(IVMInstallType installType, List locations, List labels) { if (installType != null) { IVMInstall[] installs= installType.getVMInstalls(); boolean isMac= Platform.OS_MACOSX.equals(Platform.getOS()); final String HOME_SUFFIX= "/Home"; //$NON-NLS-1$ for (int i= 0; i < installs.length; i++) { String label= getFormattedLabel(installs[i].getName()); LibraryLocation[] libLocations= installs[i].getLibraryLocations(); if (libLocations != null) { processLibraryLocation(libLocations, label); } else { String filePath= installs[i].getInstallLocation().getAbsolutePath(); // on MacOS X install locations end in an additional "/Home" segment; remove it if (isMac && filePath.endsWith(HOME_SUFFIX)) filePath= filePath.substring(0, filePath.length()- HOME_SUFFIX.length() + 1); locations.add(filePath); labels.add(label); } } } } private void processLibraryLocation(LibraryLocation[] libLocations, String label) {
public void run() { if (fNextElement > 0) { TableItem item= fTable.getItem(fNextElement - 1); String label= item.getText(); String newLabel= fLabelProvider.getText(null, (TypeNameMatch)item.getData(), next); if (newLabel.length() != label.length()) item.setText(newLabel); if (fLastSelection != null && fLastSelection.length > 0) { TableItem last= fLastSelection[fLastSelection.length - 1]; if (last == item) { fLastLabels[fLastLabels.length - 1]= newLabel; } } } fDashLineIndex= fNextElement; addDashLine(); } });
private void setData(TableItem item) { int index= fTable.indexOf(item); TypeNameMatch type= getTypeInfo(index); if (type == DASH_LINE) { item.setData(fDashLine); fillDashLine(item); } else { item.setData(type); item.setImage(fImageManager.get(fLabelProvider.getImageDescriptor(type))); item.setText(fLabelProvider.getText( getTypeInfo(index - 1), type, getTypeInfo(index + 1))); item.setForeground(null); } }
private void setData(TableItem item) { int index= fTable.indexOf(item); TypeNameMatch type= getTypeInfo(index); if (type == DASH_LINE) { item.setData(fDashLine); fillDashLine(item); } else { item.setData(type); item.setImage(fImageManager.get(fLabelProvider.getImageDescriptor(type))); item.setText(fLabelProvider.getText( getTypeInfo(index - 1), type, getTypeInfo(index + 1))); item.setForeground(null); } }
private void setData(TableItem item) { int index= fTable.indexOf(item); TypeNameMatch type= getTypeInfo(index); if (type == DASH_LINE) { item.setData(fDashLine); fillDashLine(item); } else { item.setData(type); item.setImage(fImageManager.get(fLabelProvider.getImageDescriptor(type))); item.setText(fLabelProvider.getText( getTypeInfo(index - 1), type, getTypeInfo(index + 1))); item.setForeground(null); } }
public String getFullyQualifiedText(TypeNameMatch type) { StringBuffer result= new StringBuffer(); result.append(type.getSimpleTypeName()); String containerName= type.getTypeContainerName(); if (containerName.length() > 0) { result.append(JavaElementLabels.CONCAT_STRING); result.append(containerName); } result.append(JavaElementLabels.CONCAT_STRING); result.append(getContainerName(type)); return result.toString(); } public String getText(TypeNameMatch last, TypeNameMatch current, TypeNameMatch next) {