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 'rhbz845904' into integration/master
Conflicts: zanata-war/src/main/java/org/zanata/webtrans/client/presenter/EditorOptionsPresenter.java zanata-war/src/main/java/org/zanata/webtrans/client/presenter/TranslationPresenter.java zanata-war/src/main/java/org/zanata/webtrans/client/resources/WebTransMessages.java zanata-war/src/main/java/org/zanata/webtrans/client/ui/OptionsPanelView.ui.xml zanata-war/src/main/java/org/zanata/webtrans/client/view/EditorOptionsView.java zanata-war/src/test/java/org/zanata/webtrans/client/presenter/TranslationPresenterTest.java
- Loading branch information
Showing
112 changed files
with
12,916 additions
and
2,320 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
54 changes: 54 additions & 0 deletions
54
zanata-war/src/main/java/org/zanata/webtrans/client/events/ShowSideMenuEvent.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,54 @@ | ||
package org.zanata.webtrans.client.events; | ||
|
||
import com.google.gwt.event.shared.GwtEvent; | ||
|
||
public class ShowSideMenuEvent extends GwtEvent<ShowSideMenuEventHandler> | ||
{ | ||
|
||
/** | ||
* Handler type. | ||
*/ | ||
private static Type<ShowSideMenuEventHandler> TYPE; | ||
|
||
/** | ||
* Gets the type associated with this event. | ||
* | ||
* @return returns the handler type | ||
*/ | ||
public static Type<ShowSideMenuEventHandler> getType() | ||
{ | ||
if (TYPE == null) | ||
{ | ||
TYPE = new Type<ShowSideMenuEventHandler>(); | ||
} | ||
return TYPE; | ||
} | ||
|
||
private boolean isShowing; | ||
|
||
public ShowSideMenuEvent(boolean isShowing) | ||
{ | ||
this.isShowing = isShowing; | ||
} | ||
|
||
|
||
public boolean isShowing() | ||
{ | ||
return isShowing; | ||
} | ||
|
||
@Override | ||
public Type<ShowSideMenuEventHandler> getAssociatedType() | ||
{ | ||
return getType(); | ||
} | ||
|
||
|
||
@Override | ||
protected void dispatch(ShowSideMenuEventHandler handler) | ||
{ | ||
handler.onShowSideMenu(this); | ||
} | ||
|
||
|
||
} |
8 changes: 8 additions & 0 deletions
8
zanata-war/src/main/java/org/zanata/webtrans/client/events/ShowSideMenuEventHandler.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,8 @@ | ||
package org.zanata.webtrans.client.events; | ||
|
||
import com.google.gwt.event.shared.EventHandler; | ||
|
||
public interface ShowSideMenuEventHandler extends EventHandler | ||
{ | ||
void onShowSideMenu(ShowSideMenuEvent event); | ||
} |
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
Oops, something went wrong.