-
Notifications
You must be signed in to change notification settings - Fork 3
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
Saving and reopening the state of a client frame #3
Comments
URL and params are saved if you don't close the tab. |
I'm running NetBeans 15 on Ubuntu Linux, and my defined REST tabs are not reopened the next time I start the IDE. |
Could you please attach the IDE log?
Nice suggestion. I have to investigate it. |
I'm willing to implement a history. My idea is to add opened tabs with configuration as a new Maintab in services "REST" or smth similar "History of REST Clients" and each connection will be a new node. If you double click on it, it will open a new tab with all the saved stuff that you already sent. Just sending, not also doing the send, you need to trigger the send automatically. This is just an idea, I think it fits best with the services tab with a new node. It would be better to have a save button to not do it automatically, just when you click on save. Maybe we can create a discussion for this (if the section will be enabled) to discuss more :) |
This would leave an inconsistency. SQL queries are opened as tabs - they aren't displayed in Services. |
Maybe I have expressed myself in a misleading way. Of course every connction should open a new tab, this is just fine. I just want to save every tab as a separate node in services. And if you double click on it or right click -> open it should open it as a new tab. So the current tab will be opened and is visible as the current behaviour. You can think of it just like the webservices or the tables inside the service section. The tabs are independent from the project as it is now. We can also add a function like "Add this connection to a project" So that you have your made requests as nodes under a project. But problem here is, that there is no general API for projects, we need to add each project type manually. And if NetBeans or any other Plugin adds a new project type, we need to add this too. |
Instead of having, let's say history as you type in the URL bar, we would have it as a Service node. Very convenient. Especially if the user can make groups to organise queries. I would also leave tabs independent from the project as it is now. |
Exactly. The service nodes are just the history of what I had open as tabs. Nothing more. |
Another potential idea would be to have a file type (https://netbeans.apache.org/tutorial/main/tutorials/nbm-filetype/) with a json contained that can be either viewed as source or used as rest request a bit analogous to for example visual Swing components. I would love to use this plugin but without ability to store state per project it does not provide me with the value i would need to do preconfigured calls. Currently i use RESTED in Firefox (https://addons.mozilla.org/en-US/firefox/addon/rested/). |
@studio42gmbh Thanks for your idea. I think it's related to issue #8. The JSON format could be Postman's or we could define our own. |
I found a nice file creating a part of the postman within the rested code: https://github.com/RESTEDClient/RESTED/blob/master/src/utils/export.js If you want some ideas to an extended file integration - I did one some time ago with a custom tab etc.: https://github.com/studio42gmbh/dlnetbeans/blob/main/src/main/java/de/s42/dl/netbeans/editing/DLEditorPanel.java Cheers |
@studio42gmbh please don't mix ideas for different cases. This ticket here is just for saving the session and has nothing todo with a JSON to export. It should be related to #8 what @javierllorente mentioned. And yes we should stick with just one formt and not create our own. We should use the tools that we want and if someone uses NB fine, if someone uses Postman also fine, but we should make it possible to ship it between those too. I don't know the format of chrome or firefox, hopefully the same. |
@Chris2011 the topic is connected on how to approach the need for having past queries made available to the user. Cheers all |
It will be a persistance state and you will find all of them in the services tab under a new node. This is in my mind and just my idea beacuse this services tab is made more or less for external stuff. So also it will be file based, because the nodes will come from a file with the data. Maybe it can be the same format of postman then we will hit 2 things with one but thats a bigger task. |
@Chris2011 ok that sound nice :) - i wouldnt bother with the postman format there i guess - gives you more freedom on storage |
Is this a reasonable wish? I love having the opportunity to do REST calls inside my IDE, but the effort of setting up the calls every time I start up NetBeans makes it rather difficult using this plugin long term so far. Otherwise, I really like the functionality.
The text was updated successfully, but these errors were encountered: