diff options
author | Patrick Tasse | 2016-04-27 18:28:06 +0000 |
---|---|---|
committer | Patrick Tasse | 2016-04-27 18:28:06 +0000 |
commit | f8f16a333cedbf22d2d0e860d1d162fcc553fda8 (patch) | |
tree | af37335bdecf1254d84474db5271839590392fd0 | |
parent | c4d9dd47fd0757d67ec99571d4bc6c938f5dbd73 (diff) | |
download | org.eclipse.swtbot-f8f16a333cedbf22d2d0e860d1d162fcc553fda8.tar.gz org.eclipse.swtbot-f8f16a333cedbf22d2d0e860d1d162fcc553fda8.tar.xz org.eclipse.swtbot-f8f16a333cedbf22d2d0e860d1d162fcc553fda8.zip |
Deprecate method WithTooltip.withTooltipIgoringCase()
The method was renamed to fix a typo but should remain until the next
major version.
Change-Id: Id30fb0e7db8d97d9198e5cb3043db865b995c159
-rw-r--r-- | org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/matchers/WithTooltip.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/matchers/WithTooltip.java b/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/matchers/WithTooltip.java index 9aab96b9..c909b54e 100644 --- a/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/matchers/WithTooltip.java +++ b/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/matchers/WithTooltip.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008-2016 Ketan Padegaonkar and others. + * Copyright (c) 2008, 2016 Ketan Padegaonkar and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -119,6 +119,20 @@ public class WithTooltip<T extends Widget> extends AbstractMatcher<T> { * @param text the label. * @return a matcher. * @since 2.0 + * @deprecated use {@link #withTooltipIgnoringCase(String)} instead + */ + @Factory + @Deprecated + public static <T extends Widget> Matcher<T> withTooltipIgoringCase(String text) { + return new WithTooltip<T>(text, true); + } + + /** + * Matches a widget that has the specified tooltip, ignoring case considerations. + * + * @param text the label. + * @return a matcher. + * @since 2.5 */ @Factory public static <T extends Widget> Matcher<T> withTooltipIgnoringCase(String text) { |