Package OntoUML.diagram.part

Source Code of OntoUML.diagram.part.OntoUMLUriEditorInputTester

package OntoUML.diagram.part;

import org.eclipse.core.expressions.PropertyTester;
import org.eclipse.emf.common.ui.URIEditorInput;

/**
* @generated
*/
public class OntoUMLUriEditorInputTester extends PropertyTester {

  /**
   * @generated
   */
  public boolean test(Object receiver, String method, Object[] args,
      Object expectedValue) {
    if (false == receiver instanceof URIEditorInput) {
      return false;
    }
    URIEditorInput editorInput = (URIEditorInput) receiver;
    return "ontouml_diagram".equals(editorInput.getURI().fileExtension()); //$NON-NLS-1$
  }

}
TOP

Related Classes of OntoUML.diagram.part.OntoUMLUriEditorInputTester

TOP
Copyright © 2018 www.massapi.com. 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.