Bugzilla – Attachment 216 Details for
Bug 455
disabling the auto swap buffer mode causes very high memory consumption
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
activator of the plugin with some useful flags
Activator.java (text/x-java), 1.86 KB, created by
Julien Gouesse
on 2011-01-06 17:15:00 CET
(
hide
)
Description:
activator of the plugin with some useful flags
Filename:
MIME Type:
Creator:
Julien Gouesse
Created:
2011-01-06 17:15:00 CET
Size:
1.86 KB
patch
obsolete
>import org.eclipse.jface.resource.ImageDescriptor; >import org.eclipse.ui.plugin.AbstractUIPlugin; >import org.osgi.framework.BundleContext; > >/** > * The activator class controls the plug-in life cycle > */ >public class Activator extends AbstractUIPlugin { > > // The plug-in ID > public static final String PLUGIN_ID = "jogl2viewer"; > > // The shared instance > private static Activator plugin; > > static { > // these properties have to be set very early at runtime to be efficient > // remove flickering > System.setProperty("sun.awt.noerasebackground", "true"); > // disable DirectDraw/Direct3D to avoid conflicts with OpenGL > System.setProperty("sun.java2d.noddraw", "true"); > // enable the full Java2D/OpenGL pipeline > System.setProperty("sun.java2d.opengl", "true"); > } > > /** > * The constructor > */ > public Activator() { > } > > /* > * (non-Javadoc) > * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) > */ > @Override > public void start(BundleContext context) throws Exception { > super.start(context); > plugin = this; > } > > /* > * (non-Javadoc) > * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) > */ > @Override > public void stop(BundleContext context) throws Exception { > plugin = null; > super.stop(context); > } > > /** > * Returns the shared instance > * > * @return the shared instance > */ > public static Activator getDefault() { > return plugin; > } > > /** > * Returns an image descriptor for the image file at the given plug-in relative path > * > * @param path the path > * @return the image descriptor > */ > public static ImageDescriptor getImageDescriptor(String path) { > return imageDescriptorFromPlugin(PLUGIN_ID, path); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 455
:
215
| 216