Skip to content

Commit

Permalink
Fix MimeType
Browse files Browse the repository at this point in the history
  • Loading branch information
moacirrf committed Apr 23, 2024
1 parent a1aa155 commit b4c0ef9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@
position = 1400
)
})
@GrammarRegistration(mimeType = "text/x-markdown-nb", grammar = "markdown.tmLanguage.json")
@GrammarRegistration(mimeType = MarkdownDataObject.MIME_TYPE, grammar = "markdown.tmLanguage.json")
public class MarkdownDataObject extends MultiDataObject {

public static final String MIME_TYPE = "text/x-markdown-nb";

public MarkdownDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
super(pf, loader);
registerEditor(MarkdownDataObject.MIME_TYPE, true);
registerEditor("text/x-markdown", true);
}

@Override
Expand All @@ -116,7 +116,7 @@ protected int associateLookup() {
@MultiViewElement.Registration(
displayName = "#LBL_Markdown_EDITOR",
iconBase = "io/github/moacirrf/netbeans/markdown/markdown.png",
mimeType = "text/x-markdown-nb",
mimeType = "text/x-markdown",
persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
preferredID = "io.github.moacirrf.netbeans.markdown.ui.MultiViewSplitEditorElement",
position = 1000
Expand Down

0 comments on commit b4c0ef9

Please sign in to comment.