Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 91116 Details for
Bug 173040
[logview] Allow to open view upon .log entry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
patch.txt (text/plain), 2.95 KB, created by
Jacek Pospychala
on 2008-02-29 01:33:45 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Jacek Pospychala
Created:
2008-02-29 01:33:45 EST
Size:
2.95 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.views.log >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.views.log/plugin.xml,v >retrieving revision 1.3 >diff -u -r1.3 plugin.xml >--- plugin.xml 4 Oct 2007 16:07:18 -0000 1.3 >+++ plugin.xml 29 Feb 2008 06:24:17 -0000 >@@ -58,4 +58,7 @@ > priority="high"> > </content-type> > </extension> >+ <extension >+ point="org.eclipse.ui.startup"> >+ </extension> > </plugin> >Index: src/org/eclipse/ui/internal/views/log/Activator.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.views.log/src/org/eclipse/ui/internal/views/log/Activator.java,v >retrieving revision 1.3 >diff -u -r1.3 Activator.java >--- src/org/eclipse/ui/internal/views/log/Activator.java 31 Dec 2007 00:37:51 -0000 1.3 >+++ src/org/eclipse/ui/internal/views/log/Activator.java 29 Feb 2008 06:24:18 -0000 >@@ -11,15 +11,17 @@ > *******************************************************************************/ > package org.eclipse.ui.internal.views.log; > >+import org.eclipse.core.runtime.*; > import org.eclipse.jface.resource.ImageDescriptor; > import org.eclipse.jface.resource.ImageRegistry; >+import org.eclipse.ui.*; > 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 { >+public class Activator extends AbstractUIPlugin implements ILogListener, IStartup { > > // The plug-in ID > public static final String PLUGIN_ID = "org.eclipse.ui.views.log"; //$NON-NLS-1$ >@@ -40,6 +42,7 @@ > public void start(BundleContext context) throws Exception { > super.start(context); > plugin = this; >+ Platform.addLogListener(this); > } > > /* >@@ -47,6 +50,7 @@ > * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) > */ > public void stop(BundleContext context) throws Exception { >+ Platform.removeLogListener(this); > plugin = null; > super.stop(context); > } >@@ -88,4 +92,26 @@ > return imageDescriptorFromPlugin(PLUGIN_ID, id); > } > >+ public void logging(IStatus status, String plugin) { >+ >+ // initializes logview on first comming log entry and unregisters listener >+ final IWorkbench workbench = PlatformUI.getWorkbench(); >+ workbench.getDisplay().asyncExec(new Runnable() { >+ public void run() { >+ IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); >+ if (window != null) { >+ try { >+ window.getActivePage().showView("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$ >+ Platform.removeLogListener(Activator.this); // don't need listener as logview showed up >+ } catch (PartInitException e) { // empty >+ } >+ } >+ } >+ }); >+ } >+ >+ public void earlyStartup() { >+ // empty - all initialization is in start(BundleContext) >+ } >+ > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 173040
:
82402
|
91116
|
91157
|
91174