Repository Shutdown
Jörg Schütz <[email protected]> Tue, 11 Oct 2005 19:10:05 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
------=_NextPart_000_004E_01C5CE97.638BFF70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi there,
=20
I am developing an plugin for Eclipse that is supposed to read in an UML
file and then do something with the model defined there. To achieve =
this, I
am using the Netbeans libraries and the Uml2Mof tool. Being a plugin, it =
is
also desired that a user can run the tool several times within the same
Eclipse instance (i.e. read in the first model with the tool, then read =
in
another one).
When executing the tool several times, the model previously read in is =
still
in the MDRepository and the new model is simply added, which is =
undesirable
because only the model defined in the file read in is to be processed. =
This
is the case because I did not shut the Repository down with the
MDRManager.getDefault().shutdownAll() command.=20
However, if this command is executed at the end, upon the next =
invocation an
Exception is thrown (see bellow). Any idea how this can be solved?
Thanks
=20
J=F6rg
------=_NextPart_000_004E_01C5CE97.638BFF70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h2
{margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:0cm;
page-break-after:avoid;
font-size:12.0pt;
font-family:"Times New Roman";
font-style:italic;}
h3
{margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:36.0pt;
text-indent:-36.0pt;
line-height:150%;
page-break-after:avoid;
mso-list:l0 level3 lfo2;
font-size:12.0pt;
font-family:"Times New Roman";
font-style:italic;}
p.MsoToc3, li.MsoToc3, div.MsoToc3
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:20.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
p.MsoCaption, li.MsoCaption, div.MsoCaption
{margin-top:6.0pt;
margin-right:0cm;
margin-bottom:18.0pt;
margin-left:0cm;
text-align:justify;
line-height:200%;
font-size:10.0pt;
font-family:Arial;}
p.MsoBodyTextIndent2, li.MsoBodyTextIndent2, div.MsoBodyTextIndent2
{margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:14.15pt;
line-height:200%;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.FormatvorlageErsteZeile125cmZeilenabstandDoppelt, =
li.FormatvorlageErsteZeile125cmZeilenabstandDoppelt, =
div.FormatvorlageErsteZeile125cmZeilenabstandDoppelt
{margin:0cm;
margin-bottom:.0001pt;
text-indent:35.45pt;
line-height:200%;
font-size:12.0pt;
font-family:"Times New Roman";}
p.FormatvorlageBeschriftungLinks011cmErsteZeile125cmZeilen, =
li.FormatvorlageBeschriftungLinks011cmErsteZeile125cmZeilen, =
div.FormatvorlageBeschriftungLinks011cmErsteZeile125cmZeilen
{margin-top:6.0pt;
margin-right:0cm;
margin-bottom:18.0pt;
margin-left:3.0pt;
text-align:justify;
text-indent:35.45pt;
line-height:200%;
font-size:12.0pt;
font-family:Arial;
font-weight:bold;}
p.FormatvorlageBlockErsteZeile125cmZeilenabstandDoppelt4, =
li.FormatvorlageBlockErsteZeile125cmZeilenabstandDoppelt4, =
div.FormatvorlageBlockErsteZeile125cmZeilenabstandDoppelt4
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-indent:35.45pt;
line-height:200%;
font-size:12.0pt;
font-family:"Times New Roman";}
p.Klassen, li.Klassen, div.Klassen
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-indent:35.45pt;
line-height:200%;
font-size:12.0pt;
font-family:"Times New Roman";
font-style:italic;}
span.E-MailFormatvorlage24
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:1493713516;
mso-list-template-ids:-1497858698;}
@list l0:level1
{mso-level-text:%1;
mso-level-tab-stop:21.6pt;
mso-level-number-position:left;
margin-left:21.6pt;
text-indent:-21.6pt;}
@list l0:level2
{mso-level-text:"%1\.%2";
mso-level-tab-stop:28.8pt;
mso-level-number-position:left;
margin-left:28.8pt;
text-indent:-28.8pt;}
@list l0:level3
{mso-level-style-link:"=DCberschrift 3";
mso-level-text:"%1\.%2\.%3";
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
margin-left:36.0pt;
text-indent:-36.0pt;}
@list l0:level4
{mso-level-reset-level:level1;
mso-level-text:"%1\.%2\.%3\.%4";
mso-level-tab-stop:43.2pt;
mso-level-number-position:left;
margin-left:43.2pt;
text-indent:-43.2pt;}
@list l0:level5
{mso-level-text:"%1\.%2\.%3\.%4\.%5";
mso-level-tab-stop:50.4pt;
mso-level-number-position:left;
margin-left:50.4pt;
text-indent:-50.4pt;}
@list l0:level6
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
mso-level-tab-stop:57.6pt;
mso-level-number-position:left;
margin-left:57.6pt;
text-indent:-57.6pt;}
@list l0:level7
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
mso-level-tab-stop:64.8pt;
mso-level-number-position:left;
margin-left:64.8pt;
text-indent:-64.8pt;}
@list l0:level8
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
margin-left:72.0pt;
text-indent:-72.0pt;}
@list l0:level9
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
mso-level-tab-stop:79.2pt;
mso-level-number-position:left;
margin-left:79.2pt;
text-indent:-79.2pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</head>
<body lang=3DDE link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi there,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>I am developing an plugin for Eclipse that is
supposed to read in an UML file and then do something with the model =
defined
there. To achieve this, I am using the Netbeans libraries and the =
Uml2Mof tool.
Being a plugin, it is also desired that a user can run the tool several =
times
within the same Eclipse instance (i.e. read in the first model with the =
tool,
then read in another one).<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>When executing the tool several times, the =
model
previously read in is still in the MDRepository and the new model is =
simply
added, which is undesirable because only the model defined in the file =
read in
is to be processed. This is the case because I did not shut the =
Repository down
with the MDRManager.getDefault().shutdownAll() command. =
<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>However, if this command is executed at the =
end, upon
the next invocation an Exception is thrown (see bellow). Any idea how =
this can
be solved?<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Thanks<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>J=F6rg<o:p></o:p></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_004E_01C5CE97.638BFF70--