Traceability

org.topcased.traceability.hmi.util
Class FileNameUtils

java.lang.Object
  extended by org.topcased.traceability.hmi.util.FileNameUtils

public class FileNameUtils
extends java.lang.Object


Constructor Summary
FileNameUtils()
           
 
Method Summary
static org.eclipse.core.runtime.IPath diagramToResult(org.eclipse.core.resources.IFile inputFile)
          Given an inputFile pointing to a diagram file, returns the path of the corresponding result file.
static org.eclipse.core.runtime.IPath getResultFileFullPath(org.eclipse.core.runtime.IPath path)
           
static org.eclipse.core.runtime.IPath getResultFilePath(org.eclipse.ui.part.FileEditorInput fileInput)
           
static boolean isDiagram(org.eclipse.core.resources.IFile inputFile)
          Does an inputFile points to a diagram (*.ttmdi) ?
static boolean isResult(org.eclipse.core.resources.IFile inputFile)
          Does an inputFile points to a result file (*.ttmresults) ?
static org.eclipse.core.runtime.IPath resultToDiagram(org.eclipse.core.resources.IFile inputFile)
          Given an inputFile pointing to a result file, returns the path of the corresponding diagram file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameUtils

public FileNameUtils()
Method Detail

isDiagram

public static boolean isDiagram(org.eclipse.core.resources.IFile inputFile)
Does an inputFile points to a diagram (*.ttmdi) ?

Parameters:
inputFile -
Returns:

isResult

public static boolean isResult(org.eclipse.core.resources.IFile inputFile)
Does an inputFile points to a result file (*.ttmresults) ?

Parameters:
inputFile -
Returns:

resultToDiagram

public static org.eclipse.core.runtime.IPath resultToDiagram(org.eclipse.core.resources.IFile inputFile)
Given an inputFile pointing to a result file, returns the path of the corresponding diagram file.

Parameters:
inputFile -
Returns:

diagramToResult

public static org.eclipse.core.runtime.IPath diagramToResult(org.eclipse.core.resources.IFile inputFile)
Given an inputFile pointing to a diagram file, returns the path of the corresponding result file.

Parameters:
inputFile -
Returns:

getResultFilePath

public static org.eclipse.core.runtime.IPath getResultFilePath(org.eclipse.ui.part.FileEditorInput fileInput)

getResultFileFullPath

public static org.eclipse.core.runtime.IPath getResultFileFullPath(org.eclipse.core.runtime.IPath path)

Traceability

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.