Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » use another attribute for cross-references instead of "href"
use another attribute for cross-references instead of "href" [message #429392] Wed, 22 April 2009 06:41 Go to next message
Robert Driesner is currently offline Robert DriesnerFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,
is it possible to override the loading of external references instead of
using the href attribute.

<WizardPage library="" path="">

We have already attributes which defines where the external page is
located.
The path attribute is also not a correct URI.

Thanks and best regards,
Robert
Re: use another attribute for cross-references instead of "href" [message #429395 is a reply to message #429392] Wed, 22 April 2009 11:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Robert,

Comments below.

Robert Driesner wrote:
> Hi,
> is it possible to override the loading of external references instead
> of using the href attribute.
Where there's a will there's a way, but not necessarily an easy way.
Pretty much anything is possible if you specialize the XMLHandler and
XMLSaveImpl.
>
> <WizardPage library="" path="">
>
> We have already attributes which defines where the external page is
> located.
> The path attribute is also not a correct URI.
Is there a schema for your syntax?
>
> Thanks and best regards,
> Robert
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: use another attribute for cross-references instead of "href" [message #429398 is a reply to message #429395] Wed, 22 April 2009 11:45 Go to previous messageGo to next message
Robert Driesner is currently offline Robert DriesnerFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Ed,
I?m using XML schema to create the genmodel and this two attributes are also
defined for the complexType.

Best regards,
Robert

"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:gsmtqk$2dh$1@build.eclipse.org...
> Robert,
>
> Comments below.
>
> Robert Driesner wrote:
>> Hi,
>> is it possible to override the loading of external references instead of
>> using the href attribute.
> Where there's a will there's a way, but not necessarily an easy way.
> Pretty much anything is possible if you specialize the XMLHandler and
> XMLSaveImpl.
>>
>> <WizardPage library="" path="">
>>
>> We have already attributes which defines where the external page is
>> located.
>> The path attribute is also not a correct URI.
> Is there a schema for your syntax?
>>
>> Thanks and best regards,
>> Robert
>>
Re: use another attribute for cross-references instead of "href" [message #429403 is a reply to message #429398] Wed, 22 April 2009 13:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040509010205050300040205
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Robert,

I can imagine taking the approach of defining a getter that behaves like
an EReference feature but looks at the library and path values to
navigate to the right wizard page. You could even have a setter that
sets the library and path attributes when a wizard page instance is set,
but of course you then have a tricky problem if these value depend on
attributes on the referenced wizard page, which could change
independently. But maybe that's fine.


Robert Driesner wrote:
> Hi Ed,
> I?m using XML schema to create the genmodel and this two attributes are also
> defined for the complexType.
>
> Best regards,
> Robert
>
> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
> news:gsmtqk$2dh$1@build.eclipse.org...
>
>> Robert,
>>
>> Comments below.
>>
>> Robert Driesner wrote:
>>
>>> Hi,
>>> is it possible to override the loading of external references instead of
>>> using the href attribute.
>>>
>> Where there's a will there's a way, but not necessarily an easy way.
>> Pretty much anything is possible if you specialize the XMLHandler and
>> XMLSaveImpl.
>>
>>> <WizardPage library="" path="">
>>>
>>> We have already attributes which defines where the external page is
>>> located.
>>> The path attribute is also not a correct URI.
>>>
>> Is there a schema for your syntax?
>>
>>> Thanks and best regards,
>>> Robert
>>>
>>>
>
>
>

--------------040509010205050300040205
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Robert,<br>
<br>
I can imagine taking the approach of defining a getter that behaves
like an EReference feature but looks at the library and path values to
navigate to the right wizard page.&nbsp; You could even have a setter that
sets the library and path attributes when a wizard page instance is
set, but of course you then have a tricky problem if these value depend
on attributes on the referenced wizard page, which could change
independently.&nbsp; But maybe that's fine. <br>
<br>
<br>
Robert Driesner wrote:
<blockquote cite="mid:gsn01k$kr6$1@build.eclipse.org" type="cite">
<pre wrap="">Hi Ed,
I?m using XML schema to create the genmodel and this two attributes are also
defined for the complexType.

Best regards,
Robert

"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:Ed.Merks@gmail.com">&lt;Ed.Merks@gmail.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:gsmtqk$2dh$1@build.eclipse.org">news:gsmtqk$2dh$1@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Robert,

Comments below.

Robert Driesner wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
is it possible to override the loading of external references instead of
using the href attribute.
</pre>
</blockquote>
<pre wrap="">Where there's a will there's a way, but not necessarily an easy way.
Pretty much anything is possible if you specialize the XMLHandler and
XMLSaveImpl.
</pre>
<blockquote type="cite">
<pre wrap="">&lt;WizardPage library="" path=""&gt;

We have already attributes which defines where the external page is
located.
The path attribute is also not a correct URI.
</pre>
</blockquote>
<pre wrap="">Is there a schema for your syntax?
</pre>
<blockquote type="cite">
<pre wrap="">Thanks and best regards,
Robert

</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
</body>
</html>

--------------040509010205050300040205--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: use another attribute for cross-references instead of "href" [message #429405 is a reply to message #429403] Wed, 22 April 2009 13:36 Go to previous messageGo to next message
Robert Driesner is currently offline Robert DriesnerFriend
Messages: 5
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_010B_01C9C360.12DDC3D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ed,

the <WizardPage> tag can be an internal object or an external. If the =
path and library attribute is defined then the WizardPage is external =
and the content has to be readed from referenced file. External objects =
should be only be shown in readonly mode. The attributes library and =
path are only in the file which references the external file. Library =
attribute is only filled in if the file is located in another project.

File1

<Wizard>
<WizardPage>
<WizardContainer/>
</WizardPage>
<WizardPage library=3D"lib" path=3D"File2"/>
</Wizard>

File2

<WizardPage>
<WizardContainer/>
<WizardContainer/>
</WizardPage>

Regards, Robert
"Ed Merks" <Ed.Merks@gmail.com> wrote in message =
news:gsn54f$eqs$1@build.eclipse.org...
Robert,

I can imagine taking the approach of defining a getter that behaves =
like an EReference feature but looks at the library and path values to =
navigate to the right wizard page. You could even have a setter that =
sets the library and path attributes when a wizard page instance is set, =
but of course you then have a tricky problem if these value depend on =
attributes on the referenced wizard page, which could change =
independently. But maybe that's fine.=20


Robert Driesner wrote:=20
Hi Ed,
I?m using XML schema to create the genmodel and this two attributes are =
also=20
defined for the complexType.

Best regards,
Robert

"Ed Merks" <Ed.Merks@gmail.com> wrote in message=20
news:gsmtqk$2dh$1@build.eclipse.org...
Robert,

Comments below.

Robert Driesner wrote:
Hi,
is it possible to override the loading of external references instead of =

using the href attribute.
Where there's a will there's a way, but not necessarily an easy =
way.=20
Pretty much anything is possible if you specialize the XMLHandler and=20
XMLSaveImpl.
<WizardPage library=3D"" path=3D"">

We have already attributes which defines where the external page is=20
located.
The path attribute is also not a correct URI.
Is there a schema for your syntax?
Thanks and best regards,
Robert

=20


------=_NextPart_000_010B_01C9C360.12DDC3D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3492" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the &lt;WizardPage&gt; tag can be an =
internal=20
object or an external. If the path and library attribute is defined then =
the=20
WizardPage is external and the content has to be readed from referenced =
file.=20
External objects should be only be shown in readonly mode. The =
attributes=20
library and path are only in the file which references the external =
file.=20
Library attribute is only filled in if the file is located in another=20
project.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>File1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;Wizard&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&lt;WizardPage&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&lt;WizardContainer/</FONT><FONT face=3DArial size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&lt;/WizardPage&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &lt;WizardPage =
library=3D"lib"=20
path=3D"File2"/&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/Wizard&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>File2</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;WizardPage&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&lt;WizardContainer/<FONT=20
face=3DArial size=3D2>&gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&lt;WizardContainer/<FONT=20
face=3DArial size=3D2>&gt;</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/WizardPage&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards, Robert</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A=20
href=3D"mailto:Ed.Merks@gmail.com">Ed.Merks@gmail.com</A>&gt; wrote in =
message=20
<A=20
=
href=3D"news:gsn54f$eqs$1@build.eclipse.org">news:gsn54f$eqs$1@build.ecli=
pse.org</A>...</DIV>Robert,<BR><BR>I=20
can imagine taking the approach of defining a getter that behaves like =
an=20
EReference feature but looks at the library and path values to =
navigate to the=20
right wizard page.&nbsp; You could even have a setter that sets the =
library=20
and path attributes when a wizard page instance is set, but of course =
you then=20
have a tricky problem if these value depend on attributes on the =
referenced=20
wizard page, which could change independently.&nbsp; But maybe that's =
fine.=20
<BR><BR><BR>Robert Driesner wrote:=20
<BLOCKQUOTE cite=3Dmid:gsn01k$kr6$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi Ed,
I?m using XML schema to create the genmodel and this two attributes are =
also=20
defined for the complexType.

Best regards,
Robert

"Ed Merks" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:Ed.Merks@gmail.com">&lt;Ed.Merks@gmail.com&gt;</A> wrote =
in message=20
<A class=3Dmoz-txt-link-freetext =
href=3D"news:gsmtqk$2dh$1@build.eclipse.org">news:gsmtqk$2dh$1@build.ecli=
pse.org</A>...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Robert,

Comments below.

Robert Driesner wrote:
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi,
is it possible to override the loading of external references instead of =

using the href attribute.
</PRE></BLOCKQUOTE><PRE wrap=3D"">Where there's a will there's a =
way, but not necessarily an easy way.=20
Pretty much anything is possible if you specialize the XMLHandler and=20
XMLSaveImpl.
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">&lt;WizardPage =
library=3D"" path=3D""&gt;

We have already attributes which defines where the external page is=20
located.
The path attribute is also not a correct URI.
</PRE></BLOCKQUOTE><PRE wrap=3D"">Is there a schema for your =
syntax?
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Thanks and best regards,
Robert

</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=3D""><!---->

</PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_010B_01C9C360.12DDC3D0--
Re: use another attribute for cross-references instead of "href" [message #429410 is a reply to message #429403] Wed, 22 April 2009 14:14 Go to previous messageGo to next message
Robert Driesner is currently offline Robert DriesnerFriend
Messages: 5
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_013A_01C9C365.66BEBFE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Ed,
I have overriden the getChildren from the corresponding ItemProvider. =
There I=B4m looking for the features path and library, load the =
referenced file and return the object from referenced file. It seems to =
work. Maybe you have a better idea.

Best regards,
Robert
"Ed Merks" <Ed.Merks@gmail.com> wrote in message =
news:gsn54f$eqs$1@build.eclipse.org...
Robert,

I can imagine taking the approach of defining a getter that behaves =
like an EReference feature but looks at the library and path values to =
navigate to the right wizard page. You could even have a setter that =
sets the library and path attributes when a wizard page instance is set, =
but of course you then have a tricky problem if these value depend on =
attributes on the referenced wizard page, which could change =
independently. But maybe that's fine.=20


Robert Driesner wrote:=20
Hi Ed,
I?m using XML schema to create the genmodel and this two attributes are =
also=20
defined for the complexType.

Best regards,
Robert

"Ed Merks" <Ed.Merks@gmail.com> wrote in message=20
news:gsmtqk$2dh$1@build.eclipse.org...
Robert,

Comments below.

Robert Driesner wrote:
Hi,
is it possible to override the loading of external references instead of =

using the href attribute.
Where there's a will there's a way, but not necessarily an easy =
way.=20
Pretty much anything is possible if you specialize the XMLHandler and=20
XMLSaveImpl.
<WizardPage library=3D"" path=3D"">

We have already attributes which defines where the external page is=20
located.
The path attribute is also not a correct URI.
Is there a schema for your syntax?
Thanks and best regards,
Robert

=20


------=_NextPart_000_013A_01C9C365.66BEBFE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3492" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have overriden the getChildren from =
the=20
corresponding ItemProvider. There I=B4m looking for the features path =
and library,=20
load the referenced file and return the object from referenced file. It =
seems to=20
work. Maybe you have a better idea.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Robert</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A=20
href=3D"mailto:Ed.Merks@gmail.com">Ed.Merks@gmail.com</A>&gt; wrote in =
message=20
<A=20
=
href=3D"news:gsn54f$eqs$1@build.eclipse.org">news:gsn54f$eqs$1@build.ecli=
pse.org</A>...</DIV>Robert,<BR><BR>I=20
can imagine taking the approach of defining a getter that behaves like =
an=20
EReference feature but looks at the library and path values to =
navigate to the=20
right wizard page.&nbsp; You could even have a setter that sets the =
library=20
and path attributes when a wizard page instance is set, but of course =
you then=20
have a tricky problem if these value depend on attributes on the =
referenced=20
wizard page, which could change independently.&nbsp; But maybe that's =
fine.=20
<BR><BR><BR>Robert Driesner wrote:=20
<BLOCKQUOTE cite=3Dmid:gsn01k$kr6$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi Ed,
I?m using XML schema to create the genmodel and this two attributes are =
also=20
defined for the complexType.

Best regards,
Robert

"Ed Merks" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:Ed.Merks@gmail.com">&lt;Ed.Merks@gmail.com&gt;</A> wrote =
in message=20
<A class=3Dmoz-txt-link-freetext =
href=3D"news:gsmtqk$2dh$1@build.eclipse.org">news:gsmtqk$2dh$1@build.ecli=
pse.org</A>...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Robert,

Comments below.

Robert Driesner wrote:
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi,
is it possible to override the loading of external references instead of =

using the href attribute.
</PRE></BLOCKQUOTE><PRE wrap=3D"">Where there's a will there's a =
way, but not necessarily an easy way.=20
Pretty much anything is possible if you specialize the XMLHandler and=20
XMLSaveImpl.
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">&lt;WizardPage =
library=3D"" path=3D""&gt;

We have already attributes which defines where the external page is=20
located.
The path attribute is also not a correct URI.
</PRE></BLOCKQUOTE><PRE wrap=3D"">Is there a schema for your =
syntax?
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Thanks and best regards,
Robert

</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=3D""><!---->

</PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_013A_01C9C365.66BEBFE0--
Re: use another attribute for cross-references instead of "href" [message #429412 is a reply to message #429410] Wed, 22 April 2009 15:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050203050804010601030003
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Robert,

I thought you wanted to do this directly on the model, not just in the
view, but if you only need it in the view, that approach you've outlined
sounds reasonable, though I wonder what should happen if the user
directly edits the attributes that indirectly would change the
referenced page...


Robert Driesner wrote:
> Hi Ed,
> I have overriden the getChildren from the corresponding ItemProvider.
> There I


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: use another attribute for cross-references instead of "href" [message #429428 is a reply to message #429412] Thu, 23 April 2009 06:21 Go to previous message
Robert Driesner is currently offline Robert DriesnerFriend
Messages: 5
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_017B_01C9C3EC.8794BDA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ed,
if I edit this attributes then changes will be stored in the referenced =
file. But I want provide only a readonly mode where the=20
attributes of external files cannot be change.
"Ed Merks" <Ed.Merks@gmail.com> wrote in message =
news:gsnbe8$sr8$2@build.eclipse.org...
Robert,

I thought you wanted to do this directly on the model, not just in the =
view, but if you only need it in the view, that approach you've outlined =
sounds reasonable, though I wonder what should happen if the user =
directly edits the attributes that indirectly would change the =
referenced page...


Robert Driesner wrote:=20
Hi Ed,
I have overriden the getChildren from the corresponding =
ItemProvider. There I=B4m looking for the features path and library, =
load the referenced file and return the object from referenced file. It =
seems to work. Maybe you have a better idea.

Best regards,
Robert
"Ed Merks" <Ed.Merks@gmail.com> wrote in message =
news:gsn54f$eqs$1@build.eclipse.org...
Robert,

I can imagine taking the approach of defining a getter that =
behaves like an EReference feature but looks at the library and path =
values to navigate to the right wizard page. You could even have a =
setter that sets the library and path attributes when a wizard page =
instance is set, but of course you then have a tricky problem if these =
value depend on attributes on the referenced wizard page, which could =
change independently. But maybe that's fine.=20


Robert Driesner wrote:=20
Hi Ed,
I?m using XML schema to create the genmodel and this two attributes are =
also=20
defined for the complexType.

Best regards,
Robert

"Ed Merks" <Ed.Merks@gmail.com> wrote in message=20
news:gsmtqk$2dh$1@build.eclipse.org...
Robert,

Comments below.

Robert Driesner wrote:
Hi,
is it possible to override the loading of external references instead of =

using the href attribute.
Where there's a will there's a way, but not necessarily an easy =
way.=20
Pretty much anything is possible if you specialize the XMLHandler and=20
XMLSaveImpl.
<WizardPage library=3D"" path=3D"">

We have already attributes which defines where the external page is=20
located.
The path attribute is also not a correct URI.
Is there a schema for your syntax?
Thanks and best regards,
Robert

=20


------=_NextPart_000_017B_01C9C3EC.8794BDA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3492" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>if I edit this attributes then changes =
will be=20
stored in the referenced file. But I want provide only a readonly mode =
where the=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>attributes of external files cannot be=20
change.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A=20
href=3D"mailto:Ed.Merks@gmail.com">Ed.Merks@gmail.com</A>&gt; wrote in =
message=20
<A=20
=
href=3D"news:gsnbe8$sr8$2@build.eclipse.org">news:gsnbe8$sr8$2@build.ecli=
pse.org</A>...</DIV>Robert,<BR><BR>I=20
thought you wanted to do this directly on the model, not just in the =
view, but=20
if you only need it in the view, that approach you've outlined sounds=20
reasonable, though I wonder what should happen if the user directly =
edits the=20
attributes that indirectly would change the referenced=20
page...<BR><BR><BR>Robert Driesner wrote:=20
<BLOCKQUOTE cite=3Dmid:gsn8o1$2jm$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.2900.3492" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have overriden the getChildren =
from the=20
corresponding ItemProvider. There I=B4m looking for the features =
path and=20
library, load the referenced file and return the object from =
referenced=20
file. It seems to work. Maybe you have a better idea.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Robert</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A href=3D"mailto:Ed.Merks@gmail.com"=20
moz-do-not-send=3D"true">Ed.Merks@gmail.com</A>&gt; wrote in =
message <A=20
href=3D"news:gsn54f$eqs$1@build.eclipse.org"=20
=
moz-do-not-send=3D"true">news:gsn54f$eqs$1@build.eclipse.org</A>...</DIV>=
Robert,<BR><BR>I=20
can imagine taking the approach of defining a getter that behaves =
like an=20
EReference feature but looks at the library and path values to =
navigate to=20
the right wizard page.&nbsp; You could even have a setter that =
sets the=20
library and path attributes when a wizard page instance is set, =
but of=20
course you then have a tricky problem if these value depend on =
attributes=20
on the referenced wizard page, which could change =
independently.&nbsp; But=20
maybe that's fine. <BR><BR><BR>Robert Driesner wrote:=20
<BLOCKQUOTE cite=3Dmid:gsn01k$kr6$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi Ed,
I?m using XML schema to create the genmodel and this two attributes are =
also=20
defined for the complexType.

Best regards,
Robert

"Ed Merks" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:Ed.Merks@gmail.com" =
moz-do-not-send=3D"true">&lt;Ed.Merks@gmail.com&gt;</A> wrote in message =

<A class=3Dmoz-txt-link-freetext =
href=3D"news:gsmtqk$2dh$1@build.eclipse.org" =
moz-do-not-send=3D"true">news:gsmtqk$2dh$1@build.eclipse.org</A>...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Robert,

Comments below.

Robert Driesner wrote:
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi,
is it possible to override the loading of external references instead of =

using the href attribute.
</PRE></BLOCKQUOTE><PRE wrap=3D"">Where there's a will there's a =
way, but not necessarily an easy way.=20
Pretty much anything is possible if you specialize the XMLHandler and=20
XMLSaveImpl.
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">&lt;WizardPage =
library=3D"" path=3D""&gt;

We have already attributes which defines where the external page is=20
located.
The path attribute is also not a correct URI.
</PRE></BLOCKQUOTE><PRE wrap=3D"">Is there a schema for your =
syntax?
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Thanks and best =
regards,
Robert

</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=3D""><!---->

=
</PRE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE ></BODY></HTML>

------=_NextPart_000_017B_01C9C3EC.8794BDA0--
Previous Topic:[EMF Databinding]
Next Topic:HowTo model initializers
Goto Forum:
  


Current Time: Thu Apr 25 05:30:24 GMT 2024

Powered by FUDForum. Page generated in 0.04600 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top