This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.4' of github.com:zanata/zanata into 1.4
- Loading branch information
Showing
7 changed files
with
91 additions
and
5 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
30 changes: 30 additions & 0 deletions
30
...nata-war/src/test/java/org/zanata/webtrans/client/rpc/DummyEditingTranslationCommand.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,30 @@ | ||
/** | ||
* | ||
*/ | ||
package org.zanata.webtrans.client.rpc; | ||
|
||
import org.zanata.webtrans.shared.rpc.EditingTranslationAction; | ||
import org.zanata.webtrans.shared.rpc.EditingTranslationResult; | ||
|
||
import com.google.gwt.user.client.Command; | ||
import com.google.gwt.user.client.rpc.AsyncCallback; | ||
|
||
final class DummyEditingTranslationCommand implements Command | ||
{ | ||
// private final EditingTranslationAction action; | ||
private final AsyncCallback<EditingTranslationResult> callback; | ||
|
||
DummyEditingTranslationCommand(EditingTranslationAction action, AsyncCallback<EditingTranslationResult> callback) | ||
{ | ||
// this.action = action; | ||
this.callback = callback; | ||
} | ||
|
||
@Override | ||
public void execute() | ||
{ | ||
EditingTranslationResult result = new EditingTranslationResult(true); | ||
callback.onSuccess(result); | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
.../zanata-war/src/test/java/org/zanata/webtrans/client/rpc/DummyUpdateTransUnitCommand.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,34 @@ | ||
/** | ||
* | ||
*/ | ||
package org.zanata.webtrans.client.rpc; | ||
|
||
import org.zanata.webtrans.shared.rpc.UpdateTransUnit; | ||
import org.zanata.webtrans.shared.rpc.UpdateTransUnitResult; | ||
|
||
import com.google.gwt.user.client.Command; | ||
import com.google.gwt.user.client.rpc.AsyncCallback; | ||
|
||
final class DummyUpdateTransUnitCommand implements Command | ||
{ | ||
private final UpdateTransUnit action; | ||
private final AsyncCallback<UpdateTransUnitResult> callback; | ||
|
||
DummyUpdateTransUnitCommand(UpdateTransUnit action, AsyncCallback<UpdateTransUnitResult> callback) | ||
{ | ||
this.action = action; | ||
this.callback = callback; | ||
} | ||
|
||
@Override | ||
public void execute() | ||
{ | ||
|
||
// TransUnitUpdated updated = new TransUnitUpdated(documentId, wordCount, | ||
// previousStatus, tu); | ||
|
||
UpdateTransUnitResult result = new UpdateTransUnitResult(true); | ||
callback.onSuccess(result); | ||
} | ||
|
||
} |