Esempio n. 1
0
  private void executeConcurrentDeleteCommand(
      final Path path, final String sessionId, final User identity) {
    if (!onConcurrentDeleteCommand.isEmpty()) {
      final OnConcurrentDelete event =
          new OnConcurrentDelete() {
            @Override
            public Path getPath() {
              return path;
            }

            @Override
            public String getId() {
              return sessionId;
            }

            @Override
            public User getIdentity() {
              return identity;
            }
          };
      for (final ParameterizedCommand<OnConcurrentDelete> command : onConcurrentDeleteCommand) {
        command.execute(event);
      }
    }
  }
Esempio n. 2
0
  private void executeConcurrentCopyCommand(
      final Path path, final Path destinationPath, final String sessionId, final User identity) {
    if (!onConcurrentCopyCommand.isEmpty()) {
      final OnConcurrentCopyEvent copyEvent =
          new OnConcurrentCopyEvent() {
            @Override
            public Path getSource() {
              return path;
            }

            @Override
            public Path getTarget() {
              return destinationPath;
            }

            @Override
            public String getId() {
              return sessionId;
            }

            @Override
            public User getIdentity() {
              return identity;
            }
          };
      for (final ParameterizedCommand<OnConcurrentCopyEvent> command : onConcurrentCopyCommand) {
        command.execute(copyEvent);
      }
    }
  }
Esempio n. 3
0
 @UiHandler("closeButton")
 public void onOKButtonClick(final ClickEvent e) {
   closeCommand.execute(!dontShowAgain.getValue());
 }
 @Override
 public void selectAndExecuteExpandCommand() {
   select();
   popup.select();
   selectCommand.execute(getIdentifier());
 }
 public void deselectAndExecuteCommand() {
   deselect();
   deselectCommand.execute(getIdentifier());
 }