| [cobol-dev] Re: cobol-dev digest, Vol 1 #27 - 1 msg |
Hi, There was issue in the current implementation, please find how to fix this issue. Hope this will resolve your problem. Rgds ----- Original Message ----- From: <cobol-dev-request@xxxxxxxxxxx> To: <cobol-dev@xxxxxxxxxxx> Sent: Tuesday, September 14, 2004 9:30 PM Subject: cobol-dev digest, Vol 1 #27 - 1 msg > Send cobol-dev mailing list submissions to > cobol-dev@xxxxxxxxxxx > > To subscribe or unsubscribe via the World Wide Web, visit > http://dev.eclipse.org/mailman/listinfo/cobol-dev > or, via email, send a message with subject or body 'help' to > cobol-dev-request@xxxxxxxxxxx > > You can reach the person managing the list at > cobol-dev-admin@xxxxxxxxxxx > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of cobol-dev digest..." > > > Today's Topics: > > 1. Adding a pre-compiler builder to FJCOBOLNature (=?iso-8859-1?Q?Wingeier_Hansj=F6rg?=) > > --__--__-- > > Message: 1 > From: =?iso-8859-1?Q?Wingeier_Hansj=F6rg?= <hansjoerg.wingeier@xxxxxx> > To: "'cobol-dev@xxxxxxxxxxx'" <cobol-dev@xxxxxxxxxxx> > Date: Tue, 14 Sep 2004 14:58:40 +0200 > Subject: [cobol-dev] Adding a pre-compiler builder to FJCOBOLNature > Reply-To: cobol-dev@xxxxxxxxxxx > > This message is in MIME format. Since your mail reader does not understand > this format, some or all of this message may not be legible. > > ------_=_NextPart_001_01C49A5A.8E76A1D0 > Content-Type: text/plain; > charset="iso-8859-1" > > Hi > > My question is, how a pre-compiler builder can be added to the > com.fujitsu.netcobol.ui.examples.FJCOBOLNature. > > My first intension was, that it should be enough to just define a new > <extension point="org.eclipse.cobol.core.buildtool">. > I assumed, that this builder should then appear when in the project > properties under > "Build Tools" the "Add Build Tool" Button is pressed. However, as I learned > soon, > this does not work. > > > The solution I found is: > -> Define a new CobolContributor > - nature is FJCOBOLNature > - class is FJCOBOLContributor > - reference a new targetapplicationtype > -> Define the new targetapplicationtype > - copy the one from the com.fujitsu.netcobol.ui.examples plugin > and add the desired precompiler > -> Define the precompiler buildTool > -> Implement the precompiler buildTool class. > > > >>>>> > Question 1: > - Is this the way it should be done > <<<<< > > I then looke a little deeper into the code for the BuildTools property page, > > since I wanted to figure out, how a build tool can appear in the displayed > list after the "Add Build Tool"-button is pressed. > > The class BuildToolsSettingPropertyPage shows the list of configured > builders. > The configured Builders are found in the defintion of the selected > targetapplicationtype. > When the "Add Build Tool"-button is pressed, an instance of > AddBuildToolsDialog > is instantiated. This instance is filled with the same builders, which are > actually already displayed in the BuildToolsSettingPropertyPage. After > the initialization of AddBuildToolsDialog, the method filterElements() > is called. This method seems to remove all builders, which are already > present in the BuildToolsSettingPropertyPage -> since, this was the > origin, all elements are removed, and therefore the list ist empty.?! > > I did another test. I defined my pre-compiler as [necessary="false"]. > I created a new project, displayed the properties, and I removed > the precompiler in the BuildToolsSettingPropertyPage. After that, > there is no way to add it again. > > >>>>> > Question 2: > - Is this a bug inside the eclipse cobol framework? > > Question 3: > - if answer to question 2 is no > - how is it possible to see an entry inside the "Add Build Tool" - List? > - how is it possible to add a removed builder again? > <<<<< > > I would really appreciate, if somebody of the "Eclipse Cobol Framework" > developer could answer my questions. > > Thanks in advance > > Hansjoerg > > ------_=_NextPart_001_01C49A5A.8E76A1D0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> > <HTML> > <HEAD> > <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = > charset=3Diso-8859-1"> > <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = > 5.5.2653.12"> > <TITLE>Adding a pre-compiler builder to FJCOBOLNature</TITLE> > </HEAD> > <BODY> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">Hi</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">My question is, how a = > pre-compiler builder can be added to the </FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier = > New">com.fujitsu.netcobol.ui.examples.FJCOBOLNature.</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">My first intension was, that it = > should be enough to just define a new </FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"> <extension = > point=3D"org.eclipse.cobol.core.buildtool">.</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">I assumed, that this builder = > should then appear when in the project properties under</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">"Build Tools" the = > "Add Build Tool" Button is pressed. However, as I learned = > soon,</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">this does not work.</FONT> > </P> > <BR> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">The solution I found is:</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">-> Define a new = > CobolContributor</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"> - nature is = > FJCOBOLNature</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"> - class is = > FJCOBOLContributor</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"> - reference a new = > targetapplicationtype</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">-> Define the new = > targetapplicationtype</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"> - copy the one = > from the com.fujitsu.netcobol.ui.examples plugin</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"> and = > add the desired precompiler</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">-> Define the precompiler = > buildTool</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">-> Implement the precompiler = > buildTool class.</FONT> > </P> > <BR> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">>>>>></FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">Question 1:</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">- Is this the way it should be = > done</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"><<<<<</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">I then looke a little deeper = > into the code for the BuildTools property page, </FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">since I wanted to figure out, = > how a build tool can appear in the displayed</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">list after the "Add Build = > Tool"-button is pressed.</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">The class = > BuildToolsSettingPropertyPage shows the list of configured = > builders.</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">The configured Builders are = > found in the defintion of the selected targetapplicationtype.</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">When the "Add Build = > Tool"-button is pressed, an instance of AddBuildToolsDialog</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">is instantiated. This instance = > is filled with the same builders, which are </FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">actually already displayed in = > the BuildToolsSettingPropertyPage. After </FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">the initialization of = > AddBuildToolsDialog, the method filterElements()</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">is called. This method seems to = > remove all builders, which are already</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">present in the = > BuildToolsSettingPropertyPage -> since, this was the</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">origin, all elements are = > removed, and therefore the list ist empty.?!</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">I did another test. I defined my = > pre-compiler as [necessary=3D"false"].</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">I created a new project, = > displayed the properties, and I removed</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">the precompiler in the = > BuildToolsSettingPropertyPage. After that,</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">there is no way to add it = > again.</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">>>>>></FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">Question 2:</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">- Is this a bug inside the = > eclipse cobol framework?</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">Question 3:</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">- if answer to question 2 is = > no</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"> - how is it possible to = > see an entry inside the "Add Build Tool" - List?</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"> - how is it possible to = > add a removed builder again?</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New"><<<<<</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">I would really appreciate, if = > somebody of the "Eclipse Cobol Framework"</FONT> > <BR><FONT SIZE=3D2 FACE=3D"Courier New">developer could answer my = > questions.</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">Thanks in advance</FONT> > </P> > > <P><FONT SIZE=3D2 FACE=3D"Courier New">Hansjoerg</FONT> > </P> > > </BODY> > </HTML> > ------_=_NextPart_001_01C49A5A.8E76A1D0-- > > > --__--__-- > > _______________________________________________ > cobol-dev mailing list > cobol-dev@xxxxxxxxxxx > http://dev.eclipse.org/mailman/listinfo/cobol-dev > > > End of cobol-dev Digest
Attachment:
AddBuildTool_Bug.doc
Description: MS-Word document