Skip to content
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

[feature proposal] Find/Replace on Element Names #48

Closed
mbd-dbc-dk opened this issue Mar 18, 2014 · 4 comments
Closed

[feature proposal] Find/Replace on Element Names #48

mbd-dbc-dk opened this issue Mar 18, 2014 · 4 comments

Comments

@mbd-dbc-dk
Copy link
Contributor

I would like to suggest that Archi was made to support search and replace on element names, in the model tree or in the current view or in the current selection.

Usecase: If I make a seperate model to hold "patterns", I can copy and paste elements and connection from this into my "real" model. If I then select the freshly pasted elements, and make a "search and replace", I can quickly create e.g. hosts, applications, etc, from a set of patterns.

Currently I can do the same, but I have to manually search and replace in all the names to correct the name (and remove the "(copy)" that is automatically added.

Of course, if there is an easier way to support this usecase, feel free to let me know :-)

@Phillipus
Copy link
Member

I have created some initial code (which does nothing other than show a non-working dialog box). This is temporary code that might get messy.

I have fixed up the main menu item for "Find/Replace" so it is enabled when the Model Tree and the Diagram Views have focus. When the menu item is selected a non-modal dialog box will appear. This is a global Find/Replace dialog box that will (eventually) update depending on the current context and selection.

This is not going to be a quick or easy job. The Find/Replace actions will depend on a "context provider". The "context provider" will be reponsible for the actual Find and Replace actions. This is a big job, so I'm taking it a bit at a time.

@Phillipus Phillipus changed the title [feature proposal] Search and replace on element names [feature proposal] Find/Replace Apr 12, 2014
@Phillipus Phillipus changed the title [feature proposal] Find/Replace [feature proposal] Find/Replace on Element Names Apr 12, 2014
@mbd-dbc-dk
Copy link
Contributor Author

Hey! Thats nice: I suggest a feature, create a dorky pull request, and you step in to do it right ;-)

More projects should work like that! ;-)

No, seriously, I am very happy you do this; adding the functionality "in the right way" is out of my league, both in terms of knowledge/experience regarding Eclipse RCF, gui programming in general, and Archis codebase. I created the patch from #64 mostly to solve my own problem, secondarely to try and get some feedback on the feature suggestion. Mission solved! :-)

Let me know if I can help out, perhaps test some code, or something. Meanwhile, I am going to address another feature request ( #60 ) - perhaps this will work out just as well! :-)

If y

@Phillipus
Copy link
Member

Implemented and commited to master branch. Will be in Archi 3.0

@Phillipus
Copy link
Member

Closing this because I've implemented in Archi 3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants