public class TabDescriptorProvider extends java.lang.Object implements org.eclipse.ui.views.properties.tabbed.ITabDescriptorProvider, IMeshPartVisitor
ITabDescriptorProvider
that can be used to
generate dynamic tabs based on the selected IMeshPart
.
<extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
<propertyContributor
contributorId="id.of.class.implementing.ITabbedPropertySheetPageContributor"
tabDescriptorProvider="org.eclipse.ice.client.widgets.mesh.properties.TabDescriptorProvider">
<propertyCategory category="MeshElementTreeViewer"/>
</propertyContributor>
</extension>
Constructor and Description |
---|
TabDescriptorProvider() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.ui.views.properties.tabbed.ITabDescriptor[] |
getTabDescriptors(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
Sets and returns
tabDescriptors based on the current selection. |
void |
visit(BezierEdge edge)
The visit operation for a
BezierEdge . |
void |
visit(Edge edge)
The visit operation for an
Edge . |
void |
visit(Hex hex)
The visit operation for a
Hex , a Polygon that is restricted to
six sides. |
void |
visit(MeshComponent mesh)
The visit operation for a
MeshComponent . |
void |
visit(java.lang.Object object)
This operation is a safety operation.
|
void |
visit(Polygon polygon)
The visit operation for a generic Polygon.
|
void |
visit(PolynomialEdge edge)
The visit operation for a
PolynomialEdge . |
void |
visit(Quad quad)
The visit operation for a
Quad , a Polygon that is restricted to
four sides. |
void |
visit(Vertex vertex)
The visit operation for a
Vertex . |
public org.eclipse.ui.views.properties.tabbed.ITabDescriptor[] getTabDescriptors(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
tabDescriptors
based on the current selection.getTabDescriptors
in interface org.eclipse.ui.views.properties.tabbed.ITabDescriptorProvider
public void visit(MeshComponent mesh)
IMeshPartVisitor
The visit operation for a MeshComponent
.
visit
in interface IMeshPartVisitor
mesh
- The MeshComponent that is being visited.
public void visit(Polygon polygon)
IMeshPartVisitor
The visit operation for a generic Polygon. This operation might be called even if the number of sides is 4 (quad) or 6 (hex). This can happen if the visited Polygon was initialized as a Polygon.
visit
in interface IMeshPartVisitor
polygon
- The Polygon that is being visited.
public void visit(Quad quad)
IMeshPartVisitor
The visit operation for a Quad
, a Polygon that is restricted to
four sides.
visit
in interface IMeshPartVisitor
quad
- The Quad that is being visited.
public void visit(Hex hex)
IMeshPartVisitor
The visit operation for a Hex
, a Polygon that is restricted to
six sides.
visit
in interface IMeshPartVisitor
hex
- The Hex that is being visited.
public void visit(Edge edge)
IMeshPartVisitor
The visit operation for an Edge
.
visit
in interface IMeshPartVisitor
edge
- The Edge that is being visited.
public void visit(BezierEdge edge)
IMeshPartVisitor
The visit operation for a BezierEdge
.
visit
in interface IMeshPartVisitor
edge
- The BezierEdge that is being visited.
public void visit(PolynomialEdge edge)
IMeshPartVisitor
The visit operation for a PolynomialEdge
.
visit
in interface IMeshPartVisitor
edge
- The PolynomialEdge that is being visited.
public void visit(Vertex vertex)
IMeshPartVisitor
The visit operation for a Vertex
.
visit
in interface IMeshPartVisitor
vertex
- The Vertex that is being visited.
public void visit(java.lang.Object object)
IMeshPartVisitor
This operation is a safety operation. This should only be called if the visited object is not supported.
visit
in interface IMeshPartVisitor
object
- A visited object that is not supported by this interface.