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

Commit

Permalink
Clean up unused event bus
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sl-eng committed May 14, 2012
1 parent 5f00cf8 commit 829a432
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import com.google.common.collect.Collections2;
import com.google.gwt.gen2.table.client.CellEditor;
import com.google.gwt.gen2.table.override.client.HTMLTable;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;

public class InlineTargetCellEditor implements CellEditor<TransUnit>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import java.util.HashMap;
import java.util.Map;

import net.customware.gwt.presenter.client.EventBus;

import org.zanata.webtrans.client.presenter.SourceContentsPresenter;
import org.zanata.webtrans.client.resources.NavigationMessages;
import org.zanata.webtrans.client.ui.TransUnitDetailsPanel;
Expand Down Expand Up @@ -53,7 +51,6 @@ public class TableEditorTableDefinition extends DefaultTableDefinition<TransUnit
private TargetContentsPresenter targetContentsPresenter;

private String findMessage;
private EventBus eventBus;

private TransUnitDetailsPanel transUnitDetailsContent;

Expand Down Expand Up @@ -165,10 +162,9 @@ public void setFindMessage(String findMessage)
this.findMessage = findMessage;
}

public TableEditorTableDefinition(final NavigationMessages messages, final RedirectingCachedTableModel<TransUnit> tableModel, final EventBus eventBus, final SourceContentsPresenter sourceContentsPresenter, boolean isReadOnly, TargetContentsPresenter targetContentsPresenter)
public TableEditorTableDefinition(final NavigationMessages messages, final RedirectingCachedTableModel<TransUnit> tableModel, final SourceContentsPresenter sourceContentsPresenter, boolean isReadOnly, TargetContentsPresenter targetContentsPresenter)
{
this.isReadOnly = isReadOnly;
this.eventBus = eventBus;
this.sourceContentsPresenter = sourceContentsPresenter;
this.targetContentsPresenter = targetContentsPresenter;
setRowRenderer(rowRenderer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import java.util.List;
import java.util.Set;

import net.customware.gwt.presenter.client.EventBus;

import org.zanata.webtrans.client.editor.HasPageNavigation;
import org.zanata.webtrans.client.presenter.SourceContentsPresenter;
import org.zanata.webtrans.client.resources.NavigationMessages;
Expand All @@ -33,6 +31,7 @@
import org.zanata.webtrans.shared.model.TransUnit;
import org.zanata.webtrans.shared.model.WorkspaceContext;

import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.logical.shared.HasSelectionHandlers;
import com.google.gwt.event.logical.shared.SelectionEvent;
Expand Down Expand Up @@ -65,16 +64,16 @@ public void setFindMessage(String findMessage)
}

@Inject
public TableEditorView(NavigationMessages messages, EventBus eventBus, WorkspaceContext workspaceContext, final Resources resources, final SourceContentsPresenter sourceContentsPresenter, TargetContentsPresenter targetContentsPresenter)
public TableEditorView(NavigationMessages messages, WorkspaceContext workspaceContext, final Resources resources, final SourceContentsPresenter sourceContentsPresenter, TargetContentsPresenter targetContentsPresenter)
{
this(messages, new RedirectingTableModel<TransUnit>(), eventBus, workspaceContext, sourceContentsPresenter, targetContentsPresenter);
this(messages, new RedirectingTableModel<TransUnit>(), workspaceContext, sourceContentsPresenter, targetContentsPresenter);
loadingPanel = new LoadingPanel(resources);
loadingPanel.hide();
}

private TableEditorView(NavigationMessages messages, RedirectingTableModel<TransUnit> tableModel, EventBus eventBus, WorkspaceContext workspaceContext, final SourceContentsPresenter sourceContentsPresenter, TargetContentsPresenter targetContentsPresenter)
private TableEditorView(NavigationMessages messages, RedirectingTableModel<TransUnit> tableModel, WorkspaceContext workspaceContext, final SourceContentsPresenter sourceContentsPresenter, TargetContentsPresenter targetContentsPresenter)
{
this(new RedirectingCachedTableModel<TransUnit>(tableModel), new TableEditorTableDefinition(messages, new RedirectingCachedTableModel<TransUnit>(tableModel), eventBus, sourceContentsPresenter, workspaceContext.isReadOnly(), targetContentsPresenter));
this(new RedirectingCachedTableModel<TransUnit>(tableModel), new TableEditorTableDefinition(messages, new RedirectingCachedTableModel<TransUnit>(tableModel), sourceContentsPresenter, workspaceContext.isReadOnly(), targetContentsPresenter));
}

private TableEditorView(RedirectingCachedTableModel<TransUnit> tableModel, TableEditorTableDefinition tableDefinition)
Expand Down

0 comments on commit 829a432

Please sign in to comment.