Eclipse Workspace Dock Badge For Mac Os X

Dock

  • Navigation
  • Main Page
  • Community portal
  • Current events
  • Recent changes
  • Random page
  • Help
  • Toolbox
  • Page information
  • Permanent link
  • Printable version
  • Special pages
  • Related changes
  • What links here

Then set the Dock unread count preference in Mail to this Smart Mailbox. For most of my other mailboxes, it is sufficient to check them once in a while, but I do not want them to show in the Dock unread count. This makes the dock unread count badge much more useful for me. A little utility for macOS that adds a Open Workspace menu entry which when activated opens the selected workspace in a new Eclipse instance. In addition Eclipse instance icons get a badge with the workspace name. This can be set in Preferences General Workspace. If unspecified the last segment of the workspace path will be used.

  1. 2,045 4 4 gold badges 19 19 silver badges 28 28 bronze badges the demo shows an iRAP client on windows machine, so it means a iRAPP rdp server will be installed on mac and that can be access through any of rdp client or through iRAP client only @Scott Walter – prateeak ojha Mar 28 '14 at 13:17.
  2. IMPORTANT: For those using Mac OS X Mountain Lion (10.8). When you launch Eclipse for the first time, you may see the message 'Eclipse can't be opened because it is from an unidentified developer.' To launch Eclipse for the first time, press the control key, click on the Eclipse icon, and select Open.
  3. The end effect is the same; the red updates badge will be missing from the System Preferences dock icon in macOS. How to Show Red Badge Icon on System Preferences in MacOS Again. Returning to the default setting which shows the red badge icon is easy, just change the 0 to 1 in the aforementioned command like so.

You are here: PTP > Photran > Technical FAQ

  • 1Photran FAQ
    • 1.1Usage Questions
    • 1.2Installation Questions

Usage Questions

How do I get Photran to work with my favorite compiler?

Photran does not call your compiler directly. It just invokes make and make calls your compiler. So, you need a makefile for your program. Photran has to know which compiler you are using so that it can parse the error messages, since different compilers use different formats for error messages. And we have a not-very-well-working feature (Managed Make) that is supposed to write a makefile for you automatically, which will be great when it works, but should be avoided at the moment. All the rest of Photran is completely independent of your compiler.
If you don't know what a Makefile should look like, there's a tutorial from an introductory CS course at UIUC [1], or another from the University of Hawaii [2]... or you can read the entire manual for GNU make [3].

Photran is running out of memory (I'm getting java.lang.OutOfMemoryError).

Under Linux, add -vmargs -Xmx512M to the end of the command line, i.e., launch Photran with a command like
Under Mac OS X, you can follow the Linux instructions if you are launching Eclipse from the command line. If you are launching from the Dock or Applications folder, change the -Xmx parameter in /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini (assuming Eclipse is located in /Applications/eclipse)
Under Windows, create a shortcut to Photran's 'eclipse' executable. Right-click the shortcut, and choose Properties. In the box containing 'eclipse.exe', add -vmargs -Xmx512M, so the entire line will read something like this:
For what it's worth, all arguments following -vmargs are passed directly to the JVM; -Xmx512M is a request to make 512 MB of heap space available to Photran.

When I create a project, I get the error 'Error launching external scanner info generator (gcc -E ...'

Under Windows, you probably have a problem with your PATH; you should also make sure you have GCC, the GNU C compiler, installed (at least the gcc-core package if you are running Cygwin). Make sure you have followed the instructions here to install Cygwin and put it on your Windows PATH. Most Linux distributions include GCC, so if you are getting this error under Linux, you may need to explicitly install GCC.

I can't get Photran to run my program ('Launch failed no binaries' or some such error message).

  1. In the Project menu, select Preferences, and make sure that the correct Binary Parser is selected for your platform: PE for Windows, Elf for Linux, Mach for OS X.
  2. Your workspace path cannot have spaces in it. A workspace in C:Documents and SettingswhoeverMy Documents for example, will give this error.
  3. If you are using g95, it has some of its own eccentricities. Spaces in the g95 path have also caused problems. If your binary 'can't find cygwin1.dll', see the next question...

When I run my Fortran program, it complains that it can't find a particular DLL.

When Windows looks for DLLs, it checks the following:
  • The directory from which the application loaded.
  • The current directory.
  • The system directory (e.g., C:WindowsSystem32)
  • The 16-bit system directory.
  • The Windows directory (e.g., C:Windows)
  • The directories that are listed in the PATH environment variable.
Eclipse workspace dock badge for mac os x 10.10
So, for example, if cygwin1.dll is not found, it needs to be copied into one of the above directories. (NOTE: Despite Microsoft's documentation, it seems that directories on the PATH are not always searched; put the DLL in your application directory or the System directory to be safe.)
This information was obtained from Microsoft's documentation for the LoadLibrary system call [4].

I get 'Cannot run program 'make': Launching failed'

Do you have 'make' installed? Is it in your path?
See the Photran installation instructions especially including how to set the PATH in Windows

When I open or focus an editor window, I get a java.lang.NullPointerException

This is a bug in Photran [5]: it occurs whenever you open or alter a fortran source file using the Project Explorer view instead of the Fortran Projects view, which comes with the Fortran perspective. As a quick workaround, don't use the Project Explorer when Fortran projects are open.
The bug has been fixed with April 29 build of Beta 4.0.5, which can be found here. Please note that you need Eclipse 3.4.2 and CDT 5.0 or above to get it working.

After enabling advanced features and selecting a Fortran source file, the Refactor menu shows no refactorings available. Now what?

Refactoring is only enabled for free form (.f90) not fixed form (F77: .f, .for) style source and cannot be used with mixed (Fortran/C++) projects. Create a new fortran project with a new free form fortran source file to test refactoring features.

Eclipse Workspace Dock Badge For Mac Os X Versions

Can I make a Remote Fortran Project?

The preferred method for developing Fortran applications remotely with PTP is to use synchronized projects.See [6]

Eclipse doesn't seem to find commands for [compiler, make, ...]

See this FAQ

How do I turn off the Fortran Indexer?

Eclipse workspace dock badge for mac os x 10.7

This can be controlled on a per-project basis as follows:

  1. Open properties for the project
  2. Open Fortran General
  3. Select Analysis/Refactoring
  4. Check/uncheck Enable Fortran analysis/refactoring

Indexing can be disabled completely by disabling the Photran Virtual Program Graph Core Plug-in:

  1. Open preferences
  2. Go to General > Startup and Shutdown
  3. Uncheck Photran Virtual Program Graph Core Plug-in
  4. Restart Eclipse.

Installation Questions

Where do I find the 'Photran End-User Runtime'?

Following the instructions on PTP/photran/documentation/photran6 allows one to install 'Fortran Development Tools (Photran)'; there's no mention of a Photran End-User Runtime. If the Fortran Development Tools are installed, the result is a lot of C/C++ development tools but no mention of Photran or Fortran tools anywhere in the Eclipse UI.

How can I install the production release of Photran on a machine without internet access?

Note that the guidance on PTP/photran/documentation/photran6 links to PTP/builds/4.0.0 which only contains release candidates, not production releases. Note also that installing one of the release candidates yields the same problematic results mentioned in the above question (no Fortran tools available in Eclipse.)

Retrieved from 'http://wiki.eclipse.org/index.php?title=PTP/photran/faq&oldid=423310'

Join the DZone community and get the full member experience.

Join For Free

Eclipse Workspace Dock Badge For Mac Os X 10.13

I'm passionate on both Mac and Eclipse. Although Eclipse runs well on a Mac, its not a marriage made in heaven. Its really hard to get the complete Mac experience with a portable UI tool kit. If you think of features like this one, its actually endless list. One such thing is the badge on the Dock Icon. In Mac, the Dock icon can have a badge - like the number of unread mails in your inbox. How much effort does it takes to add a badge to our RCP mail sample? Not much. Since SWT doesn't have a NSDockTile, we need a NSDockTile class with two methods, one to get the DockTile for the application and the other to set the badge on it (there is an easier way by using the Mac Generator tool, but that will be a patch to SWT itself, which I wanted to avoid):

And a two line code to set the badge:

There you go in the dock icon and in the minimized window:

Eclipse Workspace Dock Badge For Mac Os X 10 10 5

In case you were wondering how the GMail icon for the application is set, here is the code for that:

Oh, BTW, I've just started learning Objective C, Cocoa & related things. So stay tuned, you will see more Mac related posts here. Also what is your favourite Mac feature that you are missing in Eclipse?

From http://blog.eclipse-tips.com/

Opinions expressed by DZone contributors are their own.