Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5DA88613B for ; Sun, 26 Jun 2011 08:15:17 +0000 (UTC) Received: (qmail 68994 invoked by uid 500); 26 Jun 2011 08:15:15 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 68862 invoked by uid 500); 26 Jun 2011 08:14:59 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 68844 invoked by uid 99); 26 Jun 2011 08:14:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2011 08:14:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of esudharaka@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2011 08:14:47 +0000 Received: by vws10 with SMTP id 10so4607950vws.16 for ; Sun, 26 Jun 2011 01:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=RY4M9c2vVpMH09B81OX2W1+glRv5Rot+adqOQUz7+eM=; b=yBDAuN8AxjDMDIeQeCsHeTICShDuzSHlJY2mypxYnIleLEnRPDcgwh1X9DcYFzQ71W D9f5XUCSUHb4se5WgrE9bl36YZ8xcLetROqoQiYkCBhwy1+0LLuu/6Oh34Ox3d+T9Oyp ytGIZv0SlvNJbRRfdHpKgEM5d/25h1Eg0jxDE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=sUSUXDVcdGJBBp2a/FRoSd/mmcojw5N1UqRsvV39C31VT2EbBqVmjSBakQAJCf5qbi CyT8mVHZBgq2YfHhY3E83niobc+x4UmIamW0W6rJHahrkzCeT6MdQqAG7bBnhwEMjH0H EHKuTP5k9yg/0Rs7FoxiiVSaapFJVNduyjv/k= MIME-Version: 1.0 Received: by 10.52.37.194 with SMTP id a2mr6713543vdk.71.1309076064225; Sun, 26 Jun 2011 01:14:24 -0700 (PDT) Received: by 10.52.112.198 with HTTP; Sun, 26 Jun 2011 01:14:24 -0700 (PDT) In-Reply-To: <3D7CAA6B-3B43-49CF-A49A-E16F279C510B@objectstyle.org> References: <3D7CAA6B-3B43-49CF-A49A-E16F279C510B@objectstyle.org> Date: Sun, 26 Jun 2011 13:44:24 +0530 Message-ID: Subject: Re: Gsoc Project Update From: Eshan Sudharaka To: dev@cayenne.apache.org Content-Type: multipart/alternative; boundary=bcaec51d2132cac8af04a699054f --bcaec51d2132cac8af04a699054f Content-Type: text/plain; charset=ISO-8859-1 Sorry. I have made a mistake about naming conversion. But still there can be various names for Main project file which starts from cayenne. So it is hard to figure out which files should be open with Cayenne modeler. According to thiswe can filter files from extension attribute and file name attribute. So I it seems difficult to set cayenne modeler as the default editor for cayenne main project xml file. ( eg : If we have a file name cayenne.xml we can configure that name in eclipse plugin so that when double click on that file it opens with the external editor instead open with eclipse xml editor. Also we can load icon for that xml file as well ) . Once we have not such a specific name we have to open it by File > Open With and select our editor. On Sun, Jun 26, 2011 at 12:47 PM, Andrus Adamchik wrote: > Not sure I am answering the question being asked, but in 3.1, the file > naming convention is the following: > > Main project file: cayenne-*.xml > DataMap file: *.map.xml > > Which is pretty deterministic, even if a bit unusual. > > Andrus > > > On Jun 26, 2011, at 9:05 AM, Eshan Sudharaka wrote: > > Hi Ksenia , > > As you mentioned I went through the code where i deletes > cyenne.xml in UpgradeHandler_V6 class. And then in a case of we are having > xyzDomainMap.xml (with out cayenne.xml) we can not open i with my external > editor (cayenne modeler) by default. Because we can filter files according > to extension or from a specific name. (can not go for pattern matching and > filer xyzDomainMap.xml using the keyword DomainMap). So we have to open > the DomainMap xml file by Open With > Cayenne Modeler Plugin (when we > double click on DomainMap file is opens with default xml editor ) . I am > still figuring out a way of solving this. > > > > I have attached a patch by adding java class generation support > for my plugin in jira issue page. > https://issues.apache.org/jira/browse/CAY-1554 > > > > -- > > ~Thanks & Regards~ > > > > P.A.Eshan Sudharaka > > Dept of Computer Science and Engineering > > University of Moratuwa > > Sri Lanka > > http://esudharaka.blogspot.com/ > > > > > > -- *~Thanks & Regards~* *** * P.A.Eshan Sudharaka Dept of Computer Science and Engineering University of Moratuwa Sri Lanka http://esudharaka.blogspot.com/ --bcaec51d2132cac8af04a699054f--