Class ProductLineEditorInput
- java.lang.Object
-
- net.ssehub.easy.producer.ui.productline_editor.ProductLineEditorInput
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,org.eclipse.ui.IEditorInput
public class ProductLineEditorInput extends java.lang.Object implements org.eclipse.ui.IEditorInputEditor Input for the ProductLine Configuration Editor of the EASy-Producer tool suite.- Author:
- El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private static org.eclipse.swt.graphics.ImageIMAGEprivate ProductLineProjectplp
-
Constructor Summary
Constructors Constructor Description ProductLineEditorInput(ProductLineProject plp)Sole constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object otherEditor)booleanexists()<T> TgetAdapter(java.lang.Class<T> adapter)org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor()java.lang.StringgetName()org.eclipse.ui.IPersistableElementgetPersistable()ProductLineProjectgetPLP()Getter for the project, which should be edited.java.lang.StringgetToolTipText()inthashCode()
-
-
-
Field Detail
-
IMAGE
private static final org.eclipse.swt.graphics.Image IMAGE
-
plp
private ProductLineProject plp
-
-
Constructor Detail
-
ProductLineEditorInput
public ProductLineEditorInput(ProductLineProject plp)
Sole constructor for this class.- Parameters:
plp- The project, which should be edited.
-
-
Method Detail
-
getPLP
public ProductLineProject getPLP()
Getter for the project, which should be edited.- Returns:
- The project, which should be edited
-
getAdapter
public <T> T getAdapter(java.lang.Class<T> adapter)
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable
-
exists
public boolean exists()
- Specified by:
existsin interfaceorg.eclipse.ui.IEditorInput
-
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptorin interfaceorg.eclipse.ui.IEditorInput
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceorg.eclipse.ui.IEditorInput
-
getPersistable
public org.eclipse.ui.IPersistableElement getPersistable()
- Specified by:
getPersistablein interfaceorg.eclipse.ui.IEditorInput
-
getToolTipText
public java.lang.String getToolTipText()
- Specified by:
getToolTipTextin interfaceorg.eclipse.ui.IEditorInput
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object otherEditor)
- Overrides:
equalsin classjava.lang.Object
-
-