Skip to main content



      Home
Home » Newcomers » Newcomers » Setting focus on the model package in .emx file .
Setting focus on the model package in .emx file . [message #215650] Thu, 14 June 2007 04:33 Go to next message
Eclipse UserFriend
Originally posted by: haitsrahul.yahoo.co.in

Hi All;

I am created a project wizard that will create a UML type project and
populate with a package structure. I am create the project using the
following APIs

"IWorkspace workspace = ResourcesPlugin.getWorkspace();
project = workspace.getRoot().getProject("My
project"); project.create(description, monitor); "

I able to create the project and .emx file inside that and i also getting
that model opened. But I want to get the focus on the model package.and
the package to be expanded to show the child package. How can this be
possible.

Please give me some inputs
Thanks in advance;
Rahul
Re: Setting focus on the model package in .emx file . [message #215752 is a reply to message #215650] Thu, 14 June 2007 10:41 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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

Rahul,

There might well not be an API way of doing that. If you are using the
UML tools project, you'd be better to ask on this newsgroup:

news://news.eclipse.org/eclipse.modeling.mdt.uml2tools

The UMLEditor provided directly by the UML2 project (rather than the
funky graphical editor from the UML Tools project) has a
setSelectionToViewer method you could call do do the selection, but
you'd need to interact direct with the current viewer's
(UMLEditor.getViewer) tree to expand it certain nodes.


Rahul wrote:
> Hi All;
>
> I am created a project wizard that will create a UML type project and
> populate with a package structure. I am create the project using the
> following APIs
>
> "IWorkspace workspace =
> ResourcesPlugin.getWorkspace();
> project = workspace.getRoot().getProject("My
> project"); project.create(description, monitor); "
> I able to create the project and .emx file inside that and i also
> getting that model opened. But I want to get the focus on the model
> package.and the package to be expanded to show the child package. How
> can this be possible.
>
> Please give me some inputs
> Thanks in advance;
> Rahul
>


--------------040808020206030301060103
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">
Rahul,<br>
<br>
There might well not be an API way of doing that.
Previous Topic:Error
Next Topic:CDT vs DSDP
Goto Forum:
  


Current Time: Tue Jul 15 09:33:40 EDT 2025

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

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

Back to the top