Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.quickassist
Interface IQuickFixableAnnotation

All Known Implementing Classes:
MarkerAnnotation, SpellingAnnotation

public interface IQuickFixableAnnotation

Allows an annotation to tell whether there are quick fixes for it and to cache that state.

Caching the state is important to improve overall performance as calling IQuickAssistAssistant.canFix(Annotation) can be expensive.

This interface can be implemented by clients.

Since:
3.2

Method Summary
 boolean isQuickFixable ()
          Tells whether there are quick fixes for this annotation.
 boolean isQuickFixableStateSet ()
          Tells whether the quick fixable state has been set.
 void setQuickFixable (boolean state)
          Sets whether there are quick fixes available for this annotation.
 

Method Detail

setQuickFixable

void setQuickFixable(boolean state)
Sets whether there are quick fixes available for this annotation.

Parameters:
state - true if there are quick fixes available, false otherwise

isQuickFixableStateSet

boolean isQuickFixableStateSet()
Tells whether the quick fixable state has been set.

Normally this means setQuickFixable(boolean) has been called at least once but it can also be hard-coded, e.g. always return true.

Returns:
true if the state has been set

isQuickFixable

boolean isQuickFixable()
                       throws 
AssertionFailedException
Tells whether there are quick fixes for this annotation.

Note: This method must only be called if isQuickFixableStateSet() returns true.

Returns:
true if this annotation offers quick fixes
Throws:
AssertionFailedException - if called when isQuickFixableStateSet() is false

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire