Package org.eclipse.core.expressions

Examples of org.eclipse.core.expressions.IEvaluationContext


@SuppressWarnings( "restriction" )
public abstract class AbstractBuildHandler extends AbstractAntHandler {

  @Override
  public Object execute( ExecutionEvent event ) throws ExecutionException {
    IEvaluationContext context = (IEvaluationContext) event.getApplicationContext();

    IFile f = getConfigurationFile( context );
    if ( f == null ) {
      return null;
    }
View Full Code Here


import org.eclipse.ui.ISources;

public abstract class AbstractConverterHandler extends AbstractHandler {
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    IEvaluationContext context = (IEvaluationContext) event
        .getApplicationContext();
    ISelection s = (ISelection) context
        .getVariable(ISources.ACTIVE_MENU_SELECTION_NAME);
    if (s instanceof IStructuredSelection) {
      Object o = ((IStructuredSelection) s).getFirstElement();
      if (o instanceof IFile) {
        IFile f = (IFile) o;
View Full Code Here

public class OpenWithFXMLHandler extends AbstractHandler {

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    IEvaluationContext context = (IEvaluationContext) event.getApplicationContext();
    ISelection s = (ISelection) context.getVariable(ISources.ACTIVE_MENU_SELECTION_NAME);
    if( s instanceof IStructuredSelection ) {
      Object o = ((IStructuredSelection) s).getFirstElement();
      if( o instanceof IFile ) {
        IFile f = (IFile) o;
        String scenebuilder = InstanceScope.INSTANCE.getNode("at.bestsolution.efxclipse.tooling.ui").get("scenebuilder.exe", null);
View Full Code Here

TOP

Related Classes of org.eclipse.core.expressions.IEvaluationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.