use of net.heartsome.cat.ts.ui.view.IMatchViewPart in project translationstudio8 by heartsome.
the class AcceptMatch3 method execute.
/** (non-Javadoc)
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
IViewPart viewPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView("net.heartsome.cat.ts.ui.translation.view.matchview");
if (viewPart != null && viewPart instanceof IMatchViewPart) {
IMatchViewPart matchView = (IMatchViewPart) viewPart;
matchView.acceptMatchByIndex(2);
}
return null;
}
Aggregations