Can't select Primary Output as target of shortcut in Visual Studio 2005 setup project - deployment

I've Added a setup project to my solution (didn't use the wizard) I then added the primary output of the Windows Application I have coded to the Applcation Folder node (Right click the setup project in Solution-Explorer and select View -> File System). I Right clicked the User's Desktop node and selected 'Create Shortcut to user's Desktop' in the context menu. Typed a name for the shortcut and then in the properties window clicked the ellipsis button for the Target property. A dialog is displayed but it won't expand the Application folder node and let me select the Primary Output as the target !!! WTF ???
I have done this on another project but I can't for the life of me figure out why I can't do it on this one. Hell! the projects are almost identical in every other way. Gah! going bald. Hoping someone out there is having a better day than me and has time to give me the probably screamingly obvious solution and make me feel lame.

You actually have to right-click on 'Primary Output From ' in your setup project, and create a shortcut to that. Then, you can move the shortcut over to the 'Users Desktop' location within your setup project.

I think you've created a shortcut to the desktop, on the desktop.
Try clicking on User's Desktop, then right-clicking in the right hand pane, and selecting "Create new shortcut" from there.

Related

How to rename routine name and save routine code in mysql workbench 6.0.9 community version in Mac OSX

Mysql Workbench 6.0.9 community version doesn't have the routine rename menu and can't save the routine code change in Mac OS X through the routine editor.
No need for a workaround. Just edit the name in the code which will then be parsed out and appear as tab title and in the overview area.
The only workable way is "routine group"
create a routine group by clicking the "Add Group" icon
open the group by click the created group icon as above
add the created routine into the group through the drag & drop
switch the group routines editor by clicking the bottom tab "Routines"
when edit the body of the routines, the change will be effective immediately and the change will be saved after you save the model
The following is the screen for the above steps

Eclipse Shortcut for Team - Synchronize with Repository

What are the shortcuts for the context menu actions "Team -> Synchronize with Repository" and "Team -> Update" on the whole project?
I have already found shortcuts, but these are executed only on the file i have currently opened. But I want to execute it on the whole project without having to scroll the project explorer to the top and right-clicking on the project.
If there are no such shortcuts, how can I create them?
As john.k.doe indicates, that's the right solution, but you also need to do something else in order to make the shortcut actually work, which is go to Window > Customize Perspective > Command Groups Availability and there just check the SVN box ;)
you can almost always get the key shortcuts you want by
go to preferences type "keys" or go to General -> Keys
in the field presented when you click on "Keys"
in the left pane, type the command you are interested in setting up a shortcut for:
the image below is from my mac, but it works the same way on windows/linux, you just might choose something besides Cmd-Y as your shortcut modifier. the U under User indicates that i was the one to add that modification.
I have written a small Eclipse plug-in which selects the active project in the Package Explorer so you can execute other actions (like 'Sync with repo' and 'Update') on it. I think this approach is more flexible compared to writing a plug-in that selects the project and executes a predefined action.
You can get the plug-in at http://code.google.com/a/eclipselabs.org/p/eclipse-tweaks/downloads/list, it is named "com.xakcop.select". Download it and put it in the dropins/ folder of your Eclipse installation. Then when you restart Eclipse, you will find a new command Select project in Windows->Preferences->Keys. The default key binding is Ctrl+Shift+Backspace but you can change it to whatever you want.
When you are in the Java editor just press Ctrl+Shift+Backspace, this will select the project that the current file belongs to in Package Explorer. Then press the shortcut for "Synchronize with repository" and you are done.
The source code of the plug-in is also available as part of my eclipse-tweaks project: http://code.google.com/a/eclipselabs.org/p/eclipse-tweaks/source/browse/com.xakcop.select
I think the answer to this question adresses the issue.
The quickest way I've found to update/synchronize, after having set the shortcut keys, is to click on the minimize button in the Project/Package Explorer and then press the keys. After the update, simply clicking on the last used file in the editor returns to the previous workspace state (provided the "Link with Editor" button in Project Explorer is selected).
I should clarify: I use a working set for each project. The working sets are displayed as default Top Level Elements in the Package Explorer so, by clicking on the minimize button the desired Project' working set, they collapse and are easy to select. Then, I apply the shortcut on the selected working set.
From my point of view, the problem is the focus of the commands you execute.
The Team commands Snychronize and Update are executed on the current object (In my case). As you noticed, when you execute the command on the project, the project is synchonized - when you do it on a file, only the file is synchronized.
What I did as workaround is the following:
I created Key-Bindings for the commands Show in (Navigator) (Alt-N), Go to (Alt-G), and Show View (Naviator) (CTRL+SHIFT+Q, N).
With Alt-N I show the current File in the Navigator. I can then use the keys to navigate to the root that I want to synchronize (it's not always the whole project for me). If the root is to far away I use Alt-G and type the Project or Folder where I want to go to and execute afterwards the Synchronize commands.
(Go to works only in the current view)
If you have selected the Project once you just have to switch to the navigator (Show View command) and execute your synchronize commands.
You could also use rgerganov's plugin then you would not have to execute as many commands.
The procedure works also with other views (package explorer, project explorer)
What about this approach? It should also work for other SCM's or commands you want to execute on any object in the explorer views.

Detached windows in Eclipse, is this possible?

Is there a way (plugin) in Eclipse to open detached windows which can be put on separate monitors: e.g one monitor will have my source, second threads and variables? The feature is in IntelliJ.
Yes. From the "Window" menu select "New Window". You can also drag the tabs off of the main window and a new window with just that tab will be created.
If you want a window with just the source code by itself, dragging the tab with the source in it won't work. What you can do is create the new window, drag the source over and minimize any other existing tabs within the new window to essentially leave a "source code only" view. You should be able to save this as a perspective and name it "Editor Only". This is somewhat cumbersome to setup, but once you have the perspective saved it should be pretty easy to get in and out of.
This is available in Helios and possibly earlier versions.
You can right-click on the title of any "View" and choose "Detach", this way you won't need two mail windows.

Is there a way to create an action in eclipse to export my jar to a certain directory?

Is there someone to configure a one click or one key action to export my build product to a certain directory? I'm coming from Visual Studio where I can set the output directory and press F6 to do this.
You can right click on project. Export... Then click on Java/Jar file and next. You will se something like this. Specify output filename, and on the next screen click on save description ( see pictures below ). Then after you saved jardesc to the project root, right click and "Create JAR" command. Two click, not one (if you check overwrite in first screen). If you want to automate with a shortcut, try the plugin in this answer.

Running Eclipse projects on the Command Prompt

I have a console-based C project in Eclipse. Is there a button I can press to launch my application in a Command Prompt window?
You can run your application as an External Tool, and there's a toolbar item for that. Looks like a green circle with a white arrow, beside a red toolbox. I'm a Java developer so I don't really know the CDT, but at least in the JDT you can run any command line tool in this way. (If it's not in your toolbar, right-click the toolbar and choose Customize Perspective… then find the External Tools item under Launch, and add it.)
First, click the down-arrow beside the button and then choose External Tools Configurations…. In the dialog, select Program from the left side and then click the New button in the toolbar. You are basically creating a shortcut that will live in the toolbar. At this point you can fill out the command line details to run your application. There's a lot of goodies like setting up environment variables, requiring a build of your projects before launching, etc. When you're done, save it, and you can run it as often as you like by clicking the arrow-and-toolbox button. You can come back and edit it later too, make duplicates, etc.
If you're working with a team, or you just want to do a really nice job:
In the Common tab, under Save as, choose Shared File. This will create a file in your project to represent the tool shortcut that you're building. That means you can check it into your source tree, and others can use it too. These files are XML so you want to check them in as text, not binary.
Start your working directory with ${workspace_loc} so that anyone who checks out your project can run it without having to adjust the shortcut for their file system.
Not directly, but you could configure an Ant task to run it (if it doesn't require console input), or you can configure firing up a JVM under Run|External Tools.