Class ReflectionUtil
java.lang.Object
org.eclipse.graphiti.ui.internal.util.ReflectionUtil
In this class, we combine all reflection code introduced to make Graphiti run
in a lean RCP setup, that is, for instance without org.eclipse.ui.ide
installed. An alternative would be to use extension points which seems to be
rather heavy-weight.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.core.resources.IFile
Typical scenario: input instance of IFileEditorInput We don't want to depend on that interface, as it resides in org.eclipse.ui.ide.static org.eclipse.swt.dnd.Transfer
ResourceTransfer resides in org.eclipse.ui.ide.
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
getFile
Typical scenario: input instance of IFileEditorInput We don't want to depend on that interface, as it resides in org.eclipse.ui.ide. We need to support an RCP scenario without having this plug-in installed. -
getResourceTransfer
public static org.eclipse.swt.dnd.Transfer getResourceTransfer()ResourceTransfer resides in org.eclipse.ui.ide. We need to support an RCP scenario without having this plug-in installed. Therefore ashamed we use dynamic class-loading and reflection.
-