Class TmfViewFactory
java.lang.Object
org.eclipse.tracecompass.tmf.ui.views.TmfViewFactory
Factory for TmfView.
- Since:
- 3.2
- Author:
- Jonathan Rajotte Julien
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe separator used for secondary id internal use. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringgetBaseSecId(String secId) Parse a secondary id and return the base secondary id minus any generated suffix (UUID).static @Nullable org.eclipse.ui.IViewPartCreate a new view.
-
Field Details
-
INTERNAL_SECONDARY_ID_SEPARATOR
The separator used for secondary id internal use. This allows to have multiple level of information inside the secondary id.- See Also:
-
-
Method Details
-
newView
@NonNullByDefault public static @Nullable org.eclipse.ui.IViewPart newView(String viewId, boolean generateSuffix) Create a new view.
If a view with the corresponding id already exists and no suffix were added the existing view will be given focus.- Parameters:
viewId- The id of the view to be created.
Format: primary_id[:secondary_id[invalid input: '&uuid']|:uuid]generateSuffix- Add or replace a generated suffix id (UUID). This allows multiple views with the same id to be displayed.- Returns:
- The view instance, or null if an error occurred.
-
getBaseSecId
Parse a secondary id and return the base secondary id minus any generated suffix (UUID).- Parameters:
secId- A view secondary id- Returns:
- The base secondary id excluding the UUID, or null when the passed string is a UUID.
-