[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Starting commit dialog from own plugin

From: Stephen Elsemore <selsemore_at_collab.net>
Date: Mon, 17 Jan 2011 07:48:56 -0800

Hi Steven,

Assuming your validator has a reference to the open editor¹s resource
(IResource), you can initiate the Subclipse commit action something like
this:

CommitAction commitAction = new CommitAction();
commitAction.setSelectedResources( new IResource[] { yourResource } );
commitAction.execute(null);

Steve

On 1/16/11 9:48 AM, "Klix, Steven" <steven.klix_at_student.kit.edu> wrote:

> I have to develop a plugin for eclipse, a coding standards validator.
> So, my "clients" (it's a project for university) wish to validate & commit by
> clicking on one single button. The button for validating open editor's code
> already exists, but how can I start commit right after the validation?
>
> Can anyone help me?
>
> Kind regards,
> Steven
>

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2698732

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2011-01-17 16:44:58 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.