Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.debug.internal.ui
Class ResourceExtender  view ResourceExtender download ResourceExtender.java

java.lang.Object
  extended byorg.eclipse.core.expressions.PropertyTester
      extended byorg.eclipse.debug.internal.ui.ResourceExtender
All Implemented Interfaces:
org.eclipse.core.expressions.IPropertyTester

public class ResourceExtender
extends org.eclipse.core.expressions.PropertyTester

ResourceExtender provides property testers for the XML expression language evaluation. We provide a copy in Debug so that launch shortcuts can add contextual launch enablement that does not require their plugins to be loaded. Copied from org.eclipse.jdt.internal.corext.refactoring.participants.xml.ResourceExtender


Field Summary
private static java.lang.String PROJECT_NATURE
           
private static java.lang.String PROPERTY_MATCHES_CONTENT_TYPE
           
private static java.lang.String PROPERTY_MATCHES_PATTERN
           
 
Fields inherited from class org.eclipse.core.expressions.PropertyTester
 
Constructor Summary
ResourceExtender()
           
 
Method Summary
private  boolean matchesContentType(org.eclipse.core.resources.IResource resource, java.lang.String contentType)
          Returns whether or not the given file's content type matches the specified content type.
 boolean test(java.lang.Object receiver, java.lang.String method, java.lang.Object[] args, java.lang.Object expectedValue)
          Executes the property test determined by the parameter property.
 
Methods inherited from class org.eclipse.core.expressions.PropertyTester
handles, instantiate, internalCreateDescriptor, internalInitialize, isDeclaringPluginActive, isInstantiated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_MATCHES_PATTERN

private static final java.lang.String PROPERTY_MATCHES_PATTERN
See Also:
Constant Field Values

PROJECT_NATURE

private static final java.lang.String PROJECT_NATURE
See Also:
Constant Field Values

PROPERTY_MATCHES_CONTENT_TYPE

private static final java.lang.String PROPERTY_MATCHES_CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

ResourceExtender

public ResourceExtender()
Method Detail

test

public boolean test(java.lang.Object receiver,
                    java.lang.String method,
                    java.lang.Object[] args,
                    java.lang.Object expectedValue)
Description copied from interface: org.eclipse.core.expressions.IPropertyTester
Executes the property test determined by the parameter property.


matchesContentType

private boolean matchesContentType(org.eclipse.core.resources.IResource resource,
                                   java.lang.String contentType)
Returns whether or not the given file's content type matches the specified content type. Content types are looked up in the content type registry.