Export single Eclipse Perspective and Settings - eclipse

I customized my Eclipse for a special Latex Perspective and saved this perspective as "MyLatex". I even added shortcuts in my texlipse preferences, so that I can type "tab"+strg+space to insert a table.
Now I would like to offer this to friends. I found out that I can use Export->General->Settings, but this exports ALL perspectives.
Is there any way to export only the perspective "myLatex" and the texlipse editor templates?
Best regards
Philipp

There exists another way to do this.
Share Eclipse perspective layouts across multiple workspaces
To save your perspective, select Window > Save Perspective As… from
the application menu. A dialog should popup (shown below), prompting
you for a perspective name. Enter a name that you’ll remember, eg. My
Java or Debug Jack. Click Ok once you’ve entered a new name.
Note: You can choose to overwrite one of the default perspectives, eg.
Java, without fear. However, I prefer to leave these intact, so always
choose a new name, but you can choose whatever works for you.
Now you can go through the normal routine of exporting the preferences
to a properties file via File > Export > General > Preferences. Then
import the same file in another workspace via File > Import > General > Preferences. All you now have to do is switch over to the perspective you saved and all your layout settings will be restored.
If you overwrote one of the default perspectives, you may have to
select Window > Reset Perspective… to restore the saved settings.
If you’ve chosen to create a new perspective, be sure to point your
Run/Debug settings to the new perspective under Window > Preferences >
Run/Debug > Perspectives. For example, if you made a new perspective
based on the Debug perspective, then you’ll need to change references
to the Debug perspective to the My Debug for launchers you use.

I don't know of a nice way to export/import one perspective from eclipse, but maybe try the following:
open this file -
workspace/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
and copy the part that relates to your new perspective to the same file for the users you want to share it to. If this doesn't work you may have to replace the entire file in their workspace with your one.

In my case I had to copy from one workspace to another
.metadata.plugins\org.eclipse.e4.workbench

Related

Where is the editor layout stored in VSCode?

Whenever I open a folder that I've already worked in, VSCode is clever and reopens it in the exact same layout I already had it. However, I have absolutely no clue how it does that - I can't find a config file or anything anywhere, which is something I'd love to have; in my specific usecase I create a lot of workspaces and they all have the same sort of structure, so if I could save that layout so I didn't have to recreate it every time it'd be great.
The answer ends up being super annoying... they're stored in %APPDATA%\Code\User\workspaceStorage in some hashed looking folder names, which contain a pretty useless workspace.json file (all workspaces) and all other info stored in a *.vscdb (and its associated *.backup file), which is a SQLite Format 3 file storing all that information. It's barely used as a database from what I can see, a json file could do just as well, but I digress...
tl;dr they're a pain to get out.
VSCode mainly saves all of the preferences and user choices in the settings.json file. Moreover, you can actually set your preferences in VSCode Settings. But if you want to copy/paste your workspace settings to different workspaces, I guess the best choice would be to look at your settings.json layout settings.
Go to File > Preferences and adding them in the right pane, in "User Settings" if you want to keep them for all workspaces or in "Workspace Settings" for this workspace only.
To see settings for layouts and explorer, search for explorer.
You can read more about settings.json defaults and attributes exposed here

How can I write to the setup file from Navigate - Open Setup?

The new Eclipse, I don't know from which version, has in Navigate menu the access to different, local and global setups.
Navigate - Open Setup - choose local/global/user setup
Even recent Eclipse documentation has not a word about that feature. And when I open any property by Text Editor or somehow else, it is not editable.
How can I edit the Eclipse setups using the special feature, obviously introduced for that aim?
You can add items to Workspace setup by opening it, then right click on Workspace and select an item to add
Same option could be available when you open a resource in editor. Not all the items offer the New Child option.
On closing the setup, it will ask to save it.

Tracking file in Netbeans IDE Projects window

Just getting hands on with NetBeans 8.0.2. Wondering if the IDE has similar features as Eclipse or Visual Studio like
Track current file in Projects explorer - When working with large projects, with lots of files open, if I want to navigate to current file in projects window it is getting difficult.
On top of it, the project explorer is showing the folders/files in a case sensitive manner resulting difficult to locate the exact file/folder.
Is there a settings or two to control this behavior?
For the first part:
use the option "View -> Synchronized Editor with views" to automatically select the current file in the editor in the project window.
Alternatively (what I prefer) use "Navigate -> Select in Projects" to manually select the current editor file in the project window .
You can find more information about navigating in the IDE in the manual:
http://docs.oracle.com/cd/E50453_01/doc.80/e50452/work_java_code.htm#CIAGADFI
Regarding the second part: Java is case sensitive. MyClass is something different than MyCLASS so it has to treat the file names as case sensitive.

How to make sure that the rcp application always open in specific perspective?

I am working in an rcp application which I want to always open in specific perspective .I tried mentioning -perspective id but that is not solving my issue.And suppose my workbench is closed in perspective B then when user open it for second time it is always opening from B.
Any clue on this will help.
Assign your default perspective in Windows > Preferences > General > Perspectives preference page.
Can also be done through config.ini file Check here.
Using plugin_customization.ini file. Check here Setting default perspective in Eclipse for plugin development

Is there a way to sort projects in Eclipse GGTS?

I am using the Groovy-Grails Tool Suite (GGTS) which is basically just Eclipse with some Groovy/Grails specific stuff on top of it.
I added a new source folder (Properties > Java Build Path) but it is appearing in a weird order. Is there any way I can manually order the source folders in Project Explorer?
You can see in this image that the "test/functional" source folder is not next to the other test folders. At a minimum I'd like to have them all together, and ideally I'd like to choose the order. There are some other folders I'd like to move around too if I could.
I also want to keep using this Project Explorer view since it puts a Grails specific spin on things, like the "domain," "controllers," "views," and others.
I am using GGTS 3.1.0.RELEASE which looks like it is built on Eclipse 4.2.1.
Not sure how I missed it, but under Preferences > Grails > Project Explorer you can order the default set of objects (domain, controllers, etc). That would help with part of my problem of wanting to order all the objects.
After I did that, I exported the preferences (File > Export > Preferences > All) to a file. In that file I found a String like this:
/instance/org.grails.ide.eclipse.explorer/org.grails.ide.eclipse.explorer.ordering
I updated that, adding "Stest/functional;" after "Stest/integration;", imported the preferences (File > Import > Preferences), and restarted the workspace.
I wish the plugin's preferences (where you can change the default ordering) allowed you to add new objects right in the preference editor, but at least there is some way to do it.