-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from svor/maven_project_api_4
CHE-370: add loader widget for the process of resolving dependencies
- Loading branch information
Showing
26 changed files
with
923 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...e/che/ide/extension/maven/client/comunnication/progressor/ResolveDependencyPresenter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2016 Codenvy, S.A. | ||
* 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 | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.ide.extension.maven.client.comunnication.progressor; | ||
|
||
import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
|
||
/** | ||
* Presenter of the window which describes information about resolving dependencies more detailed. | ||
* | ||
* @author Valeriy Svydenko | ||
*/ | ||
@Singleton | ||
public class ResolveDependencyPresenter implements ResolveDependencyView.ActionDelegate { | ||
|
||
private final ResolveDependencyView view; | ||
|
||
@Inject | ||
public ResolveDependencyPresenter(ResolveDependencyView view) { | ||
this.view = view; | ||
} | ||
|
||
/** Shows the widget. */ | ||
public void show() { | ||
view.show(); | ||
} | ||
|
||
/** | ||
* Set label into loader which describes current state of loader. | ||
* | ||
* @param text | ||
* message of the status | ||
*/ | ||
public void setProgressLabel(String text) { | ||
view.setOperationLabel(text); | ||
} | ||
|
||
/** | ||
* Change the value of resolved modules of the project. | ||
* | ||
* @param percentage | ||
* value of resolved modules | ||
*/ | ||
public void updateProgressBar(int percentage) { | ||
view.updateProgressBar(percentage); | ||
} | ||
|
||
/** Hides the widget. */ | ||
public void hide() { | ||
view.hide(); | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...clipse/che/ide/extension/maven/client/comunnication/progressor/ResolveDependencyView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2016 Codenvy, S.A. | ||
* 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 | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.ide.extension.maven.client.comunnication.progressor; | ||
|
||
import com.google.inject.ImplementedBy; | ||
|
||
import org.eclipse.che.ide.api.mvp.View; | ||
|
||
/** | ||
* View of {@link ResolveDependencyPresenter}. | ||
* | ||
* @author Valeriy Svydenko | ||
*/ | ||
@ImplementedBy(ResolveDependencyViewImpl.class) | ||
public interface ResolveDependencyView extends View<ResolveDependencyView.ActionDelegate> { | ||
|
||
/** Shows the widget. */ | ||
void show(); | ||
|
||
/** Hides the widget. */ | ||
void hide(); | ||
|
||
/** | ||
* Set label into loader which describes current state of loader. | ||
* | ||
* @param text | ||
* message of the status | ||
*/ | ||
void setOperationLabel(String text); | ||
|
||
/** | ||
* Change the value of resolved modules of the project. | ||
* | ||
* @param percentage | ||
* value of resolved modules | ||
*/ | ||
void updateProgressBar(int percentage); | ||
|
||
interface ActionDelegate { | ||
|
||
} | ||
} |
Oops, something went wrong.