Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.srcinfo.view.factories
Class SourceContainerViewFactory

java.lang.Object
  extended by AbstractShapeViewFactory
      extended by com.ibm.etools.systems.application.visual.editor.view.factories.ArtifactViewFactory
          extended by com.ibm.etools.systems.application.visual.editor.srcinfo.view.factories.SourceContainerViewFactory

public class SourceContainerViewFactory
extends ArtifactViewFactory

View factory for Source Container. Add drawer style to support collapse.


Field Summary
static String copyright
           
 
Constructor Summary
SourceContainerViewFactory()
           
 
Method Summary
protected  List createStyles(View view)
           
 View createView(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint)
           
protected  void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted)
           
protected  boolean isSingleChildElement(View view)
          Check if the semantic element for the given view has single child.
 
Methods inherited from class com.ibm.etools.systems.application.visual.editor.view.factories.ArtifactViewFactory
initializeFromPreferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Constructor Detail

SourceContainerViewFactory

public SourceContainerViewFactory()
Method Detail

decorateView

protected void decorateView(View containerView,
                            View view,
                            IAdaptable semanticAdapter,
                            String semanticHint,
                            int index,
                            boolean persisted)
Overrides:
decorateView in class ArtifactViewFactory

createStyles

protected List createStyles(View view)

createView

public View createView(IAdaptable semanticAdapter,
                       View containerView,
                       String semanticHint,
                       int index,
                       boolean persisted,
                       PreferencesHint preferencesHint)

isSingleChildElement

protected boolean isSingleChildElement(View view)
Check if the semantic element for the given view has single child.

Returns:
true if has only one child, false otherwise.

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.