TPTP 4.4.0 Monitoring Tools Project
Internal API Specification

org.eclipse.tptp.wsdm.tooling.editor.dde.util.internal
Class ActionPerformer

java.lang.Object
  extended byorg.eclipse.tptp.wsdm.tooling.editor.dde.util.internal.ActionPerformer

public class ActionPerformer
extends java.lang.Object

This class is a utility class that is used to perform all the actions in the editor


Constructor Summary
ActionPerformer()
           
 
Method Summary
static void addModifyListenerToRTTable(DescriptorEditor editor)
          Adds ModifyListener to the text components in the resource type table
static void addMrtResource(DescriptorEditor editor, org.apache.ws.muse.descriptor.impl.ResourceTypeTypeImpl data)
          Adds the specified data object to the resource type table
static void createOrUpdateRouterType(DescriptorEditor editor, int component)
          Creates a router type if one already does not exist.
static void performCapabilityEditAction(DescriptorEditor editor)
          Opens the selected user defined capability in the capability editor.
static void performCParamAddAction(DescriptorEditor editor)
          Opens the InitParamDialog for adding a new initialization parameter for capability type.
static void performCParamDeleteAction(DescriptorEditor editor)
          Deletes the selected capability initialization parameter.
static void performCParamEditAction(DescriptorEditor editor)
          Opens the InitParamDialog for capability type with the selected parameter data pre filled for editing
static void performMrtAddAction(DescriptorEditor editor)
          Opens the MRTFileDialog to add a resource type
static void performMrtDeleteAction(DescriptorEditor editor)
          Deletes the selected entry from the resource type table.
static void performMrtEditAction(DescriptorEditor editor)
          Opens the selected mrt file in its default editor for editing.
static void performRParamAddAction(DescriptorEditor editor)
          Opens the InitParamDialog for adding a new initialization parameter for resource type.
static void performRParamDeleteAction(DescriptorEditor editor)
          Deletes the selected resource type initialization parameter.
static void performRParamEditAction(DescriptorEditor editor)
          Opens the InitParamDialog for resource type with the selected parameter data pre filled for editing
static void performSerializerAddAction(DescriptorEditor editor)
          Opens CustomSerializerDialog to add a new custom serializer to the serializer table.
static void performSerializerDeleteAction(DescriptorEditor editor)
          Deletes the selected serializer type from the serializer table.
static void performSerializerEditAction(DescriptorEditor editor)
          Open CustomSerializerDialog to edit a selected custom serializer.
static boolean showOkDialog(java.lang.String title, java.lang.String msg, int dlgType)
          Brings up an information dialog.
static void updateResourceTypes(DescriptorEditor editor)
          Updates the resource types for the model before saving.
static void updateSerializers(DescriptorEditor editor)
          Updates custom serializers for the model before saving.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionPerformer

public ActionPerformer()
Method Detail

performMrtEditAction

public static void performMrtEditAction(DescriptorEditor editor)
Opens the selected mrt file in its default editor for editing.

Parameters:
editor - - DescriptorEditor instance

performCapabilityEditAction

public static void performCapabilityEditAction(DescriptorEditor editor)
Opens the selected user defined capability in the capability editor.
System defined capability cannot be edited

Parameters:
editor - - DescriptorEditor instance

performMrtDeleteAction

public static void performMrtDeleteAction(DescriptorEditor editor)
Deletes the selected entry from the resource type table.

Parameters:
editor - - DescriptorEditor instance

performMrtAddAction

public static void performMrtAddAction(DescriptorEditor editor)
Opens the MRTFileDialog to add a resource type

Parameters:
editor - - DescriptorEditor instance

addModifyListenerToRTTable

public static void addModifyListenerToRTTable(DescriptorEditor editor)
Adds ModifyListener to the text components in the resource type table

Parameters:
editor - - DescriptorEditor instance

addMrtResource

public static void addMrtResource(DescriptorEditor editor,
                                  org.apache.ws.muse.descriptor.impl.ResourceTypeTypeImpl data)
Adds the specified data object to the resource type table

Parameters:
editor - - DescriptorEditor instance
data - - ResourceTypeTypeImpl object

performCParamEditAction

public static void performCParamEditAction(DescriptorEditor editor)
Opens the InitParamDialog for capability type with the selected parameter data pre filled for editing

Parameters:
editor - - DescriptorEditor instance

performRParamEditAction

public static void performRParamEditAction(DescriptorEditor editor)
Opens the InitParamDialog for resource type with the selected parameter data pre filled for editing

Parameters:
editor - - DescriptorEditor instance

performCParamAddAction

public static void performCParamAddAction(DescriptorEditor editor)
Opens the InitParamDialog for adding a new initialization parameter for capability type.

Parameters:
editor - - DescriptorEditor instance

performRParamAddAction

public static void performRParamAddAction(DescriptorEditor editor)
Opens the InitParamDialog for adding a new initialization parameter for resource type.

Parameters:
editor - - DescriptorEditor instance

performCParamDeleteAction

public static void performCParamDeleteAction(DescriptorEditor editor)
Deletes the selected capability initialization parameter.

Parameters:
editor -

performRParamDeleteAction

public static void performRParamDeleteAction(DescriptorEditor editor)
Deletes the selected resource type initialization parameter.

Parameters:
editor -

performSerializerAddAction

public static void performSerializerAddAction(DescriptorEditor editor)
Opens CustomSerializerDialog to add a new custom serializer to the serializer table.

Parameters:
editor - - DescriptorEditor instance

performSerializerEditAction

public static void performSerializerEditAction(DescriptorEditor editor)
Open CustomSerializerDialog to edit a selected custom serializer.

Parameters:
editor - - DescriptorEditor instance

performSerializerDeleteAction

public static void performSerializerDeleteAction(DescriptorEditor editor)
Deletes the selected serializer type from the serializer table.

Parameters:
editor - - DescriptorEditor instance

createOrUpdateRouterType

public static void createOrUpdateRouterType(DescriptorEditor editor,
                                            int component)
Creates a router type if one already does not exist. Else updates this router type.
  Value for component		Creates/Updates
  		1		LogFile
  		2		RouterClass
  		3		LogLevel
 

Parameters:
editor - - DescriptorEditor instance
component - - int value specifying which component

updateResourceTypes

public static void updateResourceTypes(DescriptorEditor editor)
Updates the resource types for the model before saving.

Parameters:
editor - - DescriptorEditor instance

updateSerializers

public static void updateSerializers(DescriptorEditor editor)
Updates custom serializers for the model before saving.

Parameters:
editor - - DescriptorEditor instance

showOkDialog

public static boolean showOkDialog(java.lang.String title,
                                   java.lang.String msg,
                                   int dlgType)
Brings up an information dialog.

Parameters:
title - - title of the dialog
msg - - message to be displayed
dlgType - - dialog type
Returns:
boolean value indicating which button is clicked.

TPTP 4.4.0 Monitoring Tools Project
Internal API Specification