ok went throu!

instead of:
d1e35.columns.add(hudson.
model.Hudson.instance.<ListViewColumn,Descriptor<ListViewColumn>>getDescriptorList(hudson.views.JobColumn.class))
it's enough to:

d1e35.columns.add(new hudson.views.JobColumn)

Guys, do you know whom we can trigger to make includeRegex field
public in sectionedView plugin?

regards
L.
Łukasz Tasz


2015-01-20 13:15 GMT+01:00 Łukasz Tasz <[email protected]>:
> Hi Robert,
>
> this is what I tried, but then it claims that includeRegex is readOnly...
>
> SectionedViewSection has no setter, and field includeRegex is defined as:
> String includeRegex;
> public String includeRegex;
>
> is fixing issue, would be nice to have it also in official plugin.
>
> Now  I'm strugling with columns... descriptor creates column with line:
>
>                 section.columns.rebuildHetero(req, formData,
> Hudson.getInstance().<ListViewColumn,Descriptor<ListViewColumn>>getDescriptorList(ListViewColumn.class),
> "columns");
>
> I'm trying with:
> d1e35.columns = new
> DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(Saveable.NOOP);
> d1e35.columns.add(hudson.model.Hudson.instance.<ListViewColumn,Descriptor<ListViewColumn>>getDescriptorList(hudson.views.JobColumn.class))
>
> but getDescriptorList returns empty list... diging :)
> thanks a lot for your help!
> br
> L.
> Łukasz Tasz
>
>
> 2015-01-20 13:08 GMT+01:00 Robert Sandell <[email protected]>:
>> I think you can set the fields directly
>>
>> def regexp = "^dupa123"
>> d1e35.includeRegex = regexp
>> d1e35.includePattern = Pattern.compile(regexp)
>>
>> On Tue, Jan 20, 2015 at 9:58 AM, Łukasz Tasz <[email protected]> wrote:
>>>
>>> Hi All!!
>>>
>>> I have a question, since you about view-section-plugin.
>>>
>>> I would like to create list-view-section in a automated way - not
>>> using gui, just from script console,
>>> so far so good:
>>>
>>> d1e28=new SectionedView("test section")
>>> d1e28.initSections()
>>> d1e35=new ListViewSection("STATUS", SectionedViewSection.Width.
>>> FULL,
>>> SectionedViewSection.Positioning.CENTER)
>>>
>>> I have sectioned view, at least one section but I don't have regex...
>>> //d1e35.setIncludeRegex("^dupa123")
>>>
>>> is not avaliable - since SectionedViewSection dont extend ListView,
>>> I'm not java expert, but as I see ListViewSection has inside
>>> DesctriptorImpl which extends SectionedViewSectionDescriptor which in
>>> constructor reads regex from "magic stapler" (maybe only for me :D )
>>>
>>> Do you have any clue how I should proceed? should I implement
>>> sectionedViewSectionDescriptor constructor which takes not "stapler"
>>> but regex? Unfortunately this plugin is only gui oriented - at least
>>> what I see...
>>>
>>> thanks in advance & regards
>>> Lukasz
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Jenkins Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-dev/2b5d54c5-2a01-49b0-a913-579eed3a0a77%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>>
>> --
>> Robert Sandell
>> Software Engineer
>> CloudBees Inc.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS06dh50dLWKW-JygSS2BMXwLm0-X%2By0-qnQ6u9-ua7h-g%40mail.gmail.com.
>>
>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAGRr-NiqkZoMHxocLuTc5G0xac%2BZFeYN3P%3DuQh9ciO10z6MAdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to