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 91174 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), 3.24 KB, created by
Jacek Pospychala
on 2008-02-29 08:44:20 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Jacek Pospychala
Created:
2008-02-29 08:44:20 EST
Size:
3.24 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 13:38:34 -0000 >@@ -58,4 +58,10 @@ > priority="high"> > </content-type> > </extension> >+ <extension >+ point="org.eclipse.ui.startup"> >+ <startup >+ class="org.eclipse.ui.internal.views.log.Activator$Startup"> >+ </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 13:38:34 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2007 IBM Corporation and others. >+ * Copyright (c) 2008 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -11,19 +11,29 @@ > *******************************************************************************/ > 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 { > > // The plug-in ID > public static final String PLUGIN_ID = "org.eclipse.ui.views.log"; //$NON-NLS-1$ > >+ public static class Startup implements IStartup { >+ >+ public void earlyStartup() { >+ Platform.addLogListener(Activator.getDefault()); >+ } >+ >+ } >+ > // The shared instance > private static Activator plugin; > >@@ -49,6 +59,7 @@ > public void stop(BundleContext context) throws Exception { > plugin = null; > super.stop(context); >+ Platform.removeLogListener(this); > } > > public static Activator getDefault() { >@@ -88,4 +99,19 @@ > return imageDescriptorFromPlugin(PLUGIN_ID, id); > } > >+ public void logging(IStatus status, String plugin) { >+ // initializes logview on first comming log entry >+ 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$ >+ } catch (PartInitException e) { // empty >+ } >+ } >+ } >+ }); >+ } > }
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