/*******************************************************************************
- * Copyright (c) 2010 Ericsson
+ * Copyright (c) 2010, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
}
@Override
- public Object getAdapter(Class adapter) {
+ public Object getAdapter(Class adapter) {
return null;
}
@Override
- public boolean exists() {
- return fFile.exists();
+ public boolean exists() {
+ /* prevent this input from appearing in "Files Most Recently Used" list,
+ * as this causes lingering reference to ITmfTrace in the platform */
+ return false;
}
@Override
- public ImageDescriptor getImageDescriptor() {
+ public ImageDescriptor getImageDescriptor() {
IContentType contentType = IDE.getContentType(fFile);
return PlatformUI.getWorkbench().getEditorRegistry()
.getImageDescriptor(fFile.getName(), contentType);
}
@Override
- public String getName() {
+ public String getName() {
return fTrace.getName();
}
@Override
- public IPersistableElement getPersistable() {
+ public IPersistableElement getPersistable() {
return null;
}
@Override
- public String getToolTipText() {
+ public String getToolTipText() {
return fFile.getFullPath().makeRelative().toString();
}
return fTrace;
}
- /* (non-Javadoc)
- * @see java.lang.Object#hashCode()
- */
@Override
public int hashCode() {
final int prime = 31;
return result;
}
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
@Override
public boolean equals(Object obj) {
if (this == obj) {