EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.editor.page.util
Class DisplayHelper

java.lang.Object
  extended by org.eclipse.egf.pattern.ui.editor.page.util.DisplayHelper

public class DisplayHelper
extends Object


Field Summary
static int DEFAULT_TEXT_HEIGHT_IN_CHARS
          Default text height in chars.
static int DEFAULT_TEXT_WIDTH_IN_CHARS
          Default text width in chars.
 
Constructor Summary
DisplayHelper()
           
 
Method Summary
protected  boolean completeName(String toBeResolvedFullId_p, Map<String,String> decomposition_p, IDescriptor descriptor_p)
          Complete pattern full name with given descriptor candidate.
 String getPatternOrLibraryFullName(String fullId_p)
          Get displayable full name from given pattern or library full id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TEXT_WIDTH_IN_CHARS

public static int DEFAULT_TEXT_WIDTH_IN_CHARS
Default text width in chars.


DEFAULT_TEXT_HEIGHT_IN_CHARS

public static int DEFAULT_TEXT_HEIGHT_IN_CHARS
Default text height in chars.

Constructor Detail

DisplayHelper

public DisplayHelper()
Method Detail

getPatternOrLibraryFullName

public String getPatternOrLibraryFullName(String fullId_p)
Get displayable full name from given pattern or library full id.
This method can become very costly, since it depends on the number of available pattern elements in the workspace and in the target platform.
The time consumption is linear with the number of pattern elements.

Parameters:
fullId_p -
Returns:

completeName

protected boolean completeName(String toBeResolvedFullId_p,
                               Map<String,String> decomposition_p,
                               IDescriptor descriptor_p)
Complete pattern full name with given descriptor candidate.

Parameters:
toBeResolvedFullId_p -
decomposition_p -
descriptor_p -
Returns:

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.