Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-11-26 22:25:04 +0000
committerLars Vogel2020-03-19 11:42:51 +0000
commit993bc1eed15ef5502ff3e005e2f76f7334b80b14 (patch)
tree70fde7cb368755f8756587d9a1f7a7c3abad93a7 /bundles/org.eclipse.team.ui
parentce4ee64f0c0ddf4733ab946f2171587cc35d4fcd (diff)
downloadeclipse.platform.team-993bc1eed15ef5502ff3e005e2f76f7334b80b14.tar.gz
eclipse.platform.team-993bc1eed15ef5502ff3e005e2f76f7334b80b14.tar.xz
eclipse.platform.team-993bc1eed15ef5502ff3e005e2f76f7334b80b14.zip
Change-Id: If2db9cef6eddb2d79e3fd1c312b2c8248dd288d6 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'bundles/org.eclipse.team.ui')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/ModelEnablementPreferencePage.java2
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/preferences/IgnorePreferencePage.java2
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java4
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java2
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/WorkingSetsDialog.java2
5 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/ModelEnablementPreferencePage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/ModelEnablementPreferencePage.java
index 29cf1f7c0..0a9662dc3 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/ModelEnablementPreferencePage.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/ModelEnablementPreferencePage.java
@@ -103,7 +103,7 @@ public class ModelEnablementPreferencePage extends PreferencePage implements IWo
private String getTextFor(ITeamContentProviderDescriptor teamContentDescriptor) {
String name = teamContentDescriptor.getName();
- if (name != null && !name.equals("")) //$NON-NLS-1$
+ if (name != null && !name.isEmpty())
return name;
String modelProviderID = teamContentDescriptor.getModelProviderId();
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/preferences/IgnorePreferencePage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/preferences/IgnorePreferencePage.java
index 25540e020..06db65da9 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/preferences/IgnorePreferencePage.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/preferences/IgnorePreferencePage.java
@@ -158,7 +158,7 @@ public class IgnorePreferencePage extends PreferencePage implements IWorkbenchPr
dialog.open();
if (dialog.getReturnCode() != Window.OK) return;
String pattern = dialog.getValue();
- if (pattern.equals("")) return; //$NON-NLS-1$
+ if (pattern.isEmpty()) return;
// Check if the item already exists
TableItem[] items = ignoreTable.getItems();
for (TableItem item : items) {
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java
index 63719d1ab..d1ab141d1 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java
@@ -254,7 +254,7 @@ public abstract class GlobalRefreshElementSelectionPage extends WizardPage {
protected void initializeScopingHint() {
String working_sets = settings.get(STORE_WORKING_SETS);
- if (working_sets == null || working_sets.equals("")) { //$NON-NLS-1$
+ if (working_sets == null || working_sets.isEmpty()) {
participantScope.setSelection(true);
updateParticipantScope();
} else {
@@ -262,7 +262,7 @@ public abstract class GlobalRefreshElementSelectionPage extends WizardPage {
ArrayList<IWorkingSet> ws = new ArrayList<>();
while (st.hasMoreTokens()) {
String workingSetName = st.nextToken();
- if (workingSetName != null && workingSetName.equals("") == false) { //$NON-NLS-1$
+ if (workingSetName != null && !workingSetName.isEmpty()) {
IWorkingSetManager workingSetManager = PlatformUI.getWorkbench().getWorkingSetManager();
IWorkingSet workingSet = workingSetManager.getWorkingSet(workingSetName);
if (workingSet != null) {
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java
index 4809f5dad..43a61d5f9 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ExportProjectSetLocationPage.java
@@ -388,7 +388,7 @@ public class ExportProjectSetLocationPage extends TeamWizardPage {
wsFilenameText.addModifyListener(e -> {
String patchName = wsFilenameText.getText();
- if (patchName.trim().equals("")) { //$NON-NLS-1$
+ if (patchName.trim().isEmpty()) {
okButton.setEnabled(false);
setErrorMessage(TeamUIMessages.ExportProjectSetMainPage_WorkspaceDialogErrorNoFilename);
} else if (!(ResourcesPlugin.getWorkspace().validateName(patchName, IResource.FILE)).isOK()) {
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/WorkingSetsDialog.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/WorkingSetsDialog.java
index 18369648f..d783831eb 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/WorkingSetsDialog.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/WorkingSetsDialog.java
@@ -101,7 +101,7 @@ public class WorkingSetsDialog extends TitleAreaDialog {
protected void okPressed() {
selectedWorkingSet = wsNameText.getText();
- if (selectedWorkingSet.equals("")) { //$NON-NLS-1$
+ if (selectedWorkingSet.isEmpty()) {
setErrorMessage(TeamUIMessages.WorkingSetsDialog_ErrorMessage);
return;
}

Back to the top