Class for system browser?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Class for system browser?

Rick Hedin
Hello all. 
 
I'd like to augment the system browser with my experiments.  I have some ideas about how to make text editing easier. 
 
But I'm having trouble identifying what class corresponds to the system browser you get by clicking the appropriate button in the launcher.  It doesn't seem to be FullSystemBrowser. 
 
Does anybody know what the class name is?
 
Alternatively, is there a way to put my cursor on a system browser, and interrogate what kind of object it is?
 
 
          Regards,
 
          Rick

--
I insist on rapport!

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Class for system browser?

Boris Popov, DeepCove Labs (SNN)

Rick,

 

If you load “ProgrammingExtensions” parcel, you’ll find 2 additional menu items when middle-clicking anywhere in the application window,

 

-          Inspect Window (from which you can start exploring its model and the rest top-down)

-          Inspect Widget (from which you can explore its outer model and the rest bottom-up)

 

Hope this helps,

 

-Boris

 

--

DeepCove Labs Ltd.

+1 (604) 689-0322

4th floor, 595 Howe Street

Vancouver, British Columbia

Canada V6C 2T5

http://tinyurl.com/r7uw4

 

PacNet Services (Europe) Ltd.

+353 (0)61 714-360

Shannon Airport House, SFZ

County Clare, Ireland

http://tinyurl.com/y952amr

 

CONFIDENTIALITY NOTICE

 

This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments.

 

Thank you.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Rick Hedin
Sent: 28 October 2010 13:55
To: [hidden email]
Subject: [vwnc] Class for system browser?

 

Hello all. 

 

I'd like to augment the system browser with my experiments.  I have some ideas about how to make text editing easier. 

 

But I'm having trouble identifying what class corresponds to the system browser you get by clicking the appropriate button in the launcher.  It doesn't seem to be FullSystemBrowser. 

 

Does anybody know what the class name is?

 

Alternatively, is there a way to put my cursor on a system browser, and interrogate what kind of object it is?

 

 

          Regards,

 

          Rick

--
I insist on rapport!


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Class for system browser?

Travis Griggs-4
In reply to this post by Rick Hedin

On Oct 28, 2010, at 5:55 AM, Rick Hedin wrote:

> Hello all.
>
> I'd like to augment the system browser with my experiments.  I have  
> some ideas about how to make text editing easier.
>
> But I'm having trouble identifying what class corresponds to the  
> system browser you get by clicking the appropriate button in the  
> launcher.  It doesn't seem to be FullSystemBrowser.
>
> Does anybody know what the class name is?

RefactoringBrowser is the top level ApplicationModel for the normal  
RB. It is decomposed into two basic parts. The top part is a  
BrowserNavigator. It makes heavy use of a NavigatorState (which has  
all of the selection state in it). BrowserNavigator in turn, uses a  
family of NavigatorPart subclasses which represent the various lists  
one might see in the top half. The bottom half is the CodeModel. It  
holds a set of CodeTool subclasses, each of which represents one of  
the tabs shown in the bottom half.

If you want to do a new kind of editor, I good starting approach might  
be to a) load 'ClassCloning' from the Open Repository (or load it from  
Parcel if you have goodies installed) b) clone the class  
'BrowserCodeTool' with your new name (e.g.  
'MyNewWizBangCodeEditingTool'), c) cause that class to be registered  
as one of the tools to show up in the CodeModel (you do this by adding  
a class side tagged method to CodeModel, see the various methods in  
the 'tool registration' protocol and copy/modify one of them, see  
further the Usage section of the class comment for its super class  
AbstractCodeModel) d) begin evolving your new wizbangtool to your  
hearts desire e) share your success and excitement back with the  
community.

--
Travis Griggs
Objologist
"I did not have time to write you a short program, so I wrote you a  
long one instead."

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Class for system browser?

Rick Hedin
Just to recap for those joining the show late, Boris P. told me how to interrogate an object on the screen to find out what its class is, and Travis G. told me how to put my own editor in a tab alongside the existing one in the system browser. 
 
Both of those items worked beautifully!  Thank you, gentlemen, for your help.
 
I must say, I managed to screw it up.  But that's my job.  I also tried cloned the status windows, and giving them accessing entries in the CodeModel class, the status registration protocol.  I ended up with two info status windows, and two package status windows. 
 
Is it a correct interpretation that those are intended to apply to all the tabs, and it is not appropriate to provide different ones when my tab is in control? 
 
 
              Regards,
 
              Rick

On Thu, Oct 28, 2010 at 8:37 AM, Travis Griggs <[hidden email]> wrote:

On Oct 28, 2010, at 5:55 AM, Rick Hedin wrote:

> Hello all.
>
> I'd like to augment the system browser with my experiments.  I have
> some ideas about how to make text editing easier.
>
> But I'm having trouble identifying what class corresponds to the
> system browser you get by clicking the appropriate button in the
> launcher.  It doesn't seem to be FullSystemBrowser.
>
> Does anybody know what the class name is?

RefactoringBrowser is the top level ApplicationModel for the normal
RB. It is decomposed into two basic parts. The top part is a
BrowserNavigator. It makes heavy use of a NavigatorState (which has
all of the selection state in it). BrowserNavigator in turn, uses a
family of NavigatorPart subclasses which represent the various lists
one might see in the top half. The bottom half is the CodeModel. It
holds a set of CodeTool subclasses, each of which represents one of
the tabs shown in the bottom half.

If you want to do a new kind of editor, I good starting approach might
be to a) load 'ClassCloning' from the Open Repository (or load it from
Parcel if you have goodies installed) b) clone the class
'BrowserCodeTool' with your new name (e.g.
'MyNewWizBangCodeEditingTool'), c) cause that class to be registered
as one of the tools to show up in the CodeModel (you do this by adding
a class side tagged method to CodeModel, see the various methods in
the 'tool registration' protocol and copy/modify one of them, see
further the Usage section of the class comment for its super class
AbstractCodeModel) d) begin evolving your new wizbangtool to your
hearts desire e) share your success and excitement back with the
community.

--
Travis Griggs
Objologist
"I did not have time to write you a short program, so I wrote you a
long one instead."

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



--
I insist on rapport!

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc