Skip to content

Commit

Permalink
Merge pull request #82 from vince-fugnitto/vf/trace-explorer
Browse files Browse the repository at this point in the history
trace-explorer: add to default layout
  • Loading branch information
marcdumais-work authored Jun 19, 2020
2 parents 1d51578 + de7bd5a commit 5ec7ad1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { AbstractViewContribution } from "@theia/core/lib/browser/shell/view-contribution";
import { TraceExplorerWidget, TRACE_EXPLORER_ID, TRACE_EXPLORER_LABEL } from "./trace-explorer-widget";
import { FrontendApplicationContribution, FrontendApplication } from "@theia/core/lib/browser";

export class TraceExplorerContribution extends AbstractViewContribution<TraceExplorerWidget> implements FrontendApplicationContribution {

export class TraceExplorerContribution extends AbstractViewContribution<TraceExplorerWidget> {
constructor() {
super({
widgetId: TRACE_EXPLORER_ID,
Expand All @@ -12,4 +14,9 @@ export class TraceExplorerContribution extends AbstractViewContribution<TraceExp
toggleCommandId: 'trace-explorer:toggle'
});
}

async initializeLayout(_app: FrontendApplication): Promise<void> {
await this.openView({ activate: false });
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default new ContainerModule(bind => {

bindViewContribution(bind, TraceExplorerContribution);
bind(TraceExplorerWidget).toSelf();
// bind(FrontendApplicationContribution).toService(TraceExplorerContribution);
bind(FrontendApplicationContribution).toService(TraceExplorerContribution);
bind(WidgetFactory).toDynamicValue(context => ({
id: TRACE_EXPLORER_ID,
createWidget: () => context.container.get<TraceExplorerWidget>(TraceExplorerWidget)
Expand Down

0 comments on commit 5ec7ad1

Please sign in to comment.