Class AbstractConnectionPattern

    • Method Detail

      • addGraphicalRepresentation

        protected Connection addGraphicalRepresentation​(IConnectionContext context,
                                                        java.lang.Object newObject)
        Adds the graphical representation of the given new Object with the information in the given IConnectionContext.
        Parameters:
        context - The connection context for the new object
        newObject - The new object instance itself
        Returns:
        The Connection prictogram element instance created for the connection domain object.
      • layoutPictogramElement

        protected void layoutPictogramElement​(PictogramElement pe)
        Helper method that triggers a layout of the given PictogramElement. The default implementation queries the feature provider and tries to find a functionality either in the pattern of an additional AbstractLayoutFeature that can handle the request and triggers the operation.
        Parameters:
        pe - The pictogram element to layout
      • updatePictogramElement

        protected void updatePictogramElement​(PictogramElement pe)
        Helper method that triggers an update of the given PictogramElement. The default implementation queries the feature provider and tries to find a functionality either in the pattern of an additional AbstractUpdateFeature that can handle the request and triggers the operation.
        Parameters:
        pe - The pictogram element to update
      • getCreateDescription

        public java.lang.String getCreateDescription()
        Client should override to return a string description of the type of domain object that is created with this pattern. The Graphiti framework uses this information to fill a tooltip for the creation tool entry in the palette. The default implementation simply returns null which indicates that no tooltip shall be displayed.
        Specified by:
        getCreateDescription in interface ICreateInfo
        Returns:
        A String holding the tooltip
      • getCreateImageId

        public java.lang.String getCreateImageId()
        Client should override to return a string id of the the image icon for the domain object that is created with this pattern. The Graphiti framework uses this information to add an icon to the creation tool entry in the palette. The default implementation simply returns null which indicates that no icon shall be displayed.
        Specified by:
        getCreateImageId in interface ICreateInfo
        Returns:
        A String holding the id of the icon as defined in the AbstractImageProvider.
      • getCreateLargeImageId

        public java.lang.String getCreateLargeImageId()
        Client should override to return a string id of the the large image icon for the domain object that is created with this pattern. The Graphiti framework uses this information to add a large icon to the creation tool entry in the palette. The default implementation simply returns null which indicates that no icon shall be displayed.
        Specified by:
        getCreateLargeImageId in interface ICreateInfo
        Returns:
        A String holding the id of the large icon as defined in the AbstractImageProvider.
      • getCreateName

        public java.lang.String getCreateName()
        Client should override to return the name of the domain object that is created with this pattern. The Graphiti framework uses this information to fill the text for the creation tool entry in the palette. The default implementation simply returns null which results in an empty entry in the palette.
        Specified by:
        getCreateName in interface ICreateInfo
        Returns:
        A String holding the name of the domain object.