Giter Club home page Giter Club logo

Comments (8)

vl-gx avatar vl-gx commented on June 16, 2024 1

@vl-gx you selected that you'd like to help. Shall we assign the issue to you?

Yes, but other people can participate. I may have not spoted every flawed window myself.

from zaproxy.

kingthorin avatar kingthorin commented on June 16, 2024

@vl-gx you selected that you'd like to help. Shall we assign the issue to you?

from zaproxy.

kingthorin avatar kingthorin commented on June 16, 2024

For the core: WritableFileChooser could be updated with constructors that accept a title and use setDialogTitle(String). Same for ReadableFileChooser in commonlib.

That'll make things easier for add-ons like exim (HAR Import, etc).

from zaproxy.

thc202 avatar thc202 commented on June 16, 2024

How does it make easier? They can just call the setter (like they do for other things).

from zaproxy.

psiinon avatar psiinon commented on June 16, 2024

It makes it easier for us to find the other constructors - if we always use the new ones then we can spot the ones that dont use them much more easily 😁

from zaproxy.

kingthorin avatar kingthorin commented on June 16, 2024

It's also a single call for the implementer.

from zaproxy.

thc202 avatar thc202 commented on June 16, 2024

#8347 (comment)

There are ~12 usages of WritableFileChooser (in zap-extensions), not sure why shouldn't we just update all to set the title now (rather than wait for next version).

#8347 (comment)

So we should add a constructor(s) to replace all these calls too?
https://github.com/zaproxy/zap-extensions/blob/a1978aa3a7b42549c044317a9b85c76fe996236c/addOns/exim/src/main/java/org/zaproxy/addon/exim/PopupMenuExportUrls.java#L179-L181

Anyway, better add the class (and constructor) to commonlib than keep dragging the core class.

from zaproxy.

kingthorin avatar kingthorin commented on June 16, 2024

Sure we can go ahead and use setDialogTitle directly for now and not wait for core/commonlib. I was just trying to make it more future friendly. As for the file filters I guess we could make a constructor with vargs or a list for that as well 🤷‍♂️

I just figured if there's a constructor that makes it easy for devs to use then we're less likely to have to revisit this in the future. I'm not meaning to over think it or make work. I'm fine whichever way it goes.

from zaproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.