How to associate a file with an editor in Fex - actionscript-3

Within FlashBuilder it is possible to open a media file (such as an image) by right clicking on the file then selecting Open With and then choosing from a list of applications to open the file with the most appropriate editor. The trouble with this approach is that it is time consuming and has to be repeated whenever a similar file type needs to be edited from within FlashBuilder.
How can I associate a file (e.g. audio.png) with an editor (e.g. Photoshop) to permanently connect the file type with the application thus ending the process of selecting the application every time a similar file type has to be edited.

Go to settings under Window->Preferences->General->Editors->File Associations.
Add a new file type (Add button near top of dialog).
Add a new "Associated Editor" in the bottom portion of that dialog. (Second Add button towards bottom.)
Select "External Programs" after clicking "Add" to pick whatever program.

you can associate file types with your app by using the <fileTypes> tag in your descriptor-app.xml (read here). Or use NativeApplication.setAsDefaultApplication() (read here), However, you can not make another application the default in flex.

Flash Builder is just an Eclipse plugin.
Here are the instructions to do what you are asking in eclipse.
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-51.xhtml
Associating editors with file types To associate editors with various
file types in the Workbench:
Open the command link General > Editors > File Associations
preference page.
Select the file type from the File types list, or click Add to add a
type that is not already on the list.
In the Associated editors list, select the editor that you want to
associate with that file type. To add an editor to the list:
Click Add. The Editor Selection dialog box opens.
Select Internal Editors or External Programs, depending on whether the editor that you want was built for the Workbench or runs outside
the Workbench.
If you select External Programs, you can click the Browse button to browse the file system.
Select the editor from the list and click OK.
Click OK to finish associating the editor with the selected file type.
When you associate an internal editor with a file type, that editor
opens in the editor area of the Workbench. For example, if you
double-click a file in the Project Explorer or an entry in the
Bookmarks or Tasks view it opens in the editor area.

Related

Custom ribbon does not display when database is opened from File menu

A custom ribbon is assigned to an (entire) database in the options for "Current Database" and displays when I open the database with a shortcut like this:
"C:\Program Files (x86)\Microsoft Office\root\Office16\MSACCESS.EXE" D:\d\music.accdb
However, if I close the database and re-open it from the File menu, the custom ribbon is no longer displayed.
If I attempt to load the custom ribbon from VBA, I get an error stating it is already loaded. (The "Client Settings" option is set to show add-in user interface errors, as of course the ribbon would otherwise not display when opened using the first method.)
I specifically re-assigned an individual form from its own custom ribbon to the database-wide custom ribbon to see if this would make the ribbon appear, but it did not when I opened the form. (The form's specific custom ribbon appeared okay before the reassignment.)
I'm using Access 16 as part of Office 365
.
Also, the database is listed twice on recently opened files. I have double-checked again and again: the exact same file is listed twice, with two different timestamps, as the last two files opened. Clicking the icon for one opens the database with the custom ribbon displayed; the other does not. If I instead browse and re-open the closed file from the Windows folder, the custom ribbon is not displayed.
Any ideas what would cause this?
dbmitch put me in the right direction. I was able to solve this and also eliminate the duplicate listing for the database on the File: Open: Recent menu by deleting all records in the table USysRibbons, performing a compact & repair, then restoring data to USysRibbons.

Create a standalone form shortcut in Microsoft Access 2013

I currently have a functioning form that searches through my database by calling a query. What I'm trying to do is turn this into a standalone application where I can simply open a file and only the form opens, running the database on the back-end. I have tried running a macro that opens the form, and I have tried creating a shortcut to my desktop, but nothing has worked.
Does anyone have any suggestions? Anything that will only show the form and the search results would be good (desktop shortcut, HTML file, etc.).
Thanks!
You will need to split your database so that the tables are located in a separate back-end file (which can be kept on a server). These instructions apply to Access 2007 and 2010 but the process is very similar for 2013.
Once this is done, your tables will become linked tables (stored in a separate file) and your front-end .addcb file will only contain queries, forms and reports.
You can control which form opens when the application loads through File -> Options -> Current Database. There are also several other useful controls here for limiting what the user can do; ie.
Hiding the list of database
Hiding the tabs (you will therefore need to create buttons to move between forms)
Hiding the Ribbon and/or status bar
Disabling Layout View
It's safest to change these settings on a copy, so you don't inadvertently lock yourself out; however, by holding down shift when opening the file from within Access, most of these options will be bypassed and you will be able to edit the database / revert these settings should you need to.
In terms of making it a "stand-alone application", it is possible to create a copy that will open without requiring the full version of MS Access on the user's PC (instead using Access Runtime).
I always distribute my front-ends as .accde format (File -> Export ACCDE). The benefits are as follows:
Smaller file size
Optimise memory usage / improves performance
VBA code runs but cannot be viewed or edited
I think what you're looking for is here:
http://office.microsoft.com/en-us/access-help/command-line-switches-for-access-HA010166605.aspx
and
http://office.microsoft.com/en-us/access-help/command-function-HA001228801.aspx
Basic idea, create a macro called AutoExec that checks for a command line argument when opening the database. Setup a shortcut with a command line argument (whatever you decide to name it, I'll use 'lookuponly' as the example.) like this:
"C:\Users\%Username%\Desktop\MyDatabase.mdb" /cmd "lookuponly"
when you double click the shortcut it should auto-run the macro and open your lookup form. Of course under newer versions of access you'll have to set the location of the database as a trusted location or access will attempt to block the database.
http://office.microsoft.com/en-us/access-help/decide-whether-to-trust-a-database-HA010256412.aspx

Go to file when file already open in other panes/windows open in Sublime 2

If I have several panes (groups) open and do CTRL+P (go to anything) and type the name of a file which is already open in another pane, Sublime will open this file in the pane I started Go to anything from. I want it to go to any of the other panes, where this file is already opened instead of opening a new instance of the file.
How can I achieve this?
There are a couple of packages/plugins that may be close to what you want:
GotoOpenFile, you can choose from a list of views in whole window or the active group:
https://sublime.wbond.net/packages/GotoOpenFile
or the newer Zen Tabs, which has some other useful file status as well as tab management
https://sublime.wbond.net/packages/Zen%20Tabs

Sublime text 2 - Zip open files with full path name and dir structure

Is there a plugin or a macro, that creates a tar ball or a zip of all opened files / tabs in Sublime Text 2.
If not, how to make a plugin that does that?
I was checking the API of Sublime Text 2, only to know that there is no method that gets the full path of all open files.
However, I see that we have an option when we right click in any file - "Copy file path".
Which method it calls? Can I replicate the method to all tabs switching one by one? If yes, then how to cycle through open tabs one by one using the API?
You can use window#views to get all the views (as a list). Then iterate on each view and use view#file_name to get the files. As for creating zips, take a look at the zipfile library.
For your particular case, I would create a window command. You can then bind that to a key combination or add it as a command palette entry. Finally, to set the visible view, you can use window#focus_view. You may also need window#focus_group if you have multiple groups.

IntelliJ IDEA compare tabs

I'm using IDE 10.5 Community edition.
In one project, I have multiple modules. I also have opened multiple tabs in the editor from different modules.
Is there a way to compare the content of two different tabs in the editor, which can be from different modules?
Select two files (with pressed Ctrl) in project view panel → Right Mouse button → Compare Files.
Right click on the file in project view → Compare With... (Ctrl+D)
If you have opened one file in editor you can navigate in project view to another file and press right mouse button on that file Compare with Editor.
It is possible to compare file against your clipboard content. View → Compare With clipboard
Also you can use idea as external diff tool idea diff file1.txt file2.txt
Outdated; Old verison of IntelliJ: Also you can compare files from 'Commander' tab, just select two files in right and left panels, right click on any of them → Compare two files
There is a plugin Compare Tab With Editor which may not have existed when this question was asked. I'm using it with IntelliJ 2017.2.
There is an updated version for IDE versions 2020.3 — 2022.1, Compare Tab With Editor 2.
One simple solution is the 'Compare with Clipboard' function (in your contextual menu - right click), which allows you to compare the contents of an editor tab with whatever is in your clipboard. As long as you can copy something, you can compare it against a file...
In 2019, select your file and "compare with editor" (which is your opened tab)
I use this to have a config file loaded in intelliJ (which is changed by the server, not stored in my project) and need to compare it to a baseline (in my project)