com.omondo.uml.std.external.profile
Interface ExtensionTabItem


public interface ExtensionTabItem

This class is used to define additionnal tabs to the element properties dialog.

See Also:
ProfileFragment

Method Summary
 void beforeCompletion()
          This method is called if the canPerformCompletion() returns true.
 boolean canPerformCompletion()
           
 org.eclipse.swt.widgets.TabItem create(ModelDataHolder holder, org.eclipse.swt.widgets.TabFolder folder, ExtensionTabItemNotifier notifier, boolean isReadOnly)
          Used to create the TabItem that will be added to the element properties dialog.
 void dispose()
           
 java.lang.String getAssociatedStereotype()
          This method is used to select the additionnal tab to add to the element properties dialog.
 java.lang.String getErrorMsg()
           
 java.lang.String getId()
           
 java.lang.String getWarningMsg()
           
 boolean isReadOnly()
           
 void read()
          This method is called when the user selects the tab.
 void save()
          This method is called when the user deselects the tab.
 

Method Detail

getId

public java.lang.String getId()
Returns:
the id of the extension tab

getAssociatedStereotype

public java.lang.String getAssociatedStereotype()
This method is used to select the additionnal tab to add to the element properties dialog.

Returns:
the associated stereotype

create

public org.eclipse.swt.widgets.TabItem create(ModelDataHolder holder,
                                              org.eclipse.swt.widgets.TabFolder folder,
                                              ExtensionTabItemNotifier notifier,
                                              boolean isReadOnly)
Used to create the TabItem that will be added to the element properties dialog. Note that the usage of the tagged values is deprecated in UML2, use the stereotype attribute instead.

Parameters:
folder -

read

public void read()
This method is called when the user selects the tab. It should be used to refresh the content of the tab.


save

public void save()
This method is called when the user deselects the tab. It should be used to save the content of the tab.


canPerformCompletion

public boolean canPerformCompletion()
Returns:
if the dialog can perform ok.

getErrorMsg

public java.lang.String getErrorMsg()
Returns:
the error message or null.

getWarningMsg

public java.lang.String getWarningMsg()
Returns:
the warning message or null.

beforeCompletion

public void beforeCompletion()
This method is called if the canPerformCompletion() returns true.


dispose

public void dispose()

isReadOnly

public boolean isReadOnly()