Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.view
Class SystemViewQSYSMessageDescriptionAdapter

java.lang.Object
  extended by AbstractSystemViewAdapter
      extended by com.ibm.etools.iseries.rse.ui.view.SystemViewQSYSMessageDescriptionAdapter

public class SystemViewQSYSMessageDescriptionAdapter
extends AbstractSystemViewAdapter

Adapter for contents of an ISeries message file. This adapts a single message description within such a file.


Field Summary
static String copyright
           
 
Constructor Summary
SystemViewQSYSMessageDescriptionAdapter()
           
 
Method Summary
 void addActions(SystemMenuManager menu, IStructuredSelection selection, Shell parent, String menuGroup)
           
 boolean canDelete(Object element)
           
 boolean doDelete(Shell shell, Object element, IProgressMonitor monitor)
           
 String getAbsoluteName(Object object)
           
 String getAbsoluteParentName(Object element)
           
 Object[] getChildren(IAdaptable element, IProgressMonitor monitor)
           
 ImageDescriptor getImageDescriptor(Object element)
           
 Object getParent(Object element)
           
 IPropertyDescriptor[] getPropertyDescriptors()
          Returns the current collection of property descriptors for message description objects.
 Object getPropertyValue(Object property)
          Returns the current value for the named property.
 Object getRemoteParent(Object element, IProgressMonitor monitor)
           
 String[] getRemoteParentNamesInUse(Object element, IProgressMonitor monitor)
           
 String getRemoteSubType(Object element)
           
 String getRemoteType(Object element)
           
 String getRemoteTypeCategory(Object element)
           
 String getStatusLineText(Object element)
           
 SubSystem getSubSystem(Object element)
           
 String getSubSystemConfigurationId(Object element)
           
 String getText(Object element)
           
 String getType(Object element)
           
 IPropertyDescriptor[] getUniquePropertyDescriptors()
           
 boolean hasChildren(IAdaptable element)
           
protected  IPropertyDescriptor[] internalGetPropertyDescriptors()
           
protected  Object internalGetPropertyValue(Object key)
           
 boolean refreshRemoteObject(Object oldElement, Object newElement)
           
 boolean showDelete(Object element)
           
 boolean showRefresh(Object element)
           
 boolean showRename(Object element)
           
 
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

SystemViewQSYSMessageDescriptionAdapter

public SystemViewQSYSMessageDescriptionAdapter()
Method Detail

addActions

public void addActions(SystemMenuManager menu,
                       IStructuredSelection selection,
                       Shell parent,
                       String menuGroup)

getChildren

public Object[] getChildren(IAdaptable element,
                            IProgressMonitor monitor)

getImageDescriptor

public ImageDescriptor getImageDescriptor(Object element)

getParent

public Object getParent(Object element)

getType

public String getType(Object element)

hasChildren

public boolean hasChildren(IAdaptable element)

internalGetPropertyDescriptors

protected IPropertyDescriptor[] internalGetPropertyDescriptors()

internalGetPropertyValue

protected Object internalGetPropertyValue(Object key)

getAbsoluteParentName

public String getAbsoluteParentName(Object element)

getRemoteParent

public Object getRemoteParent(Object element,
                              IProgressMonitor monitor)
                       throws Exception
Throws:
Exception

getRemoteParentNamesInUse

public String[] getRemoteParentNamesInUse(Object element,
                                          IProgressMonitor monitor)
                                   throws Exception
Throws:
Exception

refreshRemoteObject

public boolean refreshRemoteObject(Object oldElement,
                                   Object newElement)

getRemoteSubType

public String getRemoteSubType(Object element)

getRemoteType

public String getRemoteType(Object element)

getRemoteTypeCategory

public String getRemoteTypeCategory(Object element)

getSubSystemConfigurationId

public String getSubSystemConfigurationId(Object element)

getText

public String getText(Object element)

getAbsoluteName

public String getAbsoluteName(Object object)

getSubSystem

public SubSystem getSubSystem(Object element)

getPropertyDescriptors

public IPropertyDescriptor[] getPropertyDescriptors()
Returns the current collection of property descriptors for message description objects. We override this versus using the inherited behavior, as we don't want the usual default properties.

Returns:
an array containing all descriptors.

getPropertyValue

public Object getPropertyValue(Object property)
Returns the current value for the named property. The parent handles P_TEXT and P_TYPE only, and we augment that here. We override this versus using the inherited behavior, as we don't want the usual default properties.

Parameters:
property - the name of the property as named by its property descriptor
Returns:
the current value of the property

getUniquePropertyDescriptors

public IPropertyDescriptor[] getUniquePropertyDescriptors()

canDelete

public boolean canDelete(Object element)

doDelete

public boolean doDelete(Shell shell,
                        Object element,
                        IProgressMonitor monitor)
                 throws Exception
Throws:
Exception

showDelete

public boolean showDelete(Object element)

showRefresh

public boolean showRefresh(Object element)

showRename

public boolean showRename(Object element)

getStatusLineText

public String getStatusLineText(Object element)

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.