Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » RCP with platform resources
RCP with platform resources [message #193976] Fri, 20 June 2008 11:00 Go to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi,

The RCP app that is generated uses files I want to use platform resources
instead. How can I achieve that?

Is the difference in using createFileURI or createPlatformResourceURI?

Or can you tell me how to omit the long paths in the tabs of the editor?
Then files are a solution too...

Thanks for your answer,

Marsha
Re: RCP with platform resources [message #193982 is a reply to message #193976] Fri, 20 June 2008 11:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------070609060701080900030309
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Marsha,

You can explicitly construct a URIEditorInput with any name you like:

public URIEditorInput(URI uri, String name)
{
this.uri = uri;
this.name = name;
}



marsha wrote:
> Hi,
>
> The RCP app that is generated uses files I want to use platform
> resources instead. How can I achieve that?
> Is the difference in using createFileURI or createPlatformResourceURI?
> Or can you tell me how to omit the long paths in the tabs of the
> editor? Then files are a solution too...
>
> Thanks for your answer,
>
> Marsha
>


--------------070609060701080900030309
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">
Marsha,<br>
<br>
You can explicitly construct a URIEditorInput with any name you like:<br>
<blockquote><small>
Re: RCP with platform resources [message #194046 is a reply to message #193982] Mon, 23 June 2008 04:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi Ed,

Thanks for your hint. I had a look at this but where can I add this into
my generated RCP app?

Greets
Marsha

Ed Merks wrote:

> Marsha,

> You can explicitly construct a URIEditorInput with any name you like:

> public URIEditorInput(URI uri, String name)
> {
> this.uri = uri;
> this.name = name;
> }



> marsha wrote:
>> Hi,
>>
>> The RCP app that is generated uses files I want to use platform
>> resources instead. How can I achieve that?
>> Is the difference in using createFileURI or createPlatformResourceURI?
>> Or can you tell me how to omit the long paths in the tabs of the
>> editor? Then files are a solution too...
>>
>> Thanks for your answer,
>>
>> Marsha
>>
Re: RCP with platform resources [message #194126 is a reply to message #194046] Mon, 23 June 2008 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Marsha,

I don't know. What I would do is set a breakpoint in the constructors
for that class (if it's indeed being used for the editor input) and see
who's calling it and therefore, where the best place is to specialize
how it's called.


marsha wrote:
> Hi Ed,
>
> Thanks for your hint. I had a look at this but where can I add this
> into my generated RCP app?
>
> Greets
> Marsha
>
> Ed Merks wrote:
>
>> Marsha,
>
>> You can explicitly construct a URIEditorInput with any name you like:
>
>> public URIEditorInput(URI uri, String name)
>> {
>> this.uri = uri;
>> this.name = name;
>> }
>
>
>
>> marsha wrote:
>>> Hi,
>>>
>>> The RCP app that is generated uses files I want to use platform
>>> resources instead. How can I achieve that?
>>> Is the difference in using createFileURI or createPlatformResourceURI?
>>> Or can you tell me how to omit the long paths in the tabs of the
>>> editor? Then files are a solution too...
>>>
>>> Thanks for your answer,
>>>
>>> Marsha
>>>
>
>
Re: RCP with platform resources [message #194231 is a reply to message #194126] Tue, 24 June 2008 05:24 Go to previous message
Eclipse UserFriend
Originally posted by: marsha.rohrer.swisscom.com

Hi Ed,

So if I get you right, I have to add a class that implements
URIEditorInput and set the name to let's say XYZ. Then I have to get my
new class to be invoked and then the tabs in the editors show XYZ instead
of file:/C:/temp/.../XYZ.test_diagram?

I was looking for a difference in the code that gets generated for the IDE
and the RCP version of GMF since in die IDE the tabs only show
xyz.test_diagram and in the RPC they show the whole path...but I couldn't
find a class that implements URIEditorInput and sets the name.

Thanks,
Marsha
Previous Topic:Customizing the traversal of Java Audit Rules
Next Topic:Connection information between the Components getting interchanged
Goto Forum:
  


Current Time: Fri May 02 13:15:12 EDT 2025

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

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

Back to the top