|
Re: adding builders to EMF-generated RCP app [message #427845 is a reply to message #427841] |
Mon, 02 March 2009 20:01 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03110 seconds