Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: Re: [platform-ant-dev] [Planty] Copies of org.apache.ant classes

Jared,

yes there is a reason for not using the file, though there might be a more
clever way
of confronting the issue as my way.

I want to work on the current content of the editor, which is usually not
the same
as the content of the file that is saved on the hard disc. I get the
content of the editor
from the completion processor as a string and therefore just want to pass
this
string to the ProjectHelper.

By passing the file as it lies on the hard disc, you get the completions
based
on the file content and not on what you actually are editing right now in
the editor.
That is not what a user would expect.

Alf

---------------
> Alf,
>
> I've finally had a chance to get back to this again. Can you explain why
you
> want to pass the contents of the file as read from the editor instead of
as
> read from the file?
>
> I'm probably missing something simple, but if I just delete your changed
> classes and change the method call to call the normal API, my basic
sanity
> checking - summoning code assist as I edit and watching the Outliner
update
> when I save - appears to work just fine.
>
> Thanks,
> - Jared
>
> On Thursday 09 January 2003 03:08 am, Alf.Schiefelbein@xxxxxxxx wrote:
> > I needed the configureProject(...) method of the ProjectHelper with
> > different parameters.
> > In my own copy of the ProjectHelper I introduced my own method:
> >
> > --- snip ---
> >     /**
> >      * That is the one method that was needed and why copying of this
> > package
> >      * from ant 1.5 had to be done. Other than usual Ant processing,
here
> > we don't
> >      * work on a file but on a string.
> >      *
> >      * @param project the project
> >      * @param aWholeDocumentString the string that contains the whole
> > docoment
> >      * that we want to configure the project on.
> >      *
> >      * @author Alf Schiefelbein
> >      */
> >     public static void configureProject(Project project, File aFile,
String
> > aWholeDocumentString)
> >         throws BuildException {
> >         ProjectHelperImpl helper
> > = (ProjectHelperImpl)ProjectHelper.getProjectHelper();
> >         helper.parse(project, aFile, aWholeDocumentString);
> >     }
> > --- snap ---
> >
> > The other three classes are just simple copies. Dependencies on package
> > private methods
> > forced me to just copy them. There might be more elegant ways of
solving
> > this though ...
> >
> > Alf
> >
> > ---------------
> > > Alf, I noticed that you've got a couple copies of what appear to be
older
> > > versions of classes from the org.apache.ant project. The classes live
in
> > the
> > > de.gebit.planty.internal.ant package.
> > >
> > > Are these files modified in some way that is necessary for Planty or
can
> > we
> > > remove them and reference the versions in the Eclipse plug-in?
> > >
> > > Thanks,
> > > - Jared
> >
> > _______________________________________________
> > platform-ant-dev mailing list
> > platform-ant-dev@xxxxxxxxxxx
> > http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
> >
> >
>
> _______________________________________________
> platform-ant-dev mailing list
> platform-ant-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-ant-dev



Back to the top