You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2018/01/16 16:42:59 UTC

[sling-ide-tooling] 02/02: SLING-7385 - Unable to import from repository - No valid filter found

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git

commit 3750fbff0e5935ef60295ac2fa78036363f54d2d
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Jan 16 18:42:51 2018 +0200

    SLING-7385 - Unable to import from repository - No valid filter found
    
    Really set the page completion status, not only toggle the widgets.
---
 .../org/apache/sling/ide/eclipse/ui/internal/ImportWizardPage.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportWizardPage.java b/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportWizardPage.java
index 6629534..bd313bb 100644
--- a/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportWizardPage.java
+++ b/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/internal/ImportWizardPage.java
@@ -322,7 +322,7 @@ public class ImportWizardPage extends WizardDataTransferPage {
 
         adjustComposite.setVisible(project != null);
         adjustComposite.getParent().layout();
-
+        
         if (importRoot != null) {
             IFile filterFile = getFilter();
 
@@ -330,7 +330,7 @@ public class ImportWizardPage extends WizardDataTransferPage {
                 importLabel.setText("Will apply import filter from /" + filterFile.getProjectRelativePath() + ".");
                 if ( !hasValidFilter ) {
                     hasValidFilter = true;
-                    determinePageCompletion();
+                    setPageComplete(determinePageCompletion());
                 }
             }
             importLabel.setVisible(true);
@@ -377,6 +377,7 @@ public class ImportWizardPage extends WizardDataTransferPage {
             setErrorMessage(repositoryError);
             return false;
         }
+        
         return true;
 	}
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.