congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.eclipse.jdt.internal.ui.propertiesfileeditor
Code IndexAdd Tabnine to your IDE (free)

How to use org.eclipse.jdt.internal.ui.propertiesfileeditor

Best Java code snippets using org.eclipse.jdt.internal.ui.propertiesfileeditor (Showing top 20 results out of 315)

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Creates a new <code>OpenAction</code>.
 *
 * @param editor the Properties file editor which provides the context information for this action
 */
public OpenAction(PropertiesFileEditor editor) {
  super(editor.getEditorSite());
  fEditor= editor;
  setText(PropertiesFileEditorMessages.OpenAction_label);
  setToolTipText(PropertiesFileEditorMessages.OpenAction_tooltip);
  setEnabled(PropertyKeyHyperlinkDetector.checkEnabled(fEditor, 0));
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Creates a white space rule for the given <code>token</code>.
 *
 * @param token the token to be returned on success
 */
public LeadingWhitespacePredicateRule(IToken token, String whitespace) {
  super(new DummyDetector(), whitespace, "dummy", token); //$NON-NLS-1$
  setColumnConstraint(0);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Constructor for EmptyCommentRule.
 * @param successToken the success token
 */
public EmptyCommentRule(IToken successToken) {
  super(new EmptyCommentDetector());
  fSuccessToken= successToken;
  addWord("#", fSuccessToken); //$NON-NLS-1$
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Creates a new <code>OpenAction</code>.
 *
 * @param editor the Properties file editor which provides the context information for this action
 */
public OpenAction(PropertiesFileEditor editor) {
  super(editor.getEditorSite());
  fEditor= editor;
  setText(PropertiesFileEditorMessages.OpenAction_label);
  setToolTipText(PropertiesFileEditorMessages.OpenAction_tooltip);
   // XXX: Must be removed once support for JARs is available (see class Javadoc for details).
  setEnabled(fEditor.getEditorInput() instanceof IFileEditorInput);
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Initializes the scanners.
 */
private void initializeScanners() {
  fPropertyKeyScanner= new SingleTokenJavaScanner(getColorManager(), fPreferenceStore, PreferenceConstants.PROPERTIES_FILE_COLORING_KEY);
  fPropertyValueScanner= new PropertyValueScanner(getColorManager(), fPreferenceStore);
  fCommentScanner= new SingleTokenJavaScanner(getColorManager(), fPreferenceStore, PreferenceConstants.PROPERTIES_FILE_COLORING_COMMENT);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public boolean canAssist(IQuickAssistInvocationContext invocationContext) {
  return PropertiesQuickAssistProcessor.hasAssists(createAssistContext(invocationContext));
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void customizeDocumentCommand(IDocument document, DocumentCommand command) {
  showProposal(escape(command), document);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Creates an argument rule for the given <code>token</code>.
 *
 * @param token the token to be returned on success
 */
public ArgumentRule(IToken token) {
  super(new ArgumentDetector(), "{", "}", token); //$NON-NLS-1$//$NON-NLS-2$
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Returns the shared document provider for Java properties files
 * used by this plug-in instance.
 *
 * @return the shared document provider for Java properties files
 * @since 3.1
 */
public synchronized IDocumentProvider getPropertiesFileDocumentProvider() {
  if (fPropertiesFileDocumentProvider == null)
    fPropertiesFileDocumentProvider= new PropertiesFileDocumentProvider();
  return fPropertiesFileDocumentProvider;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void setup(IDocument document) {
  setupDocument(document);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Convert a Java char to the escaped form that must be used in .properties files.
 * 
 * @param c the Java char
 * @return escaped string
 */
public static String escape(char c) {
  return escape(c, true, true, true);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public IInformationControlCreator getHoverControlCreator() {
  if (fHoverControlCreator == null)
    fHoverControlCreator= new HoverControlCreator();
  return fHoverControlCreator;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Creates a new <code>OpenAction</code>.
 *
 * @param editor the Properties file editor which provides the context information for this action
 */
public OpenAction(PropertiesFileEditor editor) {
  super(editor.getEditorSite());
  fEditor= editor;
  setText(PropertiesFileEditorMessages.OpenAction_label);
  setToolTipText(PropertiesFileEditorMessages.OpenAction_tooltip);
  setEnabled(PropertyKeyHyperlinkDetector.checkEnabled(fEditor, 0));
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Creates a white space rule for the given <code>token</code>.
 *
 * @param token the token to be returned on success
 */
public LeadingWhitespacePredicateRule(IToken token, String whitespace) {
  super(new DummyDetector(), whitespace, "dummy", token); //$NON-NLS-1$
  setColumnConstraint(0);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Constructor for EmptyCommentRule.
 * @param successToken the success token
 */
public EmptyCommentRule(IToken successToken) {
  super(new EmptyCommentDetector());
  fSuccessToken= successToken;
  addWord("#", fSuccessToken); //$NON-NLS-1$
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public boolean canAssist(IQuickAssistInvocationContext invocationContext) {
  return PropertiesQuickAssistProcessor.hasAssists(createAssistContext(invocationContext));
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Creates an argument rule for the given <code>token</code>.
 *
 * @param token the token to be returned on success
 */
public ArgumentRule(IToken token) {
  super(new ArgumentDetector(), "{", "}", token); //$NON-NLS-1$//$NON-NLS-2$
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Creates a white space rule for the given <code>token</code>.
 *
 * @param token the token to be returned on success
 */
public LeadingWhitespacePredicateRule(IToken token, String whitespace) {
  super(new DummyDetector(), whitespace, "dummy", token); //$NON-NLS-1$
  setColumnConstraint(0);
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Constructor for EmptyCommentRule.
 * @param successToken the success token
 */
public EmptyCommentRule(IToken successToken) {
  super(new EmptyCommentDetector());
  fSuccessToken= successToken;
  addWord("#", fSuccessToken); //$NON-NLS-1$
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Creates an argument rule for the given <code>token</code>.
 *
 * @param token the token to be returned on success
 */
public ArgumentRule(IToken token) {
  super(new ArgumentDetector(), "{", "}", token); //$NON-NLS-1$//$NON-NLS-2$
}
org.eclipse.jdt.internal.ui.propertiesfileeditor

Most used classes

  • ArgumentRule$ArgumentDetector
  • ArgumentRule
    A specific single line rule for arguments in a property value. An argument is defined as '{', digit,
  • LeadingWhitespacePredicateRule$DummyDetector
  • LeadingWhitespacePredicateRule
    A leading white space predicate rule.
  • OpenAction
    This action opens a tool (internal editor or view or an external application) for the element at the
  • PropertiesFileDocumentSetupParticipant,
  • PropertiesFileEditor,
  • PropertiesFileEditorActionContributor,
  • PropertiesFilePartitionScanner$EmptyCommentDetector,
  • PropertiesFilePartitionScanner$EmptyCommentRule,
  • PropertiesFilePartitionScanner,
  • PropertiesFileSourceViewerConfiguration,
  • PropertyKeyHyperlink$KeyReference,
  • PropertyKeyHyperlink$ResultCollector,
  • PropertyKeyHyperlink,
  • PropertyKeyHyperlinkDetector,
  • PropertyValueScanner$AssignmentDetector,
  • PropertyValueScanner,
  • EscapeBackslashCompletionProposal
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now