Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Programatically access to Actions : How capure them
Programatically access to Actions : How capure them [message #27688] Tue, 06 May 2003 06:12 Go to next message
Eclipse UserFriend
Originally posted by: giherf.voila.fr

As Glauco Reis, I want programatically access to Actions.
but, i would like to capture them.
In fact my final goal is to determine the time to startup Eclipse and to
shutdown.

what I already tested :
**********StartUp******************
- platform.getDebugOption(Platform.Option_STARTTIME)
but it's only with debug mode...

- LogListener
whith this, i can acces to /metadata/.log.
but, beacause my plugin references extension point =
"org.eclipse.ui.startup", it's faster as LogPlugin, and the time indicated
is older than a simple "calendar.getDate()".... (made in the startup
method of my plugin).

- WindowsListener
in this case, the Window is opened before my listener. In fact, I can
hear "close" | "activated" | "disable" events but not "OPEN"....

**********shutdown********************
- WindowsListener
here, my plugin shutdown after the Event "CLOSE" of a windowlistener. but
obviously, Eclipse closes the window, well after the "close" action of the
menu or whith the cross in the right corner of the windows....

***************************************
some tracks ???
I've seen methods closing() and openning() in Workbench (i think).
but what must i do to capture Events, if Events are there.

How to determine when the user can realy use his software.
and when he want to quit it.

thanks. giher
Re: Programatically access to Actions : How capure them [message #28613 is a reply to message #27688] Wed, 07 May 2003 15:10 Go to previous message
Eclipse UserFriend
Originally posted by: gsrt.terra.com.br

--------------85F4BCF51DE1808160B57DDB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Giher,

I guess you will not receive answers for this kind of question, here.
Looking along the time (search for older responses), we can see the guys drive
us to use the usual and documented of Eclipse.
Perhaps they are right, because the internals are changing along the time,
but sometimes we need internal information to make things happen.
Today, the only way is looking at source code, wich take a lot of time.
Could be great if someone write a book "Undocumented Eclipse" like.
Anyway, I don't know if will solve your problem, but try to "hack" the class
org.eclipse.core.launcher.Main.
This is the first Java class, called from EXE stub.You can made your measures
from start to end of main method.

[]s
Glauco Reis

Giher Francois wrote:

> As Glauco Reis, I want programatically access to Actions.
> but, i would like to capture them.
> In fact my final goal is to determine the time to startup Eclipse and to
> shutdown.
>
> what I already tested :
> **********StartUp******************
> - platform.getDebugOption(Platform.Option_STARTTIME)
> but it's only with debug mode...
>
> - LogListener
> whith this, i can acces to /metadata/.log.
> but, beacause my plugin references extension point =
> "org.eclipse.ui.startup", it's faster as LogPlugin, and the time indicated
> is older than a simple "calendar.getDate()".... (made in the startup
> method of my plugin).
>
> - WindowsListener
> in this case, the Window is opened before my listener. In fact, I can
> hear "close" | "activated" | "disable" events but not "OPEN"....
>
> **********shutdown********************
> - WindowsListener
> here, my plugin shutdown after the Event "CLOSE" of a windowlistener. but
> obviously, Eclipse closes the window, well after the "close" action of the
> menu or whith the cross in the right corner of the windows....
>
> ***************************************
> some tracks ???
> I've seen methods closing() and openning() in Workbench (i think).
> but what must i do to capture Events, if Events are there.
>
> How to determine when the user can realy use his software.
> and when he want to quit it.
>
> thanks. giher

--------------85F4BCF51DE1808160B57DDB
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi Giher,
<p>I guess you will not receive answers for this kind of question, here.
<br>Looking along the time (search for older responses), we can see the
guys drive us to use&nbsp; the usual and documented of Eclipse.
<br>Perhaps they are right, because the internals are changing along the
time,&nbsp; but sometimes we need internal information to make things happen.
<br>Today, the only way is looking at source code, wich take a lot of time.
<br>Could be great if someone write a book "Undocumented Eclipse" like.
<br>Anyway, I don't know if will solve your problem, but try to "hack"
the class <b>org.eclipse.core.launcher.Main.</b>
<br>This&nbsp; is the first Java class, called from EXE stub.You can made
your measures from start to end of main method.
<p>[]s
<br>Glauco Reis
<p>Giher Francois wrote:
<blockquote TYPE=CITE>As Glauco Reis, I want programatically access to
Actions.
<br>but, i would like to capture them.
<br>In fact my final goal is to determine the time to startup Eclipse and
to
<br>shutdown.
<p>what I already tested&nbsp; :
<br>**********StartUp******************
<br>- platform.getDebugOption(Platform.Option_STARTTIME)
<br>&nbsp;but it's only with debug mode...
<p>- LogListener
<br>&nbsp;whith this, i can acces to /metadata/.log.
<br>&nbsp;but, beacause my plugin references extension point =
<br>"org.eclipse.ui.startup", it's faster as LogPlugin, and the time indicated
<br>is older than a simple "calendar.getDate()".... (made in the startup
<br>method of my plugin).
<p>- WindowsListener
<br>&nbsp;in this case, the Window is opened before my listener. In fact,
I can
<br>hear "close" | "activated" | "disable" events but not "OPEN"....
<p>**********shutdown********************
<br>- WindowsListener
<br>&nbsp;here, my plugin shutdown after the Event "CLOSE" of a windowlistener.
but
<br>obviously, Eclipse closes the window, well after the "close" action
of the
<br>menu or whith the cross in the right corner of the windows....
<p>***************************************
<br>some tracks ???
<br>I've seen methods closing() and openning() in Workbench (i think).
<br>but what must i do to capture Events, if Events are there.
<p>How to determine when the user can realy use his software.
<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
and when he want to quit it.
<p>thanks. giher</blockquote>
</html>

--------------85F4BCF51DE1808160B57DDB--
Previous Topic:Visual Basic
Next Topic:Local CVS Repository
Goto Forum:
  


Current Time: Sun Jul 27 07:29:29 EDT 2025

Powered by FUDForum. Page generated in 0.04147 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top