コード例 #1
0
 @Override
 public void onShowMetadata() {
   view.showBusyIndicator(CommonConstants.INSTANCE.Loading());
   metadataService
       .call(getMetadataSuccessCallback(), new HasBusyIndicatorDefaultErrorCallback(view))
       .getMetadata(path);
 }
コード例 #2
0
  @OnStartup
  public void init(final Path path) {
    this.path = checkNotNull("path", path);

    makeMenuBar();

    view.showBusyIndicator(CommonConstants.INSTANCE.Loading());

    projectService
        .call(getModelSuccessCallback(), new HasBusyIndicatorDefaultErrorCallback(view))
        .load(path);
  }
コード例 #3
0
 @Inject
 public ProjectImportsScreenPresenter(
     @New ProjectImportsScreenView view,
     @New FileMenuBuilder menuBuilder,
     @New ImportsWidgetPresenter importsWidget,
     Caller<ProjectService> projectService,
     Caller<MetadataService> metadataService,
     Event<NotificationEvent> notification) {
   this.view = view;
   this.menuBuilder = menuBuilder;
   this.importsWidget = importsWidget;
   this.projectService = projectService;
   this.metadataService = metadataService;
   this.notification = notification;
   view.setPresenter(this);
 }
コード例 #4
0
 @WorkbenchPartView
 public Widget asWidget() {
   return view.asWidget();
 }