blob: 60bec923777356fddbba0476baa6593d5be25483 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2010 IBM Corporation and Others
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.examples.scripteditor.actions;
import org.eclipse.actf.ai.internal.ui.scripteditor.VolumeLevelCanvas;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
public class MovieCaptureAudioClearDataAction implements IWorkbenchWindowActionDelegate {
/**
* Local data
*/
// instance of each ViewPart class
private VolumeLevelCanvas instParentView = null;
/**
* Local method : PickUP instance of parent Canvas class
*/
private void pickupInstViewPart() {
if(instParentView == null){
instParentView = VolumeLevelCanvas.getInstance();
}
}
/**
* Management PopUP window for preference of capture audio (non-Javadoc)
*/
/**
*
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
public void run(IAction action) {
// Store instance of parent Canvas class
pickupInstViewPart();
// Clear capture data
instParentView.cleanupMovieAudioLevel();
// Redraw Canvas
instParentView.setStatusCanvasVolumeLevel(1);
}
public void init(IWorkbenchWindow window) {
}
public void dispose() {
}
public void selectionChanged(IAction action, ISelection selection) {
}
}