title: How to add Debug flag in rcp application?
body: <p>I want to develop an application where i want to add a item on menubar But depending on the mode(debug mode or normal mode).In test mode the item should be visible and if the application is running in normal mode than item should not be visible.</p>
  
  <pre><code> public static final boolean DEBUG = (System.getProperty("osgi.dev") != null); 
  </code></pre>
  
  <p>So far i found something like this which could tell whether the application is debug mode or not but however this trick is not working. It is returning true always irrespective of debug mode and normal mode .Any pointer regarding this will help me.</p>