Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed formatting that caused failing style check.
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesEskebaek committed Nov 11, 2013
1 parent 17ec651 commit 498c044
Show file tree
Hide file tree
Showing 19 changed files with 1,228 additions and 4,464 deletions.
30 changes: 15 additions & 15 deletions LICENSE.txt
@@ -1,5 +1,5 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999

Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Expand All @@ -10,7 +10,7 @@
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]

Preamble
Preamble

The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Expand Down Expand Up @@ -55,7 +55,7 @@ modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.

Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
Expand Down Expand Up @@ -111,8 +111,8 @@ modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE

GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License Agreement applies to any software library or other
Expand Down Expand Up @@ -158,7 +158,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.

2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
Expand Down Expand Up @@ -216,7 +216,7 @@ instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.

Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
Expand Down Expand Up @@ -267,7 +267,7 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.

6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
Expand Down Expand Up @@ -329,7 +329,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.

7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
Expand Down Expand Up @@ -370,7 +370,7 @@ subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.

11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
Expand Down Expand Up @@ -422,7 +422,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.

14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
Expand All @@ -432,7 +432,7 @@ decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.

NO WARRANTY
NO WARRANTY

15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
Expand All @@ -455,8 +455,8 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.

END OF TERMS AND CONDITIONS
END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Libraries

If you develop a new library, and you want it to be of the greatest
Expand Down
Expand Up @@ -5,7 +5,7 @@

public class ReferenceVisibleEvent extends
GwtEvent<ReferenceVisibleEventHandler> {

/**
* Handler type.
*/
Expand All @@ -22,7 +22,7 @@ public static Type<ReferenceVisibleEventHandler> getType() {
}
return TYPE;
}

private Locale selectedLocale;
private boolean isVisible;

Expand Down
Expand Up @@ -70,7 +70,7 @@ public class SourceContentsPresenter implements ClickHandler,
private final Provider<SourceContentsDisplay> displayProvider;
private final UserConfigHolder configHolder;
private final CachingDispatchAsync dispatcher;

// states
private List<SourceContentsDisplay> displayList = Collections.emptyList();
private TransUnitId currentTransUnitId;
Expand Down
Expand Up @@ -65,7 +65,7 @@ protected void onBind() {

transUnitsTablePresenter.bind();
display.setEditorView(transUnitsTablePresenter.getDisplay().asWidget());

transUnitNavigationPresenter.bind();
display.setTransUnitNavigation(transUnitNavigationPresenter
.getDisplay().asWidget());
Expand Down
Expand Up @@ -70,7 +70,7 @@ public boolean apply(ContentState contentState) {
public static final boolean DEFAULT_SPELL_CHECK = true;
public static final DiffMode DEFAULT_TM_DISPLAY_MODE = DiffMode.NORMAL;
public static final boolean DEFAULT_SHOW_PANEL = true;
public static final String DEFAULT_SELECTED_REFERENCE = "none";
public static final String DEFAULT_SELECTED_REFERENCE = "none";

public UserConfigHolder() {
// default state
Expand Down Expand Up @@ -215,7 +215,7 @@ public void setShowTMPanel(boolean show) {
state = new ConfigurationState(state);
state.showTMPanel = show;
}

public void setSelectedReferenceForSourceLang(String selected) {
state = new ConfigurationState(state);
state.selectedReferenceForSourceLang = selected;
Expand Down Expand Up @@ -370,7 +370,7 @@ public boolean isSpellCheckEnabled() {
public DiffMode getTransMemoryDisplayMode() {
return transMemoryDisplayMode;
}

public String getSelectedReferenceForSourceLang() {
return selectedReferenceForSourceLang;
}
Expand Down
Expand Up @@ -102,7 +102,7 @@ public void insertItem(String item, Locale locale, int index) {
* @param locale the locale to be mapped with the item
* @param index the index where it should be inserted
*/
public void insertItem(String item, HasDirection.Direction dir,
public void insertItem(String item, HasDirection.Direction dir,
Locale locale, int index) {
super.insertItem(item, dir, locale.getDisplayName(), index);
locales.add(index, locale);
Expand Down
@@ -1,12 +1,12 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:with field="messages"
<ui:with field="messages"
type="org.zanata.webtrans.client.resources.TableEditorMessages" />
<ui:style field="style"

<ui:style field="style"
type="org.zanata.webtrans.client.ui.ReferencePanel.Styles">

.container {
width: 95%;
table-layout: fixed;
Expand All @@ -23,7 +23,7 @@
cursor: pointer;
color: #686868;
}

.header:hover {
color: #686868;
}
Expand All @@ -34,8 +34,8 @@
white-space: nowrap;
}
</ui:style>
<g:DisclosurePanel addStyleNames="{style.container}

<g:DisclosurePanel addStyleNames="{style.container}
fadeElement" ui:field="disclosurePanel">
<g:customHeader>
<g:Label ui:field="referenceLabel" styleName="{style.referenceLabel}" />
Expand Down
Expand Up @@ -2,17 +2,17 @@
* Copyright 2010, Red Hat, Inc. and individual contributors as indicated by the
* @author tags. See the copyright.txt file in the distribution for a full
* listing of individual contributors.
*
*
* This is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
*
* This software is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
Expand All @@ -37,7 +37,7 @@
import org.zanata.webtrans.client.ui.LocaleListBox;
import org.zanata.webtrans.shared.model.Locale;

public class ChangeReferenceLangView extends Composite implements
public class ChangeReferenceLangView extends Composite implements
ChangeReferenceLangDisplay, ChangeHandler {
private static ChangeReferenceLangViewUiBinder uiBinder = GWT
.create(ChangeReferenceLangViewUiBinder.class);
Expand Down
@@ -1,12 +1,12 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style type="org.zanata.webtrans.client.view.ChangeReferenceLangView.Styles">
<ui:style type="org.zanata.webtrans.client.view.ChangeReferenceLangView.Styles">
.sourceLangListBox {
color:#000000;
}
}
</ui:style>
<g:FlowPanel ui:field="flowPanel">
<g:InlineLabel ui:field="descriptionLabel" />
</g:FlowPanel>
</ui:UiBinder>
</ui:UiBinder>
Expand Up @@ -58,7 +58,7 @@ public class SourceContentsView extends Composite implements
private TransUnit transUnit;
private final UserConfigHolder configHolder;
private final History history;
private ReferencePanel referencePanel;
private ReferencePanel referencePanel;
private UiMessages messages;

@Inject
Expand Down Expand Up @@ -185,7 +185,7 @@ public void updateTransUnitDetails(TransUnit transUnit) {
public TransUnitId getId() {
return transUnit.getId();
}

@Override
public void showReference(TextFlowTarget reference) {
if (reference == null) {
Expand Down
Expand Up @@ -22,7 +22,7 @@
@Scope(ScopeType.STATELESS)
@ActionHandlerFor(GetTargetForLocale.class)
@Slf4j
public class GetTargetForLocaleHandler extends
public class GetTargetForLocaleHandler extends
AbstractActionHandler<GetTargetForLocale, GetTargetForLocaleResult> {
@In
private ZanataIdentity identity;
Expand All @@ -48,7 +48,7 @@ public GetTargetForLocaleResult execute(GetTargetForLocale action,
new TextFlowTargetId(hTextFlowTarget.getId()),
action.getLocale(), hTextFlowTarget.getContents().get(0),
displayName);

return new GetTargetForLocaleResult(textFlowTarget);
}
} catch (Exception e) {
Expand Down
Expand Up @@ -7,7 +7,7 @@
*
* @author Hannes Eskebaek
*/
public class GetTargetForLocale extends
public class GetTargetForLocale extends
AbstractWorkspaceAction<GetTargetForLocaleResult> {
private static final long serialVersionUID = 1L;
private TransUnitId sourceTransUnitId;
Expand Down

0 comments on commit 498c044

Please sign in to comment.