-
-
Notifications
You must be signed in to change notification settings - Fork 70
Making Preferences
standalone
#1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@AhmedMagedC is this something you would be interested in working on? |
@Stefterv Thanks for suggesting me to implement this, and yes i'm interested into working on it unfortunately though im currently busy with college having practical exams this week, i can start working on it once i finish |
Hi @Stefterv , I would like to show my approach to make sure I'm moving in the right direction. I will move but for the and for things like getting the so what do you think? |
Hi @AhmedMagedC, Thank you for writing down the approach.
Perfect 👍
Let's use the existing Thank you for catching the dependency on |
Hi @Stefterv , so i managed to migrate the preference class to utils module and it properly compiles and runs i took a different approach than using the Platform class because that made cyclic dependency problem (utils depend on app, app depends on utils) i wanna make a PR so you and other devs can review the work done and prompts changes if needed also note that i didnt yet work on the rest of requirements, i will once the migration alone makes sense |
Hi @AhmedMagedC, thanks so much for the update and the work you’ve done so far! Please go ahead and open a draft PR. We can take a look and continue the discussion there. |
For the migration of the internal Gradle runner, I'm running into trouble with the
Preferences
class.Problem description
Currently
Preferences
is tightly coupled with the PDE through the use of theBase
,Messages
,Toolkit
andLanguage
classes. These classes do not operate outside of the PDE, thus not allowing reuse of thePreferences
class in other modules within Processing (e.g. Gradle plugins, Processing CLI, Processing pre-processor, etc.)Proposed solution
Migrate the
Preferences
class to a standalone version.:app
by moving it to a:app:utils
module.:app
into aAppPreferences
class or into other relevant areas of the PDEPreferences
, a few of the top of my head would be:\
workcore
Steps taken so far
utils
in theapp
folder with the following settings (see image below)processing.utils
to the newly created modulePrefrences
class andRefactor -> Move Class...
and moving it to the newly createdprocessing.utils
packageThe text was updated successfully, but these errors were encountered: