Ejemplo n.º 1
0
  @Override
  public void onFileOperation(FileEvent event) {
    if (event.getOperationType() != FileEvent.FileOperation.CLOSE) {
      return;
    }

    final String eventFilePath = event.getFile().getPath();
    final String filePath = input.getFile().getPath();
    if (filePath.equals(eventFilePath)) {
      workspaceAgent.removePart(this);
    }
  }
Ejemplo n.º 2
0
  @Override
  public void onFileOperation(final FileEvent event) {
    if (event.getOperationType() != FileEvent.FileOperation.CLOSE) {
      return;
    }

    final VirtualFile eventFile = event.getFile();
    final VirtualFile file = input.getFile();
    if (file.equals(eventFile)) {
      workspaceAgent.removePart(this);
    }
  }