/*******************************************************************************
* Copyright (c) 2012 Google, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Google, Inc. - initial API and implementation
*******************************************************************************/
package com.windowtester.recorder.event.user;
public class SemanticShellClosingEvent extends SemanticShellEvent {
private static final long serialVersionUID = -6420650777142325456L;
private final String _shellTitle;
public SemanticShellClosingEvent(EventInfo info, String shellTitle) {
super(info);
_shellTitle = shellTitle;
}
/* (non-Javadoc)
* @see com.windowtester.recorder.event.user.SemanticShellEvent#getName()
*/
public String getName() {
if (_shellTitle != null)
return _shellTitle;
return super.getName();
}
public String toString(){
return "Shell: '" + getName() + "' closed";
}
}