Added simple position saving/loading commands and removed network error output to reduce log spamming

This commit is contained in:
Norbi Peti 2015-10-03 00:15:13 +02:00
parent afbe918005
commit 0cc6d040ec
19 changed files with 1417 additions and 73 deletions

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

View file

@ -235,24 +235,18 @@
<tags>categoryTag:Help</tags>
</sharedElements>
<sharedElements xsi:type="advanced:Area" xmi:id="_7EfmcCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.editorss" selectedElement="_7EfmcSr0EeWsptewEJl0pA">
<children xsi:type="basic:PartStack" xmi:id="_7EfmcSr0EeWsptewEJl0pA" elementId="org.eclipse.e4.primaryDataStack" selectedElement="_1DUL8GehEeWnA--ML9SqFQ">
<children xsi:type="basic:PartStack" xmi:id="_7EfmcSr0EeWsptewEJl0pA" elementId="org.eclipse.e4.primaryDataStack" selectedElement="_j_800GlSEeWSYeReuMncYg">
<tags>newtablook</tags>
<tags>org.eclipse.e4.primaryDataStack</tags>
<tags>EditorStack</tags>
<children xsi:type="basic:Part" xmi:id="__kGwMD-LEeWprK50eVwiGQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="PluginMain.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;0&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
<tags>removeOnHide</tags>
</children>
<children xsi:type="basic:Part" xmi:id="_h4cFECuhEeWsptewEJl0pA" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="Commands.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;0&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;4041&quot; selectionTopPixel=&quot;1230&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
<tags>removeOnHide</tags>
</children>
<children xsi:type="basic:Part" xmi:id="_yopyED35EeW_qLWp8BCh0w" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="MaybeOfflinePlayer.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/MaybeOfflinePlayer.java" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/MaybeOfflinePlayer.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;588&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/MaybeOfflinePlayer.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;666&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
<tags>removeOnHide</tags>
@ -270,7 +264,13 @@
<tags>removeOnHide</tags>
</children>
<children xsi:type="basic:Part" xmi:id="_1DUL8GehEeWnA--ML9SqFQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="PlayerListener.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;7737&quot; selectionTopPixel=&quot;2970&quot;/>&#xD;&#xA;&lt;/editor>"/>
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;7692&quot; selectionTopPixel=&quot;2970&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
<tags>removeOnHide</tags>
</children>
<children xsi:type="basic:Part" xmi:id="_j_800GlSEeWSYeReuMncYg" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="Commands.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/Commands.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;17624&quot; selectionTopPixel=&quot;7323&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
<tags>removeOnHide</tags>
@ -330,7 +330,7 @@
<tags>categoryTag:General</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_77aAUCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.views.ProblemView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Problems" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/problems_view.gif" tooltip="0 errors, 1 warning, 0 others" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view PRIMARY_SORT_FIELD=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot; categoryGroup=&quot;org.eclipse.ui.ide.severity&quot; markerContentGenerator=&quot;org.eclipse.ui.ide.problemsGenerator&quot; partName=&quot;Problems&quot;>&#xD;&#xA;&lt;expanded>&#xD;&#xA;&lt;category IMemento.internal.id=&quot;Warnings (1 item)&quot;/>&#xD;&#xA;&lt;/expanded>&#xD;&#xA;&lt;columnWidths org.eclipse.ui.ide.locationField=&quot;90&quot; org.eclipse.ui.ide.markerType=&quot;90&quot; org.eclipse.ui.ide.pathField=&quot;120&quot; org.eclipse.ui.ide.resourceField=&quot;90&quot; org.eclipse.ui.ide.severityAndDescriptionField=&quot;300&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.resourceField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.pathField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.locationField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.markerType&quot;/>&#xD;&#xA;&lt;/view>"/>
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view PRIMARY_SORT_FIELD=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot; categoryGroup=&quot;org.eclipse.ui.ide.severity&quot; markerContentGenerator=&quot;org.eclipse.ui.ide.problemsGenerator&quot; partName=&quot;Problems&quot;>&#xD;&#xA;&lt;columnWidths org.eclipse.ui.ide.locationField=&quot;90&quot; org.eclipse.ui.ide.markerType=&quot;90&quot; org.eclipse.ui.ide.pathField=&quot;120&quot; org.eclipse.ui.ide.resourceField=&quot;90&quot; org.eclipse.ui.ide.severityAndDescriptionField=&quot;300&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.resourceField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.pathField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.locationField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.markerType&quot;/>&#xD;&#xA;&lt;/view>"/>
<tags>View</tags>
<tags>categoryTag:General</tags>
<menus xmi:id="_dGEOYCr1EeWsptewEJl0pA" elementId="org.eclipse.ui.views.ProblemView">
@ -432,18 +432,18 @@
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6K2osCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.workbench.file">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JmeDwGeeEeWnA--ML9SqFQ" elementId="new.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmeq0GeeEeWnA--ML9SqFQ" elementId="newWizardDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmf48GeeEeWnA--ML9SqFQ" elementId="new.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmf48WeeEeWnA--ML9SqFQ" elementId="save.group" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JmggAGeeEeWnA--ML9SqFQ" elementId="save"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JmggAWeeEeWnA--ML9SqFQ" elementId="saveAll"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JmggAmeeEeWnA--ML9SqFQ" elementId="save.ext" visible="false"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_JmhuIGeeEeWnA--ML9SqFQ" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_3_hZmSr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmn0wGeeEeWnA--ML9SqFQ" elementId="print.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmob0GeeEeWnA--ML9SqFQ" elementId="build.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmob0WeeEeWnA--ML9SqFQ" elementId="build.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmob0meeEeWnA--ML9SqFQ" elementId="additions"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5dfsGlSEeWSYeReuMncYg" elementId="new.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5eGwGlSEeWSYeReuMncYg" elementId="newWizardDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5eGwWlSEeWSYeReuMncYg" elementId="new.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5eGwmlSEeWSYeReuMncYg" elementId="save.group" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5et0GlSEeWSYeReuMncYg" elementId="save"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5et0WlSEeWSYeReuMncYg" elementId="saveAll"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5et0mlSEeWSYeReuMncYg" elementId="save.ext" visible="false"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_W5fU4GlSEeWSYeReuMncYg" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_3_hZmSr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5jmUGlSEeWSYeReuMncYg" elementId="print.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5kNYGlSEeWSYeReuMncYg" elementId="build.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5kNYWlSEeWSYeReuMncYg" elementId="build.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5kNYmlSEeWSYeReuMncYg" elementId="additions"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6K2osSr0EeWsptewEJl0pA" elementId="additions" toBeRendered="false">
<tags>toolbarSeparator</tags>
@ -451,38 +451,38 @@
</children>
<children xsi:type="menu:ToolBar" xmi:id="_dIOxkCr1EeWsptewEJl0pA" elementId="adt.actionSet.avdManager">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsDHUGeeEeWnA--ML9SqFQ" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsDHUWeeEeWnA--ML9SqFQ" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsDuYGeeEeWnA--ML9SqFQ" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XLzM4GlSEeWSYeReuMncYg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XLzz8GlSEeWSYeReuMncYg" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XLzz8WlSEeWSYeReuMncYg" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_Mv4F0C3kEeWvSKv3oe_gqg" elementId="org.eclipse.debug.ui.breakpointActionSet">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsEVcGeeEeWnA--ML9SqFQ" elementId="breakpointGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsE8gGeeEeWnA--ML9SqFQ" elementId="org.eclipse.debug.ui.actions.SkipAllBreakpoints"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XLzz8mlSEeWSYeReuMncYg" elementId="breakpointGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL0bAGlSEeWSYeReuMncYg" elementId="org.eclipse.debug.ui.actions.SkipAllBreakpoints"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_dI4R0Cr1EeWsptewEJl0pA" elementId="adt.actionSet.lint">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsE8gWeeEeWnA--ML9SqFQ" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsE8gmeeEeWnA--ML9SqFQ" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL0bAWlSEeWSYeReuMncYg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL0bAmlSEeWSYeReuMncYg" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_dIyyQCr1EeWsptewEJl0pA" elementId="adt.actionSet.wizards">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsE8g2eeEeWnA--ML9SqFQ" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsFjkGeeEeWnA--ML9SqFQ" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL0bA2lSEeWSYeReuMncYg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL0bBGlSEeWSYeReuMncYg" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_8zAWsCr0EeWsptewEJl0pA" elementId="org.eclipse.debug.ui.launchActionSet">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsFjkWeeEeWnA--ML9SqFQ" elementId="debug"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsFjkmeeEeWnA--ML9SqFQ" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsFjk2eeEeWnA--ML9SqFQ" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsFjlGeeEeWnA--ML9SqFQ" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL0bBWlSEeWSYeReuMncYg" elementId="debug"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL0bBmlSEeWSYeReuMncYg" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1CEGlSEeWSYeReuMncYg" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1CEWlSEeWSYeReuMncYg" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_dG7xECr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.JavaElementCreationActionSet">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGKoGeeEeWnA--ML9SqFQ" elementId="JavaWizards"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGKoWeeEeWnA--ML9SqFQ" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGKomeeEeWnA--ML9SqFQ" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGKo2eeEeWnA--ML9SqFQ" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1CEmlSEeWSYeReuMncYg" elementId="JavaWizards"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1CE2lSEeWSYeReuMncYg" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1CFGlSEeWSYeReuMncYg" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1CFWlSEeWSYeReuMncYg" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_8voSkCr0EeWsptewEJl0pA" elementId="org.eclipse.jst.j2ee.J2eeMainActionSet" visible="false">
<tags>Draggable</tags>
@ -492,20 +492,20 @@
</children>
<children xsi:type="menu:ToolBar" xmi:id="_8xJVgCr0EeWsptewEJl0pA" elementId="org.eclipse.search.searchActionSet">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGKpGeeEeWnA--ML9SqFQ" elementId="Search"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGKpWeeEeWnA--ML9SqFQ" elementId="openType"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGxsGeeEeWnA--ML9SqFQ" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGxsWeeEeWnA--ML9SqFQ" elementId="org.eclipse.search.OpenSearchDialogPage"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1pIGlSEeWSYeReuMncYg" elementId="Search"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1pIWlSEeWSYeReuMncYg" elementId="openType"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1pImlSEeWSYeReuMncYg" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1pI2lSEeWSYeReuMncYg" elementId="org.eclipse.search.OpenSearchDialogPage"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_Slo_UC3kEeWvSKv3oe_gqg" elementId="org.eclipse.ui.edit.text.actionSet.presentation">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Khe6gGeeEeWnA--ML9SqFQ" elementId="Presentation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_KhfhkGeeEeWnA--ML9SqFQ" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_KhfhkWeeEeWnA--ML9SqFQ" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_KhfhkmeeEeWnA--ML9SqFQ" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Khfhk2eeEeWnA--ML9SqFQ" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_KhfhlGeeEeWnA--ML9SqFQ" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_KhgIoGeeEeWnA--ML9SqFQ" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ZJfooGlSEeWSYeReuMncYg" elementId="Presentation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ZJgPsGlSEeWSYeReuMncYg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ZJgPsWlSEeWSYeReuMncYg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ZJgPsmlSEeWSYeReuMncYg" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ZJg2wGlSEeWSYeReuMncYg" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ZJg2wWlSEeWSYeReuMncYg" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_ZJg2wmlSEeWSYeReuMncYg" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_8wdZACr0EeWsptewEJl0pA" elementId="org.eclipse.wst.server.ui.internal.webbrowser.actionSet" visible="false">
<tags>Draggable</tags>
@ -523,15 +523,15 @@
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6LTUoCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.workbench.navigate">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmob02eeEeWnA--ML9SqFQ" elementId="history.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmob1GeeEeWnA--ML9SqFQ" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JmpC4GeeEeWnA--ML9SqFQ" elementId="backardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JmpC4WeeEeWnA--ML9SqFQ" elementId="forwardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JmpC4meeEeWnA--ML9SqFQ" elementId="pin.group"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_Jmpp8GeeEeWnA--ML9SqFQ" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.gif" tooltip="Pin the current editor" enabled="false" command="_3_eWRCr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGxsmeeEeWnA--ML9SqFQ" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGxs2eeEeWnA--ML9SqFQ" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JsGxtGeeEeWnA--ML9SqFQ" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5k0cGlSEeWSYeReuMncYg" elementId="history.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5k0cWlSEeWSYeReuMncYg" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5k0cmlSEeWSYeReuMncYg" elementId="backardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5k0c2lSEeWSYeReuMncYg" elementId="forwardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5lbgGlSEeWSYeReuMncYg" elementId="pin.group"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_W5lbgWlSEeWSYeReuMncYg" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.gif" tooltip="Pin the current editor" enabled="false" command="_3_eWRCr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1pJGlSEeWSYeReuMncYg" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL1pJWlSEeWSYeReuMncYg" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_XL2QMGlSEeWSYeReuMncYg" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6LTUoSr0EeWsptewEJl0pA" elementId="group.editor" toBeRendered="false">
<tags>toolbarSeparator</tags>
@ -543,8 +543,8 @@
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6LT7sCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.workbench.help" visible="false">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_JmqRAGeeEeWnA--ML9SqFQ" elementId="group.help"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Jmq4EGeeEeWnA--ML9SqFQ" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5mpoGlSEeWSYeReuMncYg" elementId="group.help"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_W5mpoWlSEeWSYeReuMncYg" elementId="group.application" visible="false"/>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_61nc8Cr0EeWsptewEJl0pA" elementId="PerspectiveSpacer" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.LayoutModifierToolControl">
<tags>stretch</tags>

View file

@ -11,8 +11,8 @@ INDEX VERSION 1.126+D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spi
533208796.index
1337478678.index
1528680760.index
1467104569.index
1737447423.index
1467104569.index
4187470955.index
2535676096.index
1787405673.index
@ -21,5 +21,5 @@ INDEX VERSION 1.126+D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spi
3954291735.index
994834796.index
3604769962.index
3045053200.index
1508644233.index
3045053200.index

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<qualifiedTypeNameHistroy>
<fullyQualifiedTypeName name="java.net.MalformedURLException"/>
<fullyQualifiedTypeName name="java.io.IOException"/>
<fullyQualifiedTypeName name="java.io.StringWriter"/>
<fullyQualifiedTypeName name="org.apache.commons.io.IOUtils"/>
@ -52,7 +51,6 @@
<fullyQualifiedTypeName name="java.lang.NumberFormatException"/>
<fullyQualifiedTypeName name="org.bukkit.entity.Player"/>
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.AnnouncerThread"/>
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.PluginMain"/>
<fullyQualifiedTypeName name="com.google.common.io.Files"/>
<fullyQualifiedTypeName name="com.earth2me.essentials.PlayerList"/>
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.PlayerListener"/>
@ -60,4 +58,6 @@
<fullyQualifiedTypeName name="org.bukkit.event.entity.PlayerDeathEvent"/>
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.MaybeOfflinePlayer"/>
<fullyQualifiedTypeName name="java.util.Random"/>
<fullyQualifiedTypeName name="tk.sznp.thebuttonautoflair.PluginMain"/>
<fullyQualifiedTypeName name="org.bukkit.Location"/>
</qualifiedTypeNameHistroy>

View file

@ -54,4 +54,6 @@
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1442739283794_51" label="Window Working Set" name="Aggregate for window 1442739283794"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1442857587221_52" label="Window Working Set" name="Aggregate for window 1442857587221"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1443636470250_53" label="Window Working Set" name="Aggregate for window 1443636470249"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1443819512316_54" label="Window Working Set" name="Aggregate for window 1443819512315"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1443823828074_55" label="Window Working Set" name="Aggregate for window 1443823828074"/>
</workingSetManager>

Binary file not shown.

View file

@ -155,8 +155,7 @@ public class Commands implements CommandExecutor {
player.sendMessage("Unknown command: " + cmd.getName());
break;
}
}
else if (args.length > 0 && args[0].toLowerCase().equals("admin")) // 2015.08.09.
} else if (args.length > 0 && args[0].toLowerCase().equals("admin")) // 2015.08.09.
{
DoAdmin(null, args); // 2015.08.09.
return true; // 2015.08.09.
@ -193,11 +192,13 @@ public class Commands implements CommandExecutor {
private static Player ReloadPlayer; // 2015.08.09.
private static String DoAdminUsage = "§cUsage: /u admin reload|playerinfo|getlasterror|save|setflair|updateplugin|togglerpshow|toggledebug|savepos|loadpos§r";
private static void DoAdmin(Player player, String[] args) { // 2015.08.09.
if (player == null || player.isOp()
|| player.getName().equals("NorbiPeti")) {
if (args.length == 1) {
String message = "§cUsage: /u admin reload|playerinfo|getlasterror|save|setflair|updateplugin|togglerpshow§r";
String message = DoAdminUsage;
SendMessage(player, message);
return;
}
@ -239,11 +240,17 @@ public class Commands implements CommandExecutor {
+ (PlayerListener.ShowRPTag ? "enabled" : "disabled"));
break;
case "toggledebug":
PlayerListener.DebugMode=!PlayerListener.DebugMode;
SendMessage(player, "DebugMode: "+PlayerListener.DebugMode);
PlayerListener.DebugMode = !PlayerListener.DebugMode;
SendMessage(player, "DebugMode: " + PlayerListener.DebugMode);
break;
case "savepos":
DoSaveLoadPos(player, args);
break;
case "loadpos":
DoSaveLoadPos(player, args);
break;
default:
String message = "§cUsage: /u admin reload|playerinfo|getlasterror|save|setflair|updateplugin|togglerpshow§r";
String message = DoAdminUsage;
SendMessage(player, message);
return;
}
@ -482,4 +489,44 @@ public class Commands implements CommandExecutor {
}
}
}
private static void DoSaveLoadPos(Player player, String[] args) { // 2015.08.09.
// args[0] is "admin" - args[1] is "savepos|loadpos"
if (args.length == 2) {
String message = "§cUsage: /u admin savepos|loadpos <player>§r";
SendMessage(player, message);
return;
}
if (!MaybeOfflinePlayer.AllPlayers.containsKey(args[2])) {
String message = "§cPlayer not found: " + args[2] + "§r";
SendMessage(player, message);
return;
}
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AllPlayers.get(args[2]);
Player p = null;
for (Player pl : PluginMain.GetPlayers()) {
if (pl.getName().equals(args[2])) {
p = pl;
break;
}
}
if (p == null) {
if (!MaybeOfflinePlayer.AllPlayers.containsKey(args[2])) {
String message = "§cPlayer is not online: " + args[2] + "§r";
SendMessage(player, message);
return;
}
}
if (args[1].equalsIgnoreCase("savepos")) {
mp.SavedLocation = p.getLocation();
} else if (args[1].equalsIgnoreCase("loadpos")) {
if (mp.SavedLocation != null)
p.teleport(mp.SavedLocation);
} else {
String message = "§cUsage: /u admin savepos|loadpos <player>§r";
SendMessage(player, message);
return;
}
//SendMessage(player, "Player " + p.getName() + " position saved/loaded.");s
}
}

View file

@ -2,6 +2,8 @@ package tk.sznp.thebuttonautoflair;
import java.util.HashMap;
import org.bukkit.Location;
public class MaybeOfflinePlayer { // 2015.08.08.
public String PlayerName;
public String UserName;
@ -14,6 +16,7 @@ public class MaybeOfflinePlayer { // 2015.08.08.
public boolean CommentedOnReddit; // 2015.08.10.
public boolean RPMode; // 2015.08.25.
public boolean PressedF; //2015.09.18.
public Location SavedLocation; //2015.10.02.
public static HashMap<String, MaybeOfflinePlayer> AllPlayers = new HashMap<>(); // 2015.08.08.
public static MaybeOfflinePlayer AddPlayerIfNeeded(String playername) {

View file

@ -122,7 +122,7 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
Thread.currentThread().interrupt();
}
} catch (Exception e) {
System.out.println("Error!\n" + e);
//System.out.println("Error!\n" + e);
LastException = e; // 2015.08.09.
}
}