Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » adding builders to EMF-generated RCP app
adding builders to EMF-generated RCP app [message #427841] Mon, 02 March 2009 19:14 Go to next message
Matt Barry is currently offline Matt BarryFriend
Messages: 27
Registered: July 2009
Junior Member
To compute derived values and perform auditing, I'd like to add builders
to an EMF-generated RCP application. I can't work out how to add back the
workbench workspace and project resources so that I can associate one or
more builders and a nature with a project.

a) To recover the associated workbench items, it does not appear to be
sufficient to add a dependency to org.eclipse.ui.ide plus a call to
WorkbenchAdapterBuilder.registerAdapters() during initialization of the
workbench configurer in *EditorAdvisor. None of the expected views or
menu items turns up. Should I be adding certain extensions as well?

b) I can find a workspace root through the ResourcesPlugin, but apparently
there are no projects in the workspace unless the genmodel produces one
that I haven't found. Will I have to undo the EMF editor's URIEditorInput
in favor of FileEditorInput in order to use the workspace and projects?

c) To perform auditing I could use the EMF validation framework, but is
this also suitable for computing derived values in instances of the model?
I'm not clear on how to retrieve current diagnostics so that I can add or
delete from the set while doing computations on the model; I'd like to
leave markers behind at the affected spot in the resource.
Re: adding builders to EMF-generated RCP app [message #427845 is a reply to message #427841] Mon, 02 March 2009 20:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030406050600010309080709
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Matt,

Comments below.

Matt Barry wrote:
> To compute derived values and perform auditing, I'd like to add
> builders to an EMF-generated RCP application.
I guess the builder computes and caches the derived values?
> I can't work out how to add back the workbench workspace and project
> resources so that I can associate one or more builders and a nature
> with a project.
I'm don't understand the add back in reference?
> a) To recover the associated workbench items, it does not appear to be
> sufficient to add a dependency to org.eclipse.ui.ide plus a call to
> WorkbenchAdapterBuilder.registerAdapters() during initialization of
> the workbench configurer in *EditorAdvisor. None of the expected
> views or menu items turns up. Should I be adding certain extensions
> as well?
It's not really an EMF question...
> b) I can find a workspace root through the ResourcesPlugin, but
> apparently there are no projects in the workspace unless the genmodel
> produces one that I haven't found.
They won't appear out of thin air unless something creates them.
> Will I have to undo the EMF editor's URIEditorInput in favor of
> FileEditorInput in order to use the workspace and projects?
Is it related to this:

http://wiki.eclipse.org/index.php/EMF/FAQ#How_do_I_map_betwe en_an_EMF_Resource_and_an_Eclipse_IFile.3F

>
> c) To perform auditing I could use the EMF validation framework, but
> is this also suitable for computing derived values in instances of the
> model?
It seems unrelated to me.
> I'm not clear on how to retrieve current diagnostics so that I can add
> or delete from the set while doing computations on the model; I'd like
> to leave markers behind at the affected spot in the resource.
There's the extended validation framework and the basic validation
support in the core. Did you read about them.

http://www.eclipse.org/modeling/emf/?project=validationhttp: //www.eclipse.org/modeling/emf/?project=validation
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/references/overview/EMF.Validation.html


>
>
>
>

--------------030406050600010309080709
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Matt,<br>
<br>
Comments below.<br>
<br>
Matt Barry wrote:
<blockquote
cite="mid:62bb357388e6cd36183296e8b8db9936$1@www.eclipse.org"
type="cite">To compute derived values and perform auditing, I'd like
to add builders to an EMF-generated RCP application. <br>
</blockquote>
I guess the builder computes and caches the derived values?<br>
<blockquote
cite="mid:62bb357388e6cd36183296e8b8db9936$1@www.eclipse.org"
type="cite"> I can't work out how to add back the workbench workspace
and project resources so that I can associate one or more builders and
a nature with a project.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[Teneo] Ordering collections in a one-to-many association throws exception
Next Topic:Problem with table viewer and databinding an EMF object
Goto Forum:
  


Current Time: Tue Apr 23 12:00:16 GMT 2024

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

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

Back to the top