blob: 925419d291fff774712de8bb0583c310654543c4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.internal.ui.views.memory;
import org.eclipse.debug.internal.ui.DebugUIMessages;
import org.eclipse.jface.action.Action;
/**
* Resize all columns
*
* @since 3.0
*/
public class ReformatAction extends Action {
ITableMemoryViewTab fViewTab;
private static final String PREFIX = "ReformatAction."; //$NON-NLS-1$
private static final String TITLE = PREFIX + "title"; //$NON-NLS-1$
public ReformatAction(ITableMemoryViewTab viewTab)
{
super(DebugUIMessages.getString(TITLE));
fViewTab = viewTab;
}
/* (non-Javadoc)
* @see org.eclipse.jface.action.IAction#run()
*/
public void run() {
if (fViewTab instanceof MemoryViewTab)
{
((MemoryViewTab)fViewTab).packColumns();
}
}
}