use of org.eclipse.ui.IViewPart in project translationstudio8 by heartsome.
the class AcceptMatch1 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(0);
}
return null;
}
use of org.eclipse.ui.IViewPart in project translationstudio8 by heartsome.
the class AcceptTerm0 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(10);
}
return null;
}
use of org.eclipse.ui.IViewPart in project translationstudio8 by heartsome.
the class AcceptTerm1 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(0);
}
return null;
}
use of org.eclipse.ui.IViewPart in project translationstudio8 by heartsome.
the class AcceptTerm2 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(1);
}
return null;
}
use of org.eclipse.ui.IViewPart in project translationstudio8 by heartsome.
the class AcceptTerm4 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(3);
}
return null;
}
Aggregations