### Eclipse Workspace Patch 1.0 #P org.jboss.ide.eclipse.as.ui Index: .classpath =================================================================== --- .classpath (revision 42757) +++ .classpath (working copy) @@ -1,6 +1,6 @@ - + #P org.jboss.tools.maven.ui Index: src/org/jboss/tools/maven/ui/wizard/AddRepositoryDialog.java =================================================================== --- src/org/jboss/tools/maven/ui/wizard/AddRepositoryDialog.java (revision 42757) +++ src/org/jboss/tools/maven/ui/wizard/AddRepositoryDialog.java (working copy) @@ -164,7 +164,7 @@ public void widgetSelected(SelectionEvent e) { Settings settings; String id = profileCombo.getText(); - if (id == null || id.trim().isEmpty()) { + if (id == null || id.trim().length() == 0) { return; } for (RepositoryWrapper wrapper:availableRepositories) { @@ -456,19 +456,19 @@ urlExistsTextDecoration.hide(); getButton(IDialogConstants.OK_ID).setEnabled(true); setMessage(null); - if (profileCombo.getText().trim().isEmpty()) { + if (profileCombo.getText().trim().length() == 0) { setMessage(PROFILE_ID_IS_REQUIRED, IMessageProvider.ERROR); getButton(IDialogConstants.OK_ID).setEnabled(false); showDecoration(); return; } - if (idText.getText().trim().isEmpty()) { + if (idText.getText().trim().length() == 0) { setMessage(REPOSITORY_ID_IS_REQUIRED, IMessageProvider.ERROR); getButton(IDialogConstants.OK_ID).setEnabled(false); showDecoration(); return; } - if (urlText.getText().trim().isEmpty()) { + if (urlText.getText().trim().length() == 0) { setMessage(REPOSITORY_URL_IS_REQUIRED, IMessageProvider.ERROR); getButton(IDialogConstants.OK_ID).setEnabled(false); showDecoration(); @@ -494,7 +494,7 @@ return; } } - if (nameText.getText().trim().isEmpty()) { + if (nameText.getText().trim().length() == 0) { setMessage(REPOSITORY_NAME_IS_EMPTY, IMessageProvider.WARNING); showDecoration(); return; @@ -502,13 +502,13 @@ } private void showDecoration() { - if (profileCombo.getText().trim().isEmpty()) { + if (profileCombo.getText().trim().length() == 0) { profileComboDecoration.show(); } - if (idText.getText().trim().isEmpty()) { + if (idText.getText().trim().length() == 0) { idTextDecoration.show(); } - if (urlText.getText().trim().isEmpty()) { + if (urlText.getText().trim().length() == 0) { urlTextDecoration.show(); } else { String urlString; @@ -526,7 +526,7 @@ urlValidTextDecoration.show(); } } - if (nameText.getText().trim().isEmpty()) { + if (nameText.getText().trim().length() == 0) { nameTextDecoration.show(); } } @@ -543,7 +543,7 @@ Set ids = new TreeSet(); ids.add(EMPTY_STRING); for (RepositoryWrapper wrapper:availableRepositories) { - if (wrapper.getProfileId() != null && !wrapper.getProfileId().isEmpty()) { + if (wrapper.getProfileId() != null && wrapper.getProfileId().length() > 0) { ids.add(wrapper.getProfileId()); } } @@ -559,7 +559,7 @@ // } // } // for (RepositoryWrapper wrapper:availableRepositories) { -// if (wrapper.getProfileId() != null && !wrapper.getProfileId().isEmpty()) { +// if (wrapper.getProfileId() != null && wrapper.getProfileId().length() > 0) { // ids.add(wrapper.getProfileId()); // } // }