Need help finding documentation on authoring command links - eclipse

I am writing online help for my Eclipse plug-in. I want to create live help with command links to provide quick access to the Help->Install New Software in Eclipse. The 'Embedding commands in help' page in the Platform Plug-in Developer Guide suggests there are "a large number of useful commands already defined in the workbench".
Unfortunately, after a some search I seem to be unable to find documentation on the available commands I can use as parameters to executeCommand() in my link.
Can you please tell me what parameter to use to create a link to Help->Install New Software in Eclipse and also point me to the documentation of other available commands if such exists at all.
Kind regards

The command id for Install New Software is org.eclipse.equinox.p2.ui.sdk.install
I found this using the Eclipse Search / Plug-in Search and searching for the org.eclipse.ui.commands extension point (which is used to define commands). I then looked at the search results until I found the correct command.

Related

Eclipse Oomph: Suppress Welcome Page

I want to create an Eclipse installer which installs an Eclipse that doesn't show a welcome page.
This blog post suggests to create a settings file with a ResourceCreationTask:
<setupTask
xsi:type="setup:ResourceCreationTask"
id="rtt.suppress.welcome.page"
content="eclipse.preferences.version=1\nshowIntro=false"
targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs"
encoding="UTF-8">
<description>Suppress showing of the Welcome page.</description>
</setupTask>
The author then adds a comment that this leads to a problem because ${workspace.location} is undefined during installation. The suggested solution however is to replace ${workspace.location} with ${install.location}/ws. That would create a file in a subdirectory of the install location and doesn't help unless this location happens to be the workspace.
Another suggestion is to targetURL="${osgi.instance.area|file}.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs". That doesn't help either.
Unfortunately I was unable to find a documentation on which variables can be used with Oomph.

"List All References" not available in context menu in VSC 1.29.1

I recently upgraded to VS Code 1.29.1 on my Ubuntu virtual machine and was very excited to try out the new List all References preview, but I can't seem to invoke it anywhere. It isn't in the context menu, and trying View: Show Reference Search through the Command Palette does nothing.
Image: No "List All References" option in the context menu when highlighting a function name.
Why does the option not appear, and is there anything I can do to enable it?
My working context:
I'm working on Ubuntu 14.01 LTS and this is for a C project; all of the files in the workspace are *.c, *.h, Makefiles, and perl scripts. I have Intellisense for C/C++ enabled with the ms-vscode.cpptools extension. The only other Marketplace extensions I have installed are color/icon theme-related. Symbol searching, go/peek to declaration/definition, quick info, error squiggles, etc. are all working properly.
Things I've tried:
verified that I'm actually using version 1.29.1 via the Help>About menu option (and confirmed multiline regex searching works)
skimmed the GitHub repo for both open and closed issues and didn't find any similar issues
searched the docs and patch notes
tried various .c and .h files within the workspace.
I'm not familiar enough with the extension and language provider architecture to know where to go from here, and I couldn't glean any caveats from the docs about the new List All References feature, so any help is appreciated.
The List All References feature is based on Find All References, which is supposed to be implemented by the language provider. In my case, the ms-vscode.cpptools language provider has not implemented Find All References, so the List All References feature is unavailable.
(I realized the one thing I hadn't checked were the issues in vscode-cpptools.)
Relevant issue: https://github.com/Microsoft/vscode-cpptools/issues/15#issuecomment-438905148
I guess as a PSA, if you're on VSC1.29.1 and don't have the List All References option, look to your language provider.

Can't find "updater" on ImageJ 1.49

Sorry for this question, but have been trying to figure it out for a while...
I'm trying to install a SIOX for ImageJ using the updater, but the update option (Help > Update imageJ) don't show any option to get plugins directly from the web, only to update ImageJ. and can't find any other link to an "updater" as suggested in the main page.
So, I downloaded a jar file Siox_Segmentation-1.0.5-20160117.192327-11.jar and copied it into plugins/jars, re-open ImageJ... but it didn't work either. I'm working with MacOSX and ImageJ 1.49 installed using home brew.
Thanks for any advice.
Carlos Alberto
The ImageJ updater functionality is part of ImageJ2 (which includes full backwards compatibility to ImageJ 1.x and is also part of Fiji, as you discovered).
You can download vanilla ImageJ2 from here.
Information on how to follow an update site is available on the ImageJ wiki.
For general usage questions about ImageJ, the ImageJ forum is the best place to ask.

What language does SmartFoxServer 2x use on the server side?

I have downloaded and started the community version of SFSx2. I read everything on their documentation page:
http://docs2x.smartfoxserver.com/DevelopmentBasics/introduction
Which unfortunately only talks about flash client side code. Nothing about the corresponding server side code, nor about html5 client side which I need.
I downloaded the HTML5 examples, which took me a long time to find (they are here: http://www.smartfoxserver.com/download/get/140 )
None of the examples work, as they can't connect to the server. Presumably, this is because the examples only supply client side code. There are no instructions supplied on how to install or run the examples.
I can find no mention on the smartfox documenation on the following:
1) what language is used on the server side. One assumes its java.
2) how does one deploy java code to the smartfox server? I cant find any mention of this in the docs.
3) how does one find and install the server part of the client side examples (which are Tris, GameLobby, BuddyMessenger, AdvancedChat).
I applied to be allowed to post on the smartfoxserver forums, but no reply yet.
I also found it hard so I share what I've found out.
The server extensions are written in Java. I used Eclipse JUNO to write my code.
You can download Eclipse here. http://www.eclipse.org/downloads/
You export the extension in jar format from eclipse into you extension path. The name of your file has to end in 'extension' eg MyFirstExtension.jar otherwise sfs2x wont recognize it. Your extension path will be something like this: C:\Program Files\SmartFoxServer2X\SFS2X\extensions\MyFirstExtension\MyFirstExtension.jar if your working in windows.
You will find docs on JAVA API here. http://docs2x.smartfoxserver.com/api-docs/javadoc/server/
This is a link to the basic example code: http://www.smartfoxserver.com/download/get/120
Unzip the content into the [SFS2X_install_folder]/SFS2X/www/root/examples folder, overwriting the existing file. Run the index.html file, then navigate to another index.html to open the example. Run the sfs2x-standalone.exe first of course(see below). If you followed the 'server configuration tutorial' on smartfox website and changed the server ports, the examples wont work. Leave the ports alone until you start to understand the server.
This is a link to the flash example code: http://www.smartfoxserver.com/download/get/108
You will find the example code for apps mentioned above. They are written in Adobe Flash Builder and Java extensions. I don't know if there is any code for HTML5 but the Java server code and AS3 is there.
I also found that using the standalone server was the way to go rather than using SFS2x as a service. c:\program files\smartfoxserver2x\sfs2x\sfs2x-standalone.exe. Using the exe gives you the command prompt window. You can use the window for debugging and see the state of the server when it starts.
Most of the examples should work without creating extensions but to create an extension out of source examples:
Create and setup a new project in your Java IDE. You will have already set up a workspace.
Copy the content of the /source/server/src folder to your project's source folder.
Add SFS2X Libraries. Go to properties of the project -> Select Java Build Path -> Click Library Tab -> Add external jar. Add 'sfs2x.jar' and 'sfs2x-core.jar' from C:\Program Files\SmartFoxServer2X\SFS2X\lib folder. To create the extension, export jar file to extension path. Restart server.
Another problem I had was the Java Version I was using. I had to use Java1.6 with my version of sfs2x when writing extensions. This was trial and error as there was no documentation. There may be a newer version out now.
I had to copy all the server source into eclipse to try and understand how things were done. It was a way of having all the code in one place. There was a lot of trial and error as getting help is hard. I eventually accomplished what I set out to achieve. Good Luck.
SmartFox Server is easy to use even with extension. documentation Give try to Nuggeta solution for game development too. No extension needed at first. This is optionnal.
We have full HTML5 open source game walkthrough on github

TeXlipse spell-check configuration

I'm turning kind of desperate looking for a way to enable spell checking in TeXlipse. Of the application itself I am very fond. I've tried things I found here and on other forums, and on the user manual (http://texlipse.sourceforge.net/manual/spelling.html), but I can't find clear instructions to configure spell checking, i.e. what path directory to choose, where can I find .dict files,… I mean step-by-step instructions from the beginning to the end. The User Manual entry is too vague for me.
I'm using Mac OS X 10.6.6, Eclipse 3.6.2, TeXlipse 1.4.1.
The answers are in the manual:
http://texlipse.sourceforge.net/manual/spelling.html
Get the dictionaries here: sourceforge page
Save them wherever you want. Could be /Users/your_name/documents/dictionaries, for example.
Enable 'Use built in spell checker' in the Texlipse options in eclipse.
Set both directories to whatever you used above.
Enable eclipse's own spellchecker, if it isn't already.
Restart the IDE.
I had a little trouble getting it to work nicely; I keep getting the following error message in the console. There are about 10 posts on the texlipse forum about it with no answers, so presumably it's not a big deal.
running: null
Error running spell checker
Make sure that you set the language for the project under
Properties > Latex Project Properties > Language setting to "en"
after telling it to use the built in spell checker in
Preferences > Texlipse
For me, it turned out to be related to file extensions. I pointed the texlipse spell checker to the same directory that eclipse stores its dictionaries and it didn't work. Then I made my own directory and generated my own dictionary using aspell (as mentioned in the texlipse FAQ), but this time I used a simple "dict" extension instead of the "dictionary" as in the Eclipse installation and it worked.