Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] DLTK and JDT

Hi Andrei,

I've just update to 1.0M7a validateSourceModule is never called.

The problem is in DLTKContentTypeManager.java (line: 102-105):

public static boolean isValidResourceForContentType(
            IDLTKLanguageToolkit toolkit, IResource resource) {
        if (isValidFileNameForContentType(toolkit, resource.getFullPath()
                .lastSegment())) {
            return true;
        }
        ...
}

It is possible to remove these lines?

Thanks is advance

Edgar


On Thu, Mar 13, 2008 at 12:02 PM, Edgar Espina <espina.edgar@xxxxxxxxx> wrote:
Andrei

Thanks for your help I really appreciate it. :)

BR

Edgar


On Thu, Mar 13, 2008 at 11:19 AM, Andrei Sobolev <andrei.sobolev@xxxxxxxxx> wrote:
Hi Edgar,

I suppose best way in current situation is to use validateSourceModule()
method from IDLTKLanguageToolkit.
Code already in CVS HEAD.
Build promoted to eclipse.org will be available tomorrow.

Best regards,
Andrei Sobolev.
> Hi Andrei
>
> Ahh Ok I see it, but how can I do this programatically?
>
> Is there another way to ignore *.g3 resources?
>
>
> Thanks Andrei.
>
> Edgar
> On Thu, Mar 13, 2008 at 10:39 AM, Andrei Sobolev
> <andrei.sobolev@xxxxxxxxx <mailto:andrei.sobolev@xxxxxxxxx>> wrote:
>
>     Hi Edgar,
>
>     If your project root is source folder. ".buildpath" file contains
>     following entry:
>     <buildpathentry kind="src" path=""/>
>
>     Please use script explorer project context menu->Build path->Configure
>     Inclusion/Exclusion patterns.
>     Then add "bin/*.g3" to exclusion filters.
>     At ".buildpath" files will be following line:
>     <buildpathentry excluding="bin/*.g3" kind="src" path=""/>
>
>     Or also you could remove project root from buildpath and set
>     folder with
>     g3 files as source folder, using "Build path"->"Use as source folder"
>     action from script explorer project context menu.
>
>     Best regards,
>     Andrei Sobolev.
>     > Hi Andrei
>     >
>     > Could you show me an example of filter?
>     >
>     > Thanks for your reply.
>     >
>     > BR
>     >
>     > Edgar
>     >
>     > On Thu, Mar 13, 2008 at 8:13 AM, Andrei Sobolev
>     > <andrei.sobolev@xxxxxxxxx <mailto:andrei.sobolev@xxxxxxxxx>
>     <mailto:andrei.sobolev@xxxxxxxxx
>     <mailto:andrei.sobolev@xxxxxxxxx>>> wrote:
>     >
>     >     Hi Edgar,
>     >
>     >     Method is now available.
>     >     One point, it should be used only for special cases, like you
>     >     described.
>     >     Most of the work should be done in content type and it's
>     describer.
>     >
>     >     Also if project are dltk project, excluded filter could be
>     used to
>     >     exclude bin/*.g3 files.
>     >
>     >     Best regards,
>     >     Andrei Sobolev.
>     >     > Hi all,
>     >     >   I'm working in ANTLRv3 IDE Eclipse Plugin. I just
>     updated from
>     >     > version R1.0-I-I200801110748 to version
>     R1.0-S-1.0M5-200802221152.
>     >     >   And I have this problem:
>     >     >
>     >     >   When I put a *.g3 resource in a "java source folder" the JDT
>     >     move my
>     >     > resource to the "output folder" and DLTK start to parsing the
>     >     > resources again (the output folder copy).
>     >     >   In version R1.0-I-I200801110748 I can ignore this
>     resouces with
>     >     > "IStatus
>     IDLTKLanguageToolkit.validateSourceModule(IResource)",
>     >     but  I
>     >     > can't find this method in version R1.0-S-1.0M5-200802221152.
>     >     There is
>     >     > a method "boolean
>     IDLTKLanguageToolkit.validateSourcePackage(IPath)"
>     >     > in version R1.0-S-1.0M5-200802221152 I move my logic here
>     but It
>     >     seems
>     >     > is never called.
>     >     >
>     >     >   How can I ignore the *.g3 resource allocated in JDT
>     output folder?
>     >     >
>     >     > BR
>     >     >
>     >     > Edgar
>     >     >
>     >     >
>     >     >
>     >     >
>     >     >
>     >     >
>     >
>     ------------------------------------------------------------------------
>     >     >
>     >     > _______________________________________________
>     >     > dltk-dev mailing list
>     >     > dltk-dev@xxxxxxxxxxx <mailto:dltk-dev@xxxxxxxxxxx>
>     <mailto:dltk-dev@xxxxxxxxxxx <mailto:dltk-dev@xxxxxxxxxxx>>
>     >     > https://dev.eclipse.org/mailman/listinfo/dltk-dev
>     >     >
>     >
>     >     _______________________________________________
>     >     dltk-dev mailing list
>     >     dltk-dev@xxxxxxxxxxx <mailto:dltk-dev@xxxxxxxxxxx>
>     <mailto:dltk-dev@xxxxxxxxxxx <mailto:dltk-dev@xxxxxxxxxxx>>
>     >     https://dev.eclipse.org/mailman/listinfo/dltk-dev
>     >
>     >
>     >
>     >
>     > --
>     > Edgar A. Espina Mallea
>     > Arquitecto/Desarrollador Java & JavaEE
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > dltk-dev mailing list
>     > dltk-dev@xxxxxxxxxxx <mailto:dltk-dev@xxxxxxxxxxx>
>     > https://dev.eclipse.org/mailman/listinfo/dltk-dev
>     >
>
>     _______________________________________________
>     dltk-dev mailing list
>     dltk-dev@xxxxxxxxxxx <mailto:dltk-dev@xxxxxxxxxxx>
>     https://dev.eclipse.org/mailman/listinfo/dltk-dev
>
>
>
>
>
> _______________________________________________
> dltk-dev mailing list
> dltk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dltk-dev
>

_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev

Back to the top