diff --git a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java index 02ca245..b87d956 100644 --- a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java +++ b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java @@ -758,7 +758,7 @@ return buffer.getString(); } - TemplateVariable getTemplateVariable(String name) { + public TemplateVariable getTemplateVariable(String name) { TemplateVariable variable= fVariables.get(name); if (variable != null && !variable.isResolved()) getContextType().resolve(variable, this); diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateEngine.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateEngine.java index 2c3f326..16252ac 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateEngine.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateEngine.java @@ -47,11 +47,11 @@ private static final String $_WORD_SELECTION= "${" + GlobalTemplateVariables.WordSelection.NAME + "}"; //$NON-NLS-1$ //$NON-NLS-2$ /** The context type. */ - private TemplateContextType fContextType; + protected TemplateContextType fContextType; /** The result proposals. */ - private ArrayList fProposals= new ArrayList(); + protected ArrayList fProposals= new ArrayList(); /** Positions created on the key documents to remove in reset. */ - private final Map fPositions= new HashMap(); + protected final Map fPositions= new HashMap(); /** * Creates the template engine for the given contextType. @@ -148,7 +148,7 @@ } } - private Image getImage() { + protected Image getImage() { if (fContextType instanceof SWTContextType) return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_SWT_TEMPLATE); else diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateProposal.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateProposal.java index 0746076..dbf90c8 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateProposal.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateProposal.java @@ -378,7 +378,7 @@ * @return the offset of the range in the document that will be replaced by * applying this template */ - protected final int getReplaceOffset() { + protected int getReplaceOffset() { int start; if (fContext instanceof DocumentTemplateContext) { DocumentTemplateContext docContext = (DocumentTemplateContext)fContext;