Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [pde-dev] Markers

Hi Juliya,
Its better if you use custom implementation for it, I will suggest one solution, if it fits for you you can use it.
       1. get current project (where ur java files are residing).
2. there is a method in project to store persistant property (refer API).
            that method will take 2 inputs (key and value).
what i will suggest is use your Class name (fully qualified) as key and which lines are to be hilighted as value (use some tokenizers 1 3 5 19 33 here i use ' ' as token 1,3,5 are lines) 3. when ever the workspace is refreshed (particularly ur project) [ u need to implement a listener for this refer API]. run your plugin code to put markers from the persistance property.
surely it wil work, i have used it.

(abstract is markers are not persisted (will be volatile when u run next time), so we need persistance property of project and reload the marker again, thats all)

Pradheep.


----Original Message Follows----
From: Juliya Litman <juliya@xxxxxxxxxxx>
Reply-To: pde-dev@xxxxxxxxxxx
To: pde-dev@xxxxxxxxxxx
Subject: [pde-dev] Markers
Date: Wed, 24 Mar 2004 00:19:31 -0500 (EST)
MIME-Version: 1.0
Received: from mc3-f3.hotmail.com ([64.4.50.139]) by mc3-s3.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 23 Mar 2004 21:24:27 -0800 Received: from dev.eclipse.org ([204.138.98.15]) by mc3-f3.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 23 Mar 2004 21:23:37 -0800 Received: from dev.eclipse.org (localhost.localdomain [127.0.0.1])by dev.eclipse.org (Postfix) with ESMTPid 80DCD240C3; Wed, 24 Mar 2004 00:20:10 -0500 (EST) Received: from gomez.cs.pitt.edu (unknown [130.49.220.20])by dev.eclipse.org (Postfix) with ESMTP id 3EC4924053for <pde-dev@xxxxxxxxxxx>; Wed, 24 Mar 2004 00:19:22 -0500 (EST) Received: from hydrogen.cs.pitt.edu (hydrogen.cs.pitt.edu [130.49.220.34])by gomez.cs.pitt.edu (8.12.10/8.12.5) with ESMTP id i2O5JWxP022065(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)for <pde-dev@xxxxxxxxxxx>; Wed, 24 Mar 2004 00:19:32 -0500(envelope-from juliya@xxxxxxxxxxx) Received: from hydrogen.cs.pitt.edu (localhost.localdomain [127.0.0.1])by hydrogen.cs.pitt.edu (8.12.8/8.12.8) with ESMTP id i2O5JW9k005725for <pde-dev@xxxxxxxxxxx>; Wed, 24 Mar 2004 00:19:32 -0500 Received: from localhost (juliya@localhost)by hydrogen.cs.pitt.edu (8.12.8/8.12.8/Submit) with ESMTP id i2O5JVqI005721for <pde-dev@xxxxxxxxxxx>; Wed, 24 Mar 2004 00:19:32 -0500
X-Message-Info: N4u0pqWW+O3LFFJM18/NnXi1Xq99pLIzrvyVw2HC1UU=
Delivered-To: pde-dev@xxxxxxxxxxx
X-Authentication-Warning: hydrogen.cs.pitt.edu: juliya owned process doing -bs
Message-ID: <Pine.LNX.4.44.0403240016540.5702-100000@xxxxxxxxxxxxxxxxxxxx>
Errors-To: pde-dev-admin@xxxxxxxxxxx
X-BeenThere: pde-dev@xxxxxxxxxxx
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Unsubscribe: <http://dev.eclipse.org/mailman/listinfo/pde-dev>,<mailto:pde-dev-request@xxxxxxxxxxx?subject=unsubscribe>
List-Id: Eclipse PDE general developers list. <pde-dev.eclipse.org>
List-Post: <mailto:pde-dev@xxxxxxxxxxx>
List-Help: <mailto:pde-dev-request@xxxxxxxxxxx?subject=help>
List-Subscribe: <http://dev.eclipse.org/mailman/listinfo/pde-dev>,<mailto:pde-dev-request@xxxxxxxxxxx?subject=subscribe>
List-Archive: <http://dev.eclipse.org/pipermail/pde-dev/>
Return-Path: pde-dev-admin@xxxxxxxxxxx
X-OriginalArrivalTime: 24 Mar 2004 05:23:39.0810 (UTC) FILETIME=[2A571820:01C41160]


Hi,

I hope you can help me.  I've been trying to implement a plugin where I
need to highlight certain lines inside java files for the purpose of
showing results.

The first problem I'm trying to figure out, is that when I use markers,
they don't show up until the second time that I run the Workbench.  Do any
of you have any idea what i'm missing?  I've been looking at examples in
books and cannot find anything beyond what I already have in my code. -- I
just find the Resource that I need, create a marker for it, and set the
attributes, that specify where I want the marker and what I want the
message to say.

Please help!

-Juliya

_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/pde-dev

_________________________________________________________________
Apply to 50,000 jobs now. http://go.msnserver.com/IN/45531.asp Post your CV on naukri.com today.



Back to the top