pl.edu.agh.cast.resources
Class DiagramEditorInput

java.lang.Object
  extended by pl.edu.agh.cast.resources.FileEditorInput
      extended by pl.edu.agh.cast.resources.DiagramEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPathEditorInput, IDiagramEditorInput

public class DiagramEditorInput
extends FileEditorInput
implements IDiagramEditorInput

Author:
fox

Constructor Summary
DiagramEditorInput(IDiagram diagram, org.eclipse.core.resources.IFile file)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Two DiagramEditorInputs are equal if their files are equal.
 IDiagram getDiagram()
           
 
Methods inherited from class pl.edu.agh.cast.resources.FileEditorInput
exists, getAdapter, getFile, getImageDescriptor, getName, getPath, getPersistable, getToolTipText, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiagramEditorInput

public DiagramEditorInput(IDiagram diagram,
                          org.eclipse.core.resources.IFile file)
Method Detail

getDiagram

public IDiagram getDiagram()
Specified by:
getDiagram in interface IDiagramEditorInput

equals

public boolean equals(java.lang.Object obj)
Two DiagramEditorInputs are equal if their files are equal. That basically means that FileEditorInput's equals should be used.

Overrides:
equals in class FileEditorInput


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.