use of net.heartsome.cat.ts.ui.view.ITermViewPart in project translationstudio8 by heartsome.
the class AcceptTerm7 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.term.view.termView");
if (viewPart != null && viewPart instanceof ITermViewPart) {
ITermViewPart matchView = (ITermViewPart) viewPart;
matchView.acceptTermByIndex(6);
}
return null;
}
use of net.heartsome.cat.ts.ui.view.ITermViewPart in project translationstudio8 by heartsome.
the class AcceptTerm8 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.term.view.termView");
if (viewPart != null && viewPart instanceof ITermViewPart) {
ITermViewPart matchView = (ITermViewPart) viewPart;
matchView.acceptTermByIndex(7);
}
return null;
}
use of net.heartsome.cat.ts.ui.view.ITermViewPart in project translationstudio8 by heartsome.
the class AcceptTerm9 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.term.view.termView");
if (viewPart != null && viewPart instanceof ITermViewPart) {
ITermViewPart matchView = (ITermViewPart) viewPart;
matchView.acceptTermByIndex(8);
}
return null;
}
use of net.heartsome.cat.ts.ui.view.ITermViewPart in project translationstudio8 by heartsome.
the class AcceptTerm3 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.term.view.termView");
if (viewPart != null && viewPart instanceof ITermViewPart) {
ITermViewPart matchView = (ITermViewPart) viewPart;
matchView.acceptTermByIndex(2);
}
return null;
}
use of net.heartsome.cat.ts.ui.view.ITermViewPart in project translationstudio8 by heartsome.
the class AcceptTerm6 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.term.view.termView");
if (viewPart != null && viewPart instanceof ITermViewPart) {
ITermViewPart matchView = (ITermViewPart) viewPart;
matchView.acceptTermByIndex(5);
}
return null;
}
Aggregations