Skip to content

Commit

Permalink
IDEX-3330: Make vfs call to ext server when importing a project
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Vinokur committed Nov 18, 2015
1 parent 74fc15c commit c7817a6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.eclipse.che.ide.rest.AsyncRequestCallback;
import org.eclipse.che.ide.rest.AsyncRequestFactory;
import org.eclipse.che.ide.rest.AsyncRequestLoader;
import org.eclipse.che.ide.rest.RestContext;

import com.google.gwt.http.client.RequestBuilder;
import com.google.inject.name.Named;
Expand Down Expand Up @@ -44,14 +43,14 @@ public class VfsServiceClientImpl implements VfsServiceClient {
private final AsyncRequestFactory asyncRequestFactory;

@Inject
public VfsServiceClientImpl(@RestContext String restContext,
public VfsServiceClientImpl(@Named("cheExtensionPath") String extPath,
@Named("workspaceId") String workspaceId,
AsyncRequestLoader loader,
AsyncRequestFactory asyncRequestFactory) {
this.loader = loader;
this.asyncRequestFactory = asyncRequestFactory;

VFS = restContext + "/vfs/" + workspaceId + "/v2";
VFS = extPath + "/vfs/" + workspaceId + "/v2";
FIND_REPLACE = VFS + "/replace";
GET_ITEM_BY_PATH = VFS + "/itembypath";
}
Expand Down

0 comments on commit c7817a6

Please sign in to comment.