-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get projects after workspace has been already initialized #2867
Conversation
This commit also includes API reorganization. Move client service implementations from the core-api to the core-app. Code cleanup. Removed dependency to the javax.inject from the core-api to avoid duplicate using @Inject annotation from the com.google.inject and javax.inject. (Client side uses only com.google.inject.Inject annotation) Created two components: WsAgentInitializer - which is responsible to initialize workspace component on the client side. Component consumes developer machine object at startup stage. WsAgentMessageBusProvider - which is responsible to initialize message bus after workspace has been initialized. API movements: OAuthServiceClient was moved from the org.eclipse.che.ide.api.auth to the org.eclipse.ide.api.oauth
Build # 768 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/768/ to view the results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* @see DevMachine | ||
* @since 5.0.0 | ||
*/ | ||
public interface WsAgentInitializer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I understood this interface is used in IDE app only and not intended to be used by extensions.
So, if it isn't a part of IDE public API why do we need it in IDE API? May be it would be better to move it in IDE app module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right, I'll move it to the IDE app
@@ -139,7 +150,7 @@ public WsAgentState getState() { | |||
return state; | |||
} | |||
|
|||
/** Returns instance of {@link MachineMessageBus}. */ | |||
/** {@inheritDoc} */ | |||
public Promise<MessageBus> getMessageBus() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OverRide annotation is missed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
* @param devMachine | ||
* development machine instance | ||
*/ | ||
/** {@inheritDoc} */ | ||
public void initialize(DevMachine devMachine) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OverRide annotation is missed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -29,6 +31,7 @@ | |||
* | |||
* @author Sergii Leschenko | |||
*/ | |||
@Singleton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add this annotation?
It's already bound as singleton in CoreGinModule.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sure, fixed
* @param devMachine | ||
* development machine instance | ||
*/ | ||
/** {@inheritDoc} */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of an empty javadoc which contains @inheritdoc tag only?
Javadoc tool and all popular IDEs override it automatically when generating documentation.
IMO we should add it only in case of 'real' overriding javadoc like here.
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just personal habbit. I'll remove it.
/** | ||
* @author Sergii Leschenko | ||
*/ | ||
@Singleton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add this annotation?
It's already bound as singleton in CoreGinModule.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also fixed
Build # 770 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/770/ to view the results. |
Build # 781 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/781/ to view the results. |
# Conflicts: # ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/project/ProjectServiceClientImpl.java # plugins/plugin-maven/che-plugin-maven-ide/src/main/java/org/eclipse/che/plugin/maven/client/comunnication/MavenMessagesHandler.java
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/910/ |
…e#2867) * Get projects after workspace has been already initialized This commit also includes API reorganization. Move client service implementations from the core-api to the core-app. Code cleanup. Removed dependency to the javax.inject from the core-api to avoid duplicate using @Inject annotation from the com.google.inject and javax.inject. (Client side uses only com.google.inject.Inject annotation) Created two components: WsAgentInitializer - which is responsible to initialize workspace component on the client side. Component consumes developer machine object at startup stage. WsAgentMessageBusProvider - which is responsible to initialize message bus after workspace has been initialized. API movements: OAuthServiceClient was moved from the org.eclipse.che.ide.api.auth to the org.eclipse.ide.api.oauth * Move WsAgentInitizalizer to the core-app * Add @OverRide annotation * Add @OverRide annotation * Remove @singleton annotation * Remove @singleton annotation * Revert javax.inject.Inject annotation * Update codebase due to changes in the master branch
This commit also includes API reorganization. Move client service implementations from the core-api to the core-app. Code cleanup. Removed dependency to the
javax.inject
from the core-api to avoid duplicate using@Inject
annotation from thecom.google.inject
andjavax.inject
. (Client side uses onlycom.google.inject.Inject
annotation)Created two components:
WsAgentInitializer - which is responsible to initialize workspace component on the client side. Component consumes developer machine object at startup stage.
WsAgentMessageBusProvider - which is responsible to initialize message bus after workspace has been initialized.
API movements:
OAuthServiceClient
was moved from theorg.eclipse.che.ide.api.auth
to theorg.eclipse.ide.api.oauth
Related issue: #2629
@vparfonov @ashumilova @azatsarynnyy review it, please.