예제 #1
0
    /** @generated */
    private void createContents() {

      fFigureStateVariableLabelFigure = new WrappingLabel();

      fFigureStateVariableLabelFigure.setText("StateVariable");
      fFigureStateVariableLabelFigure.setMaximumSize(
          new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50)));

      this.add(fFigureStateVariableLabelFigure);

      fStateVariableInStateConstraintsCompartmentFigure = new RectangleFigure();

      fStateVariableInStateConstraintsCompartmentFigure.setOutline(false);

      this.add(fStateVariableInStateConstraintsCompartmentFigure);

      fStateVariableOutStateConstraintsCompartmentFigure = new RectangleFigure();

      fStateVariableOutStateConstraintsCompartmentFigure.setOutline(false);

      this.add(fStateVariableOutStateConstraintsCompartmentFigure);

      fStateVariableStateUpdatesCompartmentFigure = new RectangleFigure();

      fStateVariableStateUpdatesCompartmentFigure.setOutline(false);

      this.add(fStateVariableStateUpdatesCompartmentFigure);

      fStateVariableInfluencedByCompartmentFigure = new RectangleFigure();

      fStateVariableInfluencedByCompartmentFigure.setOutline(false);

      this.add(fStateVariableInfluencedByCompartmentFigure);
    }
 @Override
 protected IFigure createFigure() {
   final WrappingLabel label = new HighlightingWrappingLabel();
   label.setTextWrap(true);
   label.setAlignment(PositionConstants.LEFT | PositionConstants.TOP);
   return label;
 }
 /**
  * Refreshes the label of the figure associated to the specified edit part
  *
  * @param editPart the edit part managing the refreshed figure
  */
 public void refreshEditPartDisplay(GraphicalEditPart editPart) {
   IFigure figure = editPart.getFigure();
   // computes the icon to be displayed
   final Collection<Image> imageToDisplay = stereotypeIconsToDisplay(editPart);
   // should check if edit part has to display the element icon or not
   if (AppearanceHelper.showElementIcon((View) editPart.getModel())) {
     imageToDisplay.add(getImage(editPart));
   }
   // for each element in the list of stereotype icon, adds it to the icons
   // list of the
   // wrapping label
   // problem (RS - CEA LIST): more icons were displayed before refresh:
   // has to clean
   // problem 2 (RS - CEA LIST): no method to know how many icons were
   // displayed => should fix
   // a max number ?!
   // solution: set all images to null, and then add the correct icons
   int i = 0;
   if (figure instanceof WrappingLabel) {
     while (((WrappingLabel) figure).getIcon(i) != null) {
       ((WrappingLabel) figure).setIcon(null, i);
       i++;
     }
     i = 0;
     for (Image image : imageToDisplay) {
       ((WrappingLabel) figure).setIcon(image, i);
       i++;
     }
     ((WrappingLabel) figure).setText(labelToDisplay(editPart));
   }
 }
    /** @generated */
    private void createContents() {

      fFigureLinkMappingNameFigure = new WrappingLabel();
      fFigureLinkMappingNameFigure.setText("<..>");

      fFigureLinkMappingNameFigure.setFont(FFIGURELINKMAPPINGNAMEFIGURE_FONT);

      this.add(fFigureLinkMappingNameFigure);
    }
    /** @generated */
    private void createContents() {

      fFigureInformationElementLabelFigure = new WrappingLabel();
      fFigureInformationElementLabelFigure.setText("InformationElement");

      this.add(fFigureInformationElementLabelFigure);

      fFigureModelElementDescriptionLabelFigure = new WrappingLabel();
      fFigureModelElementDescriptionLabelFigure.setText("");

      this.add(fFigureModelElementDescriptionLabelFigure);
    }
    /** @generated */
    private void createContents() {

      fFigureIPAddressRangeNameFigure = new WrappingLabel();
      fFigureIPAddressRangeNameFigure.setText("< IPAddressRange >");

      this.add(fFigureIPAddressRangeNameFigure);

      fFigureIPAddressRangeElementNameFigure = new WrappingLabel();
      fFigureIPAddressRangeElementNameFigure.setText("");

      this.add(fFigureIPAddressRangeElementNameFigure);
    }
예제 #7
0
    /** @generated */
    private void createContents() {

      fFigureUniModemNameFigure = new WrappingLabel();
      fFigureUniModemNameFigure.setText("< UniModem >");

      this.add(fFigureUniModemNameFigure);

      fFigureUniModemElementNameFigure = new WrappingLabel();
      fFigureUniModemElementNameFigure.setText("");

      this.add(fFigureUniModemElementNameFigure);
    }
    /** @generated */
    private void createContents() {

      fFigureLargeItemArticleLabel = new WrappingLabel();
      fFigureLargeItemArticleLabel.setText("");

      this.add(fFigureLargeItemArticleLabel);

      fFigureLargeItemWeightLabel = new WrappingLabel();
      fFigureLargeItemWeightLabel.setText("");

      this.add(fFigureLargeItemWeightLabel);
    }
    /** @generated */
    private void createContents() {

      fFigureIPConnectivitySubnetNameFigure = new WrappingLabel();
      fFigureIPConnectivitySubnetNameFigure.setText("< IPConnectivitySubnet >");

      this.add(fFigureIPConnectivitySubnetNameFigure);

      fFigureIPConnectivitySubnetElementNameFigure = new WrappingLabel();
      fFigureIPConnectivitySubnetElementNameFigure.setText("");

      this.add(fFigureIPConnectivitySubnetElementNameFigure);
    }
예제 #10
0
    /** @generated */
    private void createContents() {

      fFigureEndNodeModeFigure = new WrappingLabel();

      fFigureEndNodeModeFigure.setText("<...>");

      this.add(fFigureEndNodeModeFigure);

      fFigureEndNodeNameLabel = new WrappingLabel();

      fFigureEndNodeNameLabel.setText("End");

      this.add(fFigureEndNodeNameLabel);
    }
    /** @generated */
    private void createContents() {

      fFigureSplitJoinLabelFigure = new WrappingLabel();
      fFigureSplitJoinLabelFigure.setText("SplitJoin");
      fFigureSplitJoinLabelFigure.setMaximumSize(
          new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50)));

      this.add(fFigureSplitJoinLabelFigure);

      fSplitJoinComponentsCompartmentFigure = new RectangleFigure();
      fSplitJoinComponentsCompartmentFigure.setOutline(false);
      fSplitJoinComponentsCompartmentFigure.setLineWidth(1);

      this.add(fSplitJoinComponentsCompartmentFigure);
    }
예제 #12
0
    /** @generated */
    private void createContents() {

      fFigureDeploymentSetLabelFigure = new WrappingLabel();

      fFigureDeploymentSetLabelFigure.setText("DeploymentSet");
      fFigureDeploymentSetLabelFigure.setMaximumSize(
          new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50)));

      this.add(fFigureDeploymentSetLabelFigure);

      fDeploymentSetDeploymentsCompartmentFigure = new RectangleFigure();

      fDeploymentSetDeploymentsCompartmentFigure.setOutline(false);

      this.add(fDeploymentSetDeploymentsCompartmentFigure);
    }
    /** @generated */
    private void createContents() {

      fFigureDiagramElementFigure_NameLabel = new WrappingLabel();
      fFigureDiagramElementFigure_NameLabel.setText("");

      this.add(fFigureDiagramElementFigure_NameLabel);
    }
예제 #14
0
    /** @generated */
    private void createContents() {

      fFigureBRTUtteranceLabelFigure = new WrappingLabel();
      fFigureBRTUtteranceLabelFigure.setText("");

      this.add(fFigureBRTUtteranceLabelFigure);
    }
    /** @generated */
    private void createContents() {

      fFigureLoadModelTaskLabelFigure = new WrappingLabel();
      fFigureLoadModelTaskLabelFigure.setText("LoadModelTask");

      this.add(fFigureLoadModelTaskLabelFigure);
    }
예제 #16
0
    /** @generated */
    private void createContents() {

      fFigureTextInputLabelExpressionFigure = new WrappingLabel();

      fFigureTextInputLabelExpressionFigure.setText("<label-expression>");

      this.add(fFigureTextInputLabelExpressionFigure, BorderLayout.TOP);

      fFigureTextInputValueExpression = new WrappingLabel();

      fFigureTextInputValueExpression.setText("<value-expression>");
      fFigureTextInputValueExpression.setBorder(
          new LineBorder(FFIGURETEXTINPUTVALUEEXPRESSION_BORDER, getMapMode().DPtoLP(1)));

      this.add(fFigureTextInputValueExpression, BorderLayout.BOTTOM);
    }
    /** @generated */
    private void createContents() {

      fFigureLinkHostedDependenciesNameFigure = new WrappingLabel();
      fFigureLinkHostedDependenciesNameFigure.setText("< HostedDependencies >");

      this.add(fFigureLinkHostedDependenciesNameFigure);
    }
예제 #18
0
    /** @generated */
    private void createContents() {

      fFigureMAVONodeLabelFigure = new WrappingLabel();

      fFigureMAVONodeLabelFigure.setText("");
      fFigureMAVONodeLabelFigure.setMaximumSize(
          new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50)));

      this.add(fFigureMAVONodeLabelFigure);

      fFigureNodeLabelFigure = new WrappingLabel();

      fFigureNodeLabelFigure.setText("Node");

      this.add(fFigureNodeLabelFigure);
    }
예제 #19
0
    /** @generated */
    private void createContents() {

      fFigureEBProcNameFigure = new WrappingLabel();
      fFigureEBProcNameFigure.setText("<...>");

      this.add(fFigureEBProcNameFigure);
    }
 /** @generated */
 protected void setLabelIconHelper(IFigure figure, Image icon) {
   if (figure instanceof WrappingLabel) {
     ((WrappingLabel) figure).setIcon(icon);
   } else {
     ((Label) figure).setIcon(icon);
   }
 }
    /** @generated */
    private void createContents() {

      fFigureLinkDeviceConnectionNameFigure = new WrappingLabel();
      fFigureLinkDeviceConnectionNameFigure.setText("< DeviceConnection >");

      this.add(fFigureLinkDeviceConnectionNameFigure);
    }
 /** @generated */
 protected void setLabelTextHelper(IFigure figure, String text) {
   if (figure instanceof WrappingLabel) {
     ((WrappingLabel) figure).setText(text);
   } else {
     ((Label) figure).setText(text);
   }
 }
    /** @generated */
    private void createContents() {

      fFigureCompensateFigureNameLabel = new WrappingLabel();
      fFigureCompensateFigureNameLabel.setText("");

      this.add(fFigureCompensateFigureNameLabel);
    }
    /** @generated */
    private void createContents() {

      fFigureCompositeActionFigureNameLabel = new WrappingLabel();
      fFigureCompositeActionFigureNameLabel.setText("Composite Action");

      this.add(fFigureCompositeActionFigureNameLabel);
    }
예제 #25
0
    /** @generated */
    private void createContents() {

      fFigureRentalLabelFigure = new WrappingLabel();
      fFigureRentalLabelFigure.setText("Rental");

      this.add(fFigureRentalLabelFigure);
    }
예제 #26
0
    /** @generated */
    private void createContents() {

      fFigureOpenLabelFigure = new WrappingLabel();

      fFigureOpenLabelFigure.setText("Open");

      this.add(fFigureOpenLabelFigure);
    }
예제 #27
0
  /** @generated */
  @Override
  protected void createContents() {
    super.createContents();
    nameLabel = new PapyrusWrappingLabel();
    nameLabel.setText("");

    this.add(nameLabel);
  }
    /** @generated */
    private void createContents() {

      fFigureCallProcedureLabelFigure = new WrappingLabel();

      fFigureCallProcedureLabelFigure.setText("CallProcedure");

      this.add(fFigureCallProcedureLabelFigure);
    }
    /** @generated */
    private void createContents() {

      fName = new WrappingLabel();

      fName.setText("");

      this.add(fName);
    }
    /** @generated */
    private void createContents() {

      fFigureDataTypeLabelFigure = new WrappingLabel();

      fFigureDataTypeLabelFigure.setText("Data Type");

      this.add(fFigureDataTypeLabelFigure);
    }