Package org.eclipse.ui.views.properties

Examples of org.eclipse.ui.views.properties.ResourcePropertySource


   * Returns a corresponding instance of <code>IPropertySource</code> for
   * the given <code>IModelElement</code> or null.
   */
  public static IPropertySource getPropertySource(IModelElement element) {
    if (element instanceof IBeansProject) {
      return new ResourcePropertySource(((IBeansProject) element)
          .getProject());
    }
    else if (element instanceof IBeansConfig) {
      IFile file = (IFile) ((IBeansConfig) element).getElementResource();
      if (file != null && file.exists()) {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.views.properties.ResourcePropertySource

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.