diff options
Diffstat (limited to 'bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java')
-rw-r--r-- | bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java index 78ff969d4..3d856f9f0 100644 --- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java +++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java @@ -603,20 +603,20 @@ public class EditionSelectionDialog extends ResizableDialog { return result.toArray(new ITypedElement[result.size()]); } - /** - * Returns a label for identifying the target side of a compare viewer. - * This implementation extracts the value for the key "targetLabel" 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 name of the given input element. + /** + * Returns a label for identifying the target side of a compare viewer. + * This implementation extracts the value for the key "targetLabel" 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 name of the given input element. * <p> * Subclasses may override to create their own label. * </p> - * - * @param target the target element 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 target; otherwise the same as target - * @return a label the target side of a compare viewer - */ + * + * @param target the target element 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 target; otherwise the same as target + * @return a label the target side of a compare viewer + */ protected String getTargetLabel(ITypedElement target, ITypedElement item) { String format= null; if (target instanceof ResourceNode) @@ -636,7 +636,7 @@ public class EditionSelectionDialog extends ResizableDialog { return string; } - private boolean hasDoubleQuotes(String string) { + private boolean hasDoubleQuotes(String string) { return string.indexOf("''") != -1; //$NON-NLS-1$ } @@ -645,19 +645,19 @@ public class EditionSelectionDialog extends ResizableDialog { } /** - * Returns a label 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> + * Returns a label 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 for the edition side of a compare viewer - */ + * @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 for the edition side of a compare viewer + */ protected String getEditionLabel(ITypedElement selectedEdition, ITypedElement item) { String format= null; if (selectedEdition instanceof ResourceNode) @@ -679,21 +679,21 @@ public class EditionSelectionDialog extends ResizableDialog { return formatString(format, date); } - /** - * Returns a label for identifying a node in the edition tree viewer. - * This implementation extracts the value for the key "workspaceTreeFormat" or - * "treeFormat" (in that order) 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> + /** + * Returns a label for identifying a node in the edition tree viewer. + * This implementation extracts the value for the key "workspaceTreeFormat" or + * "treeFormat" (in that order) 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 edition the edition for which a label must be returned - * @param item if a path has been specified in <code>edition</code> a sub element of the given edition; otherwise the same as edition - * @param date this date will be returned as part of the formatted string - * @return a label of a node in the edition tree viewer + * @param item if a path has been specified in <code>edition</code> a sub element of the given edition; otherwise the same as edition + * @param date this date will be returned as part of the formatted string + * @return a label of a node in the edition tree viewer * @since 2.0 */ protected String getShortEditionLabel(ITypedElement edition, ITypedElement item, Date date) { @@ -709,21 +709,21 @@ public class EditionSelectionDialog extends ResizableDialog { return formatString(format, ds); } - /** - * 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> + /** + * 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 - */ + * @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(); |