ruper2/src/java/eclipse/org/krysalis/ruper2/eclipse/plugin EclipsePluginLogListener.java,1.1,1.2 UpdateAction.java,1.2,1.3
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/ruper2/src/java/eclipse/org/krysalis/ruper2/eclipse/plugin
In directory sc8-pr-cvs1:/tmp/cvs-serv18107/src/java/eclipse/org/krysalis/ruper2/eclipse/plugin
Modified Files:
EclipsePluginLogListener.java UpdateAction.java
Log Message:
Eclipse Update button for Project works
LogListener implemented and tested
Index: EclipsePluginLogListener.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/eclipse/org/krysalis/ruper2/eclipse/plugin/EclipsePluginLogListener.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** EclipsePluginLogListener.java 13 Oct 2003 21:14:01 -0000 1.1
--- EclipsePluginLogListener.java 21 Oct 2003 15:26:16 -0000 1.2
***************
*** 18,24 ****
private ILog m_log = null;
! private String m_pluginId = null;
! public EclipsePluginLogListener(Plugin plugin) {
m_log = plugin.getLog();
m_pluginId = plugin.getDescriptor().getUniqueIdentifier();
--- 18,27 ----
private ILog m_log = null;
! private String m_pluginId = RuperPlugin.PLUGIN_ID;
! public EclipsePluginLogListener() {
! // get default shared instance
! Plugin plugin = RuperPlugin.getDefault();
! // get the logger from the plugin
m_log = plugin.getLog();
m_pluginId = plugin.getDescriptor().getUniqueIdentifier();
Index: UpdateAction.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/eclipse/org/krysalis/ruper2/eclipse/plugin/UpdateAction.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** UpdateAction.java 17 Oct 2003 21:12:44 -0000 1.2
--- UpdateAction.java 21 Oct 2003 15:26:16 -0000 1.3
***************
*** 65,74 ****
}
- private void initializeLog()
- {
- // Set logging context..
- //Logger logger = Logger.pushContext();
-
- }
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
--- 65,68 ----
***************
*** 76,80 ****
public void run(IAction action)
{
! //initializeLog();
try
--- 70,75 ----
public void run(IAction action)
{
! // Set logging context..
! Logger logger = Logger.pushContext(new EclipsePluginLogListener());
try
***************
*** 123,126 ****
--- 118,125 ----
//TODO RuperPluginLog.errorDialog("Failed to download files " + exp.getMessage());
}
+ finally {
+ Logger.popContext(logger);
+ }
+
}
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54