Can Rhapsody be configured to use an external source code editor? - linux

I am using Rational Rhapsody for Linux and is wondering if it is possible to configure it to open source code with an external editor instead of the built in editor. I would prefer to be able to edit code using emacs via emacsclient.
According to the documentation the following procedure should set Rhapsody to use an external editor but editing that property has no apparent effect when I attempt to edit the code of one of my classes.
Select File > Project Properties.
Select the Properties tab.
Navigate to the General::Model::EditorCommandLine property.
Click in the property value call in the right column to activate the field, then click the ellipsis (...) to open the Browse for File window.
Browse to the location of the editor you want to use (for example, Notepad) and select the editor. Click OK to close the window. The product displays the path in the property value field.
Click OK.

Have you tried the Rhapsody Eclipse Workflow integration? With that you can open your Rhapsody Model inside Eclipse, and use Eclipse as editor too.
Be careful, not all features from Rhapsody are available this way.

I have only used Rhapsody on Windows, but you have to click the "..." button to get it to break out to the external editor to edit something that showing in the properties dialog. If you want to use the external editor in this way, you have to use one that Rhapsody can execute, and then wait for it to exit, as Rhapsody will create a temp file, open the editor on the temp file, and then import the temp file back into the dialog when you close the editor.

Related

Open path of a file in project explorer

Often I have the case that I have a file opened in the tabs like item_category.xml here:
The project explorer still shows something else. Any way to open the path to item_category.xml in the project explorer? I already checked the right-click menu of item_category.xml, but couldn't find a matching option.
Use that symbol in the project explorer (shortcut: Alt+F1, 1):
More information on the feature: Locate a file in the Project tool window.
If you don't want to use mouse but keyboard shortcut
First option could be assigning a shortcut to Select in Project View may do the trick. It is located under Keymap/Other.
Second option could be to install Scroll From Source plugin for this. The details are here
Set the keyboard shortcut to the function of "Scroll From Source" in Project Panel. You can set the special shortcut by yourself to all OS(Window/Linux/Mac)
Default shortcut is Command + Control + S for Mac.

How to add a command to context menus in Visual Studio 2019

I'm trying to add a command to the Document Tab context menu in Visual Studio 2019 so I can go directly to the open file in the Solution Explorer. I'm aware of File Tracking. I don't want to open the folder for every file tab I click on. I'm also aware of this extension but it seems like I have to click it two, sometimes three times before it will go to the file.
I found the relevant context menu under Customize -> Commands. It's "Other Context Menus | Easy MDI Document Window". The problem is that under "Add Command" you can only add from preselected lists of commands, and they don't make things easy to find.
I can see the command I want to add under Options -> Environment -> Keyboard. It's SolutionExplorer.SyncWithActiveDocument. But I don't see any way to use it in the Customize window, or if it's there I can't find it.
You can directly add commands to a menu only from the existing VS menus.
For additional commands, you can create an intermediate command with my Visual Commander extension DTE.ExecuteCommand("SolutionExplorer.SyncWithActiveDocumen") and then add this VCmd.Command01 command to the menu.

Is there a way to use Sublime to show file previews in Windows Explorer for certain files?

I'd like to be able to preview all plain-text files in the Windows File Explorer Preview Pane. To illustrate, here's what sublime files currently look like:
As you can see, Context.sublime-menu is highlighted, but a preview doesn't appear. They're just plain-text files though - you can open them in Notepad. Is there a way to tell windows "Use notepad (or sublime) to view this type of file the preview pane"?
Thanks to #KeithHall's link - while it didn't work for me - got me started on a pretty long path to finally figuring this out. And finding a better solution than I thought existed.
In short, simply install the Delphi Preview Handler. Which pretty much gives you an IDE in the preview pane. It's pretty simple to use and just awesome.
After installation, if you click on a .js file in Windows File Explorer you can immediately see a different preview pane.
Registering Other Extensions
The Preview Handler doesn't compensate for all plain-text files unfortunately, so you're gonna have to manually add the sublime extensions and any other extensions in the Registry Editor.
Here's the bird's-eye view of this process:
Find the key/value that instructs Windows to use Delphi as the preview handler for .js files.
Copy the key/value
Apply that to each extension you want to preview.
Here's more in-depth instructions:
First, you need to find the ID of the Preview Handler, and its Default Value
win + rregedit > expand HKEY_CLASSES_ROOT
Find .js and expand it.
.js should have a subkey named shellex, expand that
You need to recreate this shellex key for each extension you want to add, so copy its contents:
shellex should have a sub-key named with a bunch of numbers, letters, and dashes, this is the ID of the preview pane (I think)
Right-Click that > Rename > Copy > Cancel
Open Sublime > Create a new file > Paste
Go back to the Registry Editor, Click that ID subkey, and a String value called (Default) should appear in the right side of the window.
Double-Click that
Copy > Cancel > Paste in sublime. This is the ID of the Preview Handler (I think).
At this point there should be 2 IDs in the sublime file.
Now You're ready to add these same values to other extensions.
Find the extension(s) you want to change. For me it was all the sublime file-types.
Right-click > New > Key > call it shellex
Go to sublime, copy the first value
Right-click shellex > New > Key > Paste
Go to sublime, copy the second value
Click the new key and make it's default value that 2nd id.
So it should look similar to this:
v .sublime-commands
| v shellex
| |- {823BD1D4-...
And in the right side of the window:
Name Type Data
(Default) REG_SZ {AD9955...
Sources:
This Answer by #rxantos pointed me in the direction of the Delphi Preview Handler.
I spent about an hour looking for this app but never found it.
This Answer by #tvj247 is perhaps a more simple solution, but my HKey structure didn't match his (I'm using Windows 10).
And as for fiddling with the Registry, that was trial, error, and comparing sublime extension keys to js, html and css.

Xpages application corrupt "Could not open the editor: Could not parse the .xsp-config file named CustomControls/layout.xsp-config in the...."

I came into work this morning and one of my Xpages applications appears to be corrupt. Some design elements are duplicated, and when I open up cc or Xpage design elements I get
"Could not open the editor: Could not parse the .xsp-config file named CustomControls/layout.xsp-config in the project C:\Program Files (x86)\IBM\Notes\Data\workspace\KC1_2fScoular\ComputerTips.nsf."
I am not using source control; I have seen a few people comment that Git can cause this problem.
How can I repair the database??
I've had that happen before in older versions of Domino Designer. Sometimes closing Designer and restarting solves the problem.
The .xsp-config file can be found in Package Explorer and holds the information to display the custom control in the Controls Palette as well as any custom properties. It can be opened directly from there and opens in the XML editor. In a worst case scenario, you can always delete the properties or other XML entities, then paste back in once it's working again (or add the properties back in using the Properties pane). The .xsp file (the underlying Custom Control) can also be opened in the XML Editor by right-clicking in the Package Explorer and selecting Open With and choosing the XML Editor.
Because of the underlying Eclipse functionality, you can delete an XML-based component - XPage, Custom Control, xsp-config - create a new entry with the same name, and use Compare With > Local History to see previous versions. Local History is stored based on the text file name. So you have a (short-term) back, even without source control.

Default to the T-SQL Pane view within Visual Studio 2012 Database Project

When working with a Database Project in Visual Studio 2012, VS defaults to the "Design-View" pane when you add or edit a table. While you can work in split-screen mode, the T-SQL pane defaults to the bottom pane.
As I prefer to work with T-SQL directly as opposed to the designer, I constantly am switching to make the T-SQL pane the top-most editor in order to work with the object. Unfortunately, VS does not remember this preference, so each and every time I work with a table I must change to make the T-SQL pane appear on top as opposed to beneath the designer pane.
I've looked to see if there is a setting under Tools --> Options to control this behavior, but so far I have been unable to find a setting that does so. I've done a few google searches on the topic as well, but haven't found anything helpful for this particular case.
This is more of an annoyance than anything else for me, but as I am finding myself constantly switching panes I wonder if anyone knows of a setting, either within VS or the registry or some other config file that would force VS to either remember my preference or default to the T-SQL Pane on top of the Designer Pane?
If you want to get rid of the designer completely, try the following:
Right-click on the file, and select Open With...
Select Microsoft SQL Server Data Tools, T-SQL Editor,
Click on Set as Default
Click OK.
Next time you'll be able to simply double clicking the file to open it in T-SQL.

Resources