feedback example [message #201325] |
Mon, 31 October 2005 16:55 |
Eclipse User |
|
|
|
Originally posted by: pbeagan.yahoo_dontspamme_.com
Where should I look to find and example of the following functionality:
(From the 3.1.1 docs)
'For this reason, there is an additional feedback request sent with the type
REQ_SELECTION_HOVER whenever the user pauses the mouse over an editpart.
Often an editpart will display a popup shell similar to a tooltip
displaying additional information about the part.'
I want to be able display tooltips just as described. Thanks!
|
|
|
Re: feedback example [message #201341 is a reply to message #201325] |
Mon, 31 October 2005 17:18 |
Eclipse User |
|
|
|
Originally posted by: pbeagan.yahoo_dontspamme_.com
Specifically , I want to give the user a tooltip-like feedback when trying
to create a new child item on a parent. I added the following code to
LayoutEditPolicy, but nothing is displayed visually. Am I missing
something?
public void showTargetFeedback(Request request) {
IFigure figure;
if (!(request instanceof CreateRequest))
return;
if (request.getType()!=RequestConstants.REQ_CREATE)
return;
Object newObject = ((CreateRequest)request).getNewObject();
System.out.println("PropertyContainerEditPolicy.showTargetFeedback ");
figure = new RuleFeedbackFigure();
figure.setVisible(true);
getFeedbackLayer().add(figure);
}
Patrick wrote:
> Where should I look to find and example of the following functionality:
>
> (From the 3.1.1 docs)
>
> 'For this reason, there is an additional feedback request sent with the
> type REQ_SELECTION_HOVER whenever the user pauses the mouse over an
> editpart. Often an editpart will display a popup shell similar to a
> tooltip displaying additional information about the part.'
>
> I want to be able display tooltips just as described. Thanks!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03590 seconds