org.guvnor.tools.actions
Class GuvnorResourceEdition

java.lang.Object
  extended by org.guvnor.tools.actions.GuvnorResourceEdition
All Implemented Interfaces:
org.eclipse.compare.IStreamContentAccessor, org.eclipse.compare.ITypedElement

public class GuvnorResourceEdition
extends Object
implements org.eclipse.compare.IStreamContentAccessor, org.eclipse.compare.ITypedElement

Represents compare input contents.


Field Summary
 
Fields inherited from interface org.eclipse.compare.ITypedElement
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
 
Constructor Summary
GuvnorResourceEdition(String name, String type, String contents, String encoding)
           
 
Method Summary
 InputStream getContents()
           
 org.eclipse.swt.graphics.Image getImage()
           
 String getName()
           
 String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuvnorResourceEdition

public GuvnorResourceEdition(String name,
                             String type,
                             String contents,
                             String encoding)
Method Detail

getContents

public InputStream getContents()
                        throws org.eclipse.core.runtime.CoreException
Specified by:
getContents in interface org.eclipse.compare.IStreamContentAccessor
Throws:
org.eclipse.core.runtime.CoreException

getImage

public org.eclipse.swt.graphics.Image getImage()
Specified by:
getImage in interface org.eclipse.compare.ITypedElement

getName

public String getName()
Specified by:
getName in interface org.eclipse.compare.ITypedElement

getType

public String getType()
Specified by:
getType in interface org.eclipse.compare.ITypedElement


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.