-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for gallery tags, partially implemented Open in WP action.
- Loading branch information
Showing
18 changed files
with
477 additions
and
332 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
+119 Bytes
(100%)
out/production/wikimedia/com/mwplugin/MediaWikiAnnotator.class
Binary file not shown.
Binary file modified
BIN
+382 Bytes
(100%)
out/production/wikimedia/com/mwplugin/MediaWikiLexer.class
Binary file not shown.
Binary file modified
BIN
+449 Bytes
(250%)
out/production/wikimedia/com/mwplugin/MediaWikiUtil.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+842 Bytes
(100%)
out/production/wikimedia/com/mwplugin/parser/MediaWikiParser.class
Binary file not shown.
Binary file modified
BIN
+148 Bytes
(100%)
out/production/wikimedia/com/mwplugin/psi/MediaWikiTypes$Factory.class
Binary file not shown.
Binary file modified
BIN
+309 Bytes
(100%)
out/production/wikimedia/com/mwplugin/psi/MediaWikiTypes.class
Binary file not shown.
Binary file modified
BIN
+301 Bytes
(100%)
out/production/wikimedia/com/mwplugin/psi/MediaWikiVisitor.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.mwplugin.actions; | ||
|
||
import com.intellij.ide.browsers.BrowserLauncher; | ||
import com.intellij.openapi.actionSystem.AnAction; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.actionSystem.DataKeys; | ||
import com.intellij.openapi.editor.Document; | ||
import com.intellij.openapi.editor.Editor; | ||
import com.intellij.openapi.fileEditor.FileDocumentManager; | ||
import com.intellij.openapi.fileEditor.FileEditorManager; | ||
import com.intellij.openapi.vfs.VirtualFile; | ||
|
||
import java.net.URI; | ||
|
||
/** | ||
* Created by andrewsimmons on 5/12/17. | ||
*/ | ||
public class ViewArticleInBrowserAction extends AnAction | ||
{ | ||
@Override | ||
public void actionPerformed(AnActionEvent e) | ||
{ | ||
Document currentDoc = FileEditorManager.getInstance(e.getProject()).getSelectedTextEditor().getDocument(); | ||
VirtualFile currentFile = FileDocumentManager.getInstance().getFile(currentDoc); | ||
String fileName = currentFile.getPath(); | ||
} | ||
} |
Oops, something went wrong.