@Override public Image getImage() { return fBase.getImage(); }
public Image getImage() { return fBase.getImage(); }
protected Image getImage(Object right) { if (right instanceof FileRevisionTypedElement || right instanceof LocalFileRevision || right instanceof IFileRevision) { return historyTableProvider.getRevisionImage(); } if (right instanceof ITypedElement) { ITypedElement te = (ITypedElement) right; return te.getImage(); } return null; }
@Override public Image getImage() { ITypedElement id= getId(); if (id != null) return id.getImage(); return null; }
public Image getImage() { ITypedElement id= getId(); if (id != null) return id.getImage(); return null; }
protected Image getImage(Object right) { if (right instanceof FileRevisionTypedElement || right instanceof LocalFileRevision || right instanceof IFileRevision) { return historyTableProvider.getRevisionImage(); } if (right instanceof ITypedElement) { ITypedElement te = (ITypedElement) right; return te.getImage(); } return null; }
@Override public Image getImage() { return getMainElement().getImage(); }
public Image getImage() { return getMainElement().getImage(); }
protected Image getImage(Object object) { if (object == localEdition) return localEdition.getImage(); Object revision = getRevisionFor(object); if (revision != null) return super.getImage(revision); return super.getImage(object); }
@Override protected Image getImage(Object object) { if (object == localEdition) return localEdition.getImage(); Object revision = getRevisionFor(object); if (revision != null) return super.getImage(revision); return super.getImage(object); }
/** * Returns an image for identifying the edition side of a compare viewer. * This implementation extracts the value for the key "editionLabel" from the resource bundle * and passes it as the format argument to <code>MessageFormat.format</code>. * The single format argument for <code>MessageFormat.format</code> ("{0}" in the format string) * is the formatted modification date of the given input element. * <p> * Subclasses may override to create their own label. * </p> * * @param selectedEdition the selected edition for which a label must be returned * @param item if a path has been specified in <code>selectEdition</code> a sub element of the given selectedEdition; otherwise the same as selectedEdition * @return a label the edition side of a compare viewer * @since 2.0 */ protected Image getEditionImage(ITypedElement selectedEdition, ITypedElement item) { if (selectedEdition instanceof ResourceNode) return selectedEdition.getImage(); if (selectedEdition instanceof HistoryItem) { if (fTimeImage == null) { String iconName= Utilities.getString(fBundle, "timeIcon", "obj16/resource_obj.gif"); //$NON-NLS-1$ //$NON-NLS-2$ ImageDescriptor id= CompareUIPlugin.getImageDescriptor(iconName); if (id != null) fTimeImage= id.createImage(); } return fTimeImage; } return null; }
/** * Returns an image for identifying the edition side of a compare viewer. * This implementation extracts the value for the key "editionLabel" from the resource bundle * and passes it as the format argument to <code>MessageFormat.format</code>. * The single format argument for <code>MessageFormat.format</code> ("{0}" in the format string) * is the formatted modification date of the given input element. * <p> * Subclasses may override to create their own label. * </p> * * @param selectedEdition the selected edition for which a label must be returned * @param item if a path has been specified in <code>selectEdition</code> a sub element of the given selectedEdition; otherwise the same as selectedEdition * @return a label the edition side of a compare viewer * @since 2.0 */ protected Image getEditionImage(ITypedElement selectedEdition, ITypedElement item) { if (selectedEdition instanceof ResourceNode) return selectedEdition.getImage(); if (selectedEdition instanceof HistoryItem) { if (fTimeImage == null) { String iconName= Utilities.getString(fBundle, "timeIcon", "obj16/resource_obj.png"); //$NON-NLS-1$ //$NON-NLS-2$ ImageDescriptor id= CompareUIPlugin.getImageDescriptor(iconName); if (id != null) fTimeImage= id.createImage(); } return fTimeImage; } return null; }
void compare(ICompareInput input) { fInput= input; fCompareConfiguration.setLeftLabel(fInput.getLeft().getName()); fCompareConfiguration.setLeftImage(fInput.getLeft().getImage()); fCompareConfiguration.setRightLabel(fInput.getRight().getName()); fCompareConfiguration.setRightImage(fInput.getRight().getImage()); if (fContentPane != null) fContentPane.setInput(fInput); open(); }
void compare(ICompareInput input) { fInput= input; fCompareConfiguration.setLeftLabel(fInput.getLeft().getName()); fCompareConfiguration.setLeftImage(fInput.getLeft().getImage()); fCompareConfiguration.setRightLabel(fInput.getRight().getName()); fCompareConfiguration.setRightImage(fInput.getRight().getImage()); if (fContentPane != null) fContentPane.setInput(fInput); open(); }
void compare(ICompareInput input) { fInput= input; fCompareConfiguration.setLeftLabel(fInput.getLeft().getName()); fCompareConfiguration.setLeftImage(fInput.getLeft().getImage()); fCompareConfiguration.setRightLabel(fInput.getRight().getName()); fCompareConfiguration.setRightImage(fInput.getRight().getImage()); if (fContentPane != null) fContentPane.setInput(fInput); open(); }
ti.setImage(te.getImage()); ti.setText(name); ti.setData(editions);
ti.setImage(te.getImage()); ti.setText(name); ti.setData(editions);