Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Friday, March 15, 2013

Properties View Customization in Papyrus CDO

Last week's instalment of the CDO integration tech preview series for the Kepler release explored model validation in repository models. This week, we take a look at customizing the Properties View.

Papyrus offers end users a powerful model-driven solution for customization of the Properties View. This enables a convenient UI for editing model elements tailored to what's important in a specific domain, such as SysML, MARTE, or whatever you can invent yourself. In the Juno release, the models that describe the Properties View are stored in the local workspace's metadata area. Now, we bring them into the repository to share and access from any workspace.

Have a look at the video after the break for a quick (less than 10 minutes) tour.

Tuesday, March 5, 2013

Validation in Papyrus Model Repositories

One of the most important things we can do with our models is to validate them, testing them against general-purpose and domain-specific well-formedness rules. Last week, we saw how to reuse packages from models stored in a repository in the Papyrus Kepler release.

This week, we take a look at validating models. After all, you wouldn't want to share and re-use packages that aren't up to muster, would you? See a short demonstration video after the break.

Friday, March 1, 2013

Reusing Packages in Papyrus Model Repositories

In last week's instalment of the Papyrus Model Repository tech preview series, I showed how to create new models in a CDO repository. This week we look at reusing model content by importing packages and applying profiles from models stored in a repository.

The latest development on the cdo_kepler branch in Papyrus SVN refactors the "Import Package From Workspace" and "Apply Profile(s)" dialogs to support pluggable model import sources, including CDO repositories in addition to the Eclipse Workspace. Also, the workflow in these dialogs is stream-lined a bit and some of the code that handles profile migration is generalized to work with non-XMI resources. See the video after the break to take a tour.

Friday, February 22, 2013

Papyrus Model Repositories: Creating New Models

Last week, I introduced the in-progress integration of CDO model repositories into Papyrus for the Kepler release. The starting point was migration of existing models from the Eclipse workspace into a repository. But, what if you don't have models, yet? Do you have to create them in the workspace first, then suck them into a repository?

Not any more!

The latest development on the cdo_kepler branch in Papyrus SVN has refactored the New Papyrus Model wizard to allow creation of models in either a repository or the workspace. See the video after the break to take a tour.

Sunday, February 17, 2013

Papyrus Model Repositories

The M5 milestone of the Kepler release brought support for UML models in CDO repositories to Eclipse. I wrote then that this provides a foundation for collaborative model editing in Papyrus using CDO. Well, that work has progressed far enough that I can offer a preview of Papyrus on CDO in action.

Friday, February 8, 2013

Connect and Share Your UMLs

The Eclipse CDO and UML2 projects have both published their M5 milestones on the road to the Kepler release. In this milestone, UML models can now be shared in CDO repositories!

A lot of fixes and enhancements have gone into this milestone of both the CDO and UML2 projects to make UML models fully functional in CDO repositories. In several ways, some small and some big, UML is a peculiar EMF model. It implements some specialized structural semantics (e.g. subsetting) and awkward overrides (e.g. redefining a mutable reference as derived). It is an unique EMF model. So, quite natural that it should have required work in both CDO (to make allowances for UML) and UML2 (to conform to EMF/CDO norms) to get the two playing together nicely.

More details after the break.

Friday, November 9, 2012

Connected Again

After a few years away, I am (finally) re-connecting with a community that I had been following still but not really participating in.  As of today, I am once again an Eclipse committer.

Saturday, March 24, 2012

Check Your Models

The Eclipse UML2 project has a new feature in the Juno M6 milestone that should help a certain category of applications to keep their UML models in good health.  These are UML-based modelling tools that use the EMF Validation Framework for model validation, often because they provide diagram editors based on GMF.  The Papyrus project is a good example of such application, and it happens to integrate this new feature.

The UML2 project implements the UML metamodel version 2.4.  I have always said that a model is not complete without the constraints that determine what is a well-formed instance.  Well, now we can have our diagrams and our constraints, too!

Friday, March 16, 2012

Back in the Saddle

Well, here it's been how many years since my last post?

Yes, that's right. Just about as many as I've been out of the spotlight that is Eclipse.

But, now I'm self-employed and I'm back to (ir)regularly contributing to open-source projects. I'm open for business!

Image © Chip Griffin http://www.flickr.com/photos/chipgriffin/2210297177/ licensed under Creative Commons CC BY 2.0

It has been a great three-year run at QNX Software Systems, where I've enjoyed building everything from developer tools for one of the world's coolest embedded software platforms to application security and display power management components of the BlackBerry PlayBook, one of the world's coolest mobile device software platforms.

Now I'm pursuing a new and exciting career path as an independent consultant, focusing on development of open-source projects, especially in the Model-Driven Architecture that is such a big piece of my Eclipse experience. Stay tuned for updates from some Eclipse MDT projects and more.

Monday, December 22, 2008

Directions to Keyboard Heck

Have you ever wondered where Keyboard Heck is to be found?

I think I just took the short-cut. So to speak.

I use the two-handed Dvorak keyboard layout because I like it:


I also use a MacBook Pro because I like it.

This week-end, I upgraded my OS X to version 10.5.6, because Apple told me it was a good idea.

Well, now text editing in the Eclipse workbench has gone all to pieces.

What has happened is that the following Mac-standard keystrokes still work as expected:
  • Command-Q to quit
  • Command-, for preferences
  • Command-W to close window (which closes the internal editor in Eclipse)
  • Command-S to save
but most others require combining the Command key with the letter key where it would appear on a Qwerty keyboard:
  • Command-; to undo (Dv ; is where Qw Z is)
  • Command-R for an outline (Dv R == Qw O)
  • Command-Shift-U to format (Dv U == Qw F)
  • Command-J to copy (Dv J == Qw C)
  • Command-K to paste (Dv K == Qw V)
The most frustrating point is that to cut (Command-X) I actually would have to hit Command-Q because the Dvorak Q is where the Qwerty X is, but Command-Q "works" in the Dvorak layout and closes my workbench! I have to do Command-J to copy, then delete, then Command-K somewhere else to paste.

I mustn't be as smart as Pavlov's dog, because I still find myself closing my workbench occasionally despite that it isn't the natural keystroke on this keyboard!

My next step was, when last I posted this message, to try this out on the Cocoa port of SWT.  Well, it turns out that the Cocoa port does not have this problem.  Keys all work like the rest of my Cocoa apps.  The new problem is that Eclipse doesn't run, yet, with the Cocoa SWT.  It crashed the first time I tried to save a Java editor and now it crashes before I can begin working with any editor, on every launch.  That's no better than hitting Command-Q to cut  ;-)

Thursday, December 18, 2008

Target Definition to the Rescue!

Congratulations to the PDE team for saving my day!

I just switched my day-job development from Windows to Linux.  I use IBM Rational® Software Modeler™ every day for its various advanced features, and among other things the software that I develop extends some of its features.  Therefore, I self-host my PDE.

As it happens, my software project also depends on other Eclipse-based components that are not included in RSM.  So, I install them into my RSM workbench.  On Windows, this works fine because I am an administrator of the system and p2 installs the stuff into the shared bundle pool.

However, on Linux, the picture turns out to be a very different one.  I installed RSM as root but I run it as a regular user.  It seems that some kind of funky extension to Equinox causes p2 to install my extra features into my home directory, and the launcher finds its configuration there instead of in the main product installation location.  Very cool!  Great for a multi-user environment.

However, not so great for my PDE target.  PDE only recognizes the plug-in locations installed in the product, not this extra location in my home directory.  Enter the PDE Target Definition.

drum roll ...

I use the New Target Definition wizard to create a new PDE target, and it creates one that includes my current Eclipse configuration by default.  Then, I add another location in which it will find plug-ins.  I could even, if I wanted to, add plug-ins from my workspace, although this seems odd because the workspace generally is implicitly in the target, anyhow.

PDE Target Definition Editor

With one click in the top right corner of the editor, this target is installed in my PDE environment and it now finds every plug-in that I need.  It's too easy!

PDE Target Preference Page

My blog has moved!

You will be automatically redirected to the new address.

If that does not occur, please visit http://www.damus.ca/blog/.