Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ebeb

Pages: [1] 2 3 ... 12
1
Quote
I now understand that, via Sparx support

"The RTF editor is a third party addin - so there is limitations on the scope of change that can made this (like table formatting)."

Interesting...

Ok, then find a fourth party to provide a better plugin!  ::)

2
Quote
There is some anomoly between the RTF styles Heading1 etc and Word Heading1

This is not the only anomaly the RTF editor has  8-)

Ok, nevermind...

I'd appreciate getting some more infos :)

Thanks!

3
Hey Phil,

thanks for your reply. I never thought it this way. I tried to get "everything" into the template editor rather then using its output in word. This is a very good idea because you can use the same Word-Templates which always look the same. I new managed to get the RTF templates to look exactly like our company templates.

But one question:

How are the styles linked? Did you create special RTF templates have at least equally named style template or is that not important? E.g headings or table border and patterns? Do they automatically apply when importing?

I hope I made myself clear about want I am thinking of...:) maybe you could outline these issues!

Thanks


4
Suggestions and Requests / Please Rewrite the RTF (template) Editor
« on: July 20, 2009, 07:10:20 pm »
Hi,

as I already stated in the forum, I'm not a big fan of the EA RTF template editor. Why? see here:

1.) It simply doesn't fit to the very neat look&feel of EA. The RTF editor  looks like 10years old and maybe it is. But, if it would work, I'd be OK with it.

2.) It is buggy and unpredictable. You have to be very carefull what you do.

  • Undo is not supported all time. After adding a new section, Undo is disabled/Undo record is cleared.
  • After formatting a field using styles, the field gets corrupted and won't work until you delete it and reinsert.
  • Word style won't be used correctly, especially the number style of headings. Sometimes it will be displayed correctly in the editor, but not in the RTF output.
  • Using vector lines leads to expanded tables
  • Table border widths is not displayed correctly in RTF print preview/PDF output.
  • The whole workflow with inserting sections using a list and then inserting field using right click is not very intuitive. You can edit the sections text and corrupt it easily by doing so and the field are not editable.
  • Modifying the header & footer is really cumbersome. If want to edit, you have to display the header first (why is that not default?) and then click on Edit Header/Footer. Image you want to modify, and see how it looks on the final generated document and then go back to the template editor, you have to do it all over again because it can't remeber your view settings.

I don't have the 100% solution for these issues, but I don't have to. I can only say that this editor is highly uncomfortable and needs some make-up as well as under-the-hood-tuning.

I'd rather edit some XML as a teplate if the result is predictable than using the WYSIWYG editor that messes around with styles, sections and fields.

Jan

5
General Board / Re: RTF looses style when inserting line breaks
« on: July 16, 2013, 04:35:28 pm »
Hi,

thanks for your quick reply. However, I think according to this http://www.sparxsystems.com/products/ea/8/history.html, Build 864 is the latest Build of Release 8.

This means, we need to upgrade to 9 or 10?

6
General Board / RTF looses style when inserting line breaks
« on: July 15, 2013, 07:06:25 pm »
Hi, our company is running EA 8.0.864 and I'm experiencing issues with the RTF generator and respectively, the RTF editor.

I've set the "Normal" style to Calibri (Actually doesn't matter as long as it is not Times New Roman). I've used it for all note fields such as Glossary terms as well as package, element and diagram notes.

For all of them, I get the following behavior:

When I enter some text with no line breaks, everything in the generated RTF looks great as I expected it. As soon as I insert a line break to separate two paragraphs within notes or glossary terms, something really strange happens in the generated RTF.
ALL paragraphs except the LAST one are formatted as Times New Roman. The last LAST paragraph is formatted correctly.

If the FIRST would be correct, I would assume that it is something like the Word feature "apply style to following paragraphs", but the opposite is happening and I have absolutely no idea.

Does anybody actually have an idea, what's going wrong and how I could fix this? Even some guesses might help!

Thanks a lot!

7
General Board / How to disable member generation for iterfaces?
« on: March 31, 2010, 02:26:28 am »
Hi,

I'm still struggeling with code generation. Since now the transformation works (as far as I can see), I ran the code generation and imported it in NetBeans.

I saw that EA generates private member variables like e.g...
Code: [Select]
private ProtocolListener m_ProtocolListener;...if you have a directed association in the current class to (in this case) an interface called ProtocolListener.

But obviously, private methods are not allowed in interfaces. Actually, I don't want them at all.

So how can I disable it. I only found a way to do so for undirected associations.

Thanks,

Jan

8
General Board / Re: Transformation:How to avoid getters for static
« on: March 31, 2010, 01:59:20 am »
If anybody is interested in the resulting templates, here they are (I don't know if it is the best way to do it and handle all other cases, but it works for me):

Propertires:
Code: [Select]
%if attConst=="T" and attStatic=="T"%
%Attribute%
%else%
$attName=$parameter1
$type=$parameter2
$propertyName=$attName
$propertyName=%REMOVE_PREFIX($propertyName,genOptPropertyPrefix)%
%if genOptGenCapitalisedProperties=="T"%
$propertyName=%CONVERT_NAME($propertyName, "camel case", "pascal case")%
%endIf%
Operation
{
  %TRANSFORM_REFERENCE()%
  name=%qt%%genOptJavaGetPrefix%$propertyName%qt%
  stereotype="property get"
  scope="Public"
  type=%qt%$type%qt%
  code=%qt%return $attName;%qt%
  Tag{name="attribute_name" value=%qt%$attName%qt%}
}

Operation
{
  %TRANSFORM_REFERENCE()%
  name=%qt%%genOptJavaSetPrefix%$propertyName%qt%
  stereotype="property set"
  scope="Public"
  type="void"
  Parameter
  {
    name="newVal"
    type=%qt%$type%qt%
  }
  code=%qt%$attName = newVal;%qt%
  Tag{name="attribute_name" value=%qt%$attName%qt%}
}
%endIf%

Attribute:
Code: [Select]
Attribute
{
  %TRANSFORM_REFERENCE()%
%if attConst=="T" and attStatic=="T"%
  %TRANSFORM_CURRENT("type","stereotype")%
%else%
  %TRANSFORM_CURRENT("scope","type","stereotype")%
  scope=%qt%%attScope == "Public" ? "Private" : value%%qt%
%endIf%
  type=%qt%%CONVERT_TYPE("Java",attType)%%qt%
%if classStereotype=="enumeration"%
  stereotype="enum"
%else%
  stereotype=%qt%%attStereotype%%qt%
%endIf%
}

9
General Board / Re: Transformation:How to avoid getters for static
« on: March 31, 2010, 01:56:55 am »
Tom, great suggestion! :)

Using this output, I saw that all entries in the attribute section were actually created TWICE. One time Public, one time private. So, in the drow down it obviously displayed the first one, in the other view the second scope defintion.

Using this information, I found out that I had inserted one empty elseIf statement. This seems to be always true if empty (not so good idea actually), both branches were executed.

Now it works!!

10
General Board / Re: Transformation:How to avoid getters for static
« on: March 30, 2010, 10:08:54 pm »
Next update:

My fault, it has to be no $ (which is the classifier for variables). So it should work like this:
Code: [Select]
%if attConst=="T" and attStatic=="T"%
For the general branch it works. In the "Properties2 template it sucessfully avoids creating getters and setters and jump directly to the "Attributes" template.

But when I transform one of my classes that includes public static const attributes, the result is a priviate attribute after the transformation.

Actually it is quite strange, because im currently not able to change the scope. the drop down box is disabled. However, it shows "Public" in the disabled box but a lock icon infront of the attribute in the attributes dialog and "-" character infront of the attribute in the diagram. If I create a new attribute, the scope drop down is also disabled and set to public there is no lock icon and the "+" is shown in the diagram view.

Very strange.

I don't see anything in the template that could cause this behaviour. the only things of which I am not sure what they are doing in detail are the TRANSFORM_REFERENCE() and TRANSFORM_CURRENT macros.

Can anyone help?

11
General Board / Re: Transformation:How to avoid getters for static
« on: March 30, 2010, 08:16:41 pm »
Actually, I dove a little deeping into the template sea. If found out, that if a check box is checked, the value is "T" otherwise its empty (so. I guess ""). thus, my comparsion !=0 was wrong and thus it was always true.

From my point of view, it should be
Code: [Select]
%if $attConst=="T" and $attStatic=="T"%instead.
But it doesn't work. The conditionseems to be always false even if I replace and by or. But the attributes of the class I transform are definitely static const!

So what's the problem here? What am I doing wrong? Please help!

12
General Board / Re: Transformation:How to avoid getters for static
« on: March 29, 2010, 09:05:30 pm »
For anyone who's interested:

I managed to do it myself. I think AFAIK there is no checkbox in the options. I found the "problem" in the transformation templates. I edited the Java templates (Settings->Transformation templates).

The problem is, that in the class template, there is a check if its a Class. If not (as in my case an Interface) it calls the "Attribute__AsProperties" macro. This creates the getters and setters by callin the "Properties" macro.

I inserted a new condition in this template to check whether it's static const. If yes, it will only call the "Attribute" macro and end. see here (Only the biginning of the template):
Code: [Select]
$attName=$parameter1
$type=$parameter2
$propertyName=$attName
$propertyName=%REMOVE_PREFIX($propertyName,genOptPropertyPrefix)%
%if $attConst != 0 and $attStatic != 0%
%Attribute%
%endTemplate%
%endIf%
%if genOptGenCapitalisedProperties=="T"%
After doing this, I found a second thing that bothers me: Public constants are being transformed into private attributes. I changed the "Attribute" template as follows:
Code: [Select]
Attribute
{
  %TRANSFORM_REFERENCE()%
  %TRANSFORM_CURRENT("scope","type","stereotype")%
  %if $attConst != 0 and $attStatic != 0%
  scope=%qt%value%qt%
  %elseIf%
  scope=%qt%%attScope == "Public" ? "Private" : value%%qt%
  %endIf%
  type=%qt%%CONVERT_TYPE("Java",attType)%%qt%
%if classStereotype=="enumeration"%
  stereotype="enum"
%else%
  stereotype=%qt%%attStereotype%%qt%
%endIf%
}

13
General Board / Transformation:How to avoid getters for static att
« on: March 27, 2010, 12:53:46 am »
Hi,

I just did a transformation from PIM to a PSM (Java). It created everything nicely except constants. I used a lot of public static const attributes (like THIS_IS_A_CONSTANT). After the transformation, these attributes are gone and instead there have been getters and setters created (like getTHIS-IS_A_CONSTANT) which is not what I want and it does not even make sense to create a setter for a const attribute.

How can I avoid that? In the manual it say I should look in the Java Specs in the options dialog. But there I can only seet the name of the prefix.

What can I do?

Thanks, Jan

14
General Board / Re: How to include exposed interfaces in RTF docs?
« on: March 23, 2010, 09:46:26 pm »
Question is still open... :)

Any ideas?

15
General Board / How to include exposed interfaces in RTF docs?
« on: February 11, 2010, 02:22:48 am »
Simple question:

I have a component with an exposed interface and I want it and its notes to appear in the RTF document. I couldn't find any section in the RTF editor that says "exposed interfaces" or similar and with normal package/element/sub elements it doesn't work.

Any ideas?

Thanks, Jan

Pages: [1] 2 3 ... 12