Fixed a case when there is press time (-1) but there isn't any flair class.

This commit is contained in:
Norbi Peti 2015-07-19 09:15:42 +02:00
parent fc5cf4a8eb
commit a73316aac9
20 changed files with 275 additions and 154 deletions

View file

@ -20,3 +20,25 @@ user global configuration and to define the default location to store repositori
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2015-07-19 09:02:01.096 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.8.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.egit.ui 2 0 2015-07-19 09:03:46.155
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.egit.ui 2 0 2015-07-19 09:03:46.219
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Norbi'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

Binary file not shown.

Binary file not shown.

View file

@ -2,6 +2,7 @@ package tk.sznp.thebuttonautoflair;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
@ -42,22 +43,28 @@ public class PluginMain extends JavaPlugin
this.getCommand("u").setExecutor(new Commands());
this.getCommand("u").setUsage(this.getCommand("u").getUsage().replace('&', '§'));
try {
BufferedReader br=new BufferedReader(new FileReader("flairsaccepted.txt"));
String line;
while ((line = br.readLine()) != null)
{
AcceptedPlayers.add(line.replace("\n", ""));
File file=new File("flairsaccepted.txt");
if(file.exists())
{
BufferedReader br=new BufferedReader(new FileReader("flairsaccepted.txt"));
String line;
while ((line = br.readLine()) != null)
{
AcceptedPlayers.add(line.replace("\n", ""));
}
br.close();
}
br.close();
BufferedReader br=new BufferedReader(new FileReader("flairsignored.txt"));
while ((line = br.readLine()) != null)
{
IgnoredPlayers.add(line.replace("\n", ""));
}
br.close();
FileWriter fw;
fw = new FileWriter("flairsaccepted.txt");
fw.close();
file=new File("flairsignored.txt");
if(file.exists())
{
BufferedReader br=new BufferedReader(new FileReader("flairsignored.txt"));
String line;
while ((line = br.readLine()) != null)
{
IgnoredPlayers.add(line.replace("\n", ""));
}
br.close();
}
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
@ -71,6 +78,40 @@ public class PluginMain extends JavaPlugin
@Override
public void onDisable()
{
try
{
FileWriter fw;
fw = new FileWriter("flairsaccepted.txt");
fw.close();
fw = new FileWriter("flairsignored.txt");
fw.close();
}
catch(Exception e)
{
System.out.println("Error!\n"+e);
}
for(String player : AcceptedPlayers)
{
File file=new File("flairsaccepted.txt");
try {
BufferedWriter bw=new BufferedWriter(new FileWriter(file, true));
bw.write(player+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
for(String player : IgnoredPlayers)
{
File file=new File("flairsignored.txt");
try {
BufferedWriter bw = new BufferedWriter(new FileWriter(file, true));
bw.write(player+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
stop=true;
}
@ -235,27 +276,9 @@ public class PluginMain extends JavaPlugin
public static void AppendPlayerDisplayFlair(Player player, String username, String flair)
{
if(IgnoredPlayers.contains(player.getName()))
{
try {
BufferedWriter bw=new BufferedWriter(new FileWriter("flairsaccepted.txt", true));
bw.write(player.getName()+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
return;
}
if(AcceptedPlayers.contains(player.getName()))
{
player.setDisplayName(player.getDisplayName()+flair);
try {
BufferedWriter bw=new BufferedWriter(new FileWriter("flairsaccepted.txt", true));
bw.write(player.getName()+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
else
player.sendMessage("§9Are you Reddit user "+username+"?§r §6Type /u accept or /u ignore§r");

View file

@ -2,6 +2,7 @@ package tk.sznp.thebuttonautoflair;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
@ -42,22 +43,28 @@ public class PluginMain extends JavaPlugin
this.getCommand("u").setExecutor(new Commands());
this.getCommand("u").setUsage(this.getCommand("u").getUsage().replace('&', '§'));
try {
BufferedReader br=new BufferedReader(new FileReader("flairsaccepted.txt"));
String line;
while ((line = br.readLine()) != null)
{
AcceptedPlayers.add(line.replace("\n", ""));
File file=new File("flairsaccepted.txt");
if(file.exists())
{
BufferedReader br=new BufferedReader(new FileReader("flairsaccepted.txt"));
String line;
while ((line = br.readLine()) != null)
{
AcceptedPlayers.add(line.replace("\n", ""));
}
br.close();
}
br.close();
BufferedReader br=new BufferedReader(new FileReader("flairsignored.txt"));
while ((line = br.readLine()) != null)
{
IgnoredPlayers.add(line.replace("\n", ""));
}
br.close();
FileWriter fw;
fw = new FileWriter("flairsaccepted.txt");
fw.close();
file=new File("flairsignored.txt");
if(file.exists())
{
BufferedReader br=new BufferedReader(new FileReader("flairsignored.txt"));
String line;
while ((line = br.readLine()) != null)
{
IgnoredPlayers.add(line.replace("\n", ""));
}
br.close();
}
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
@ -71,6 +78,40 @@ public class PluginMain extends JavaPlugin
@Override
public void onDisable()
{
try
{
FileWriter fw;
fw = new FileWriter("flairsaccepted.txt");
fw.close();
fw = new FileWriter("flairsignored.txt");
fw.close();
}
catch(Exception e)
{
System.out.println("Error!\n"+e);
}
for(String player : AcceptedPlayers)
{
File file=new File("flairsaccepted.txt");
try {
BufferedWriter bw=new BufferedWriter(new FileWriter(file, true));
bw.write(player+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
for(String player : IgnoredPlayers)
{
File file=new File("flairsignored.txt");
try {
BufferedWriter bw = new BufferedWriter(new FileWriter(file, true));
bw.write(player+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
stop=true;
}
@ -98,7 +139,7 @@ public class PluginMain extends JavaPlugin
ign = ign.trim();
if(HasIGFlair(ign))
continue;
//System.out.println("Author: "+author);
System.out.println("Author: "+author);
try {
Thread.sleep(10);
} catch(InterruptedException ex) {
@ -236,26 +277,8 @@ public class PluginMain extends JavaPlugin
{
if(IgnoredPlayers.contains(player.getName()))
return;
{
try {
BufferedWriter bw=new BufferedWriter(new FileWriter("flairsaccepted.txt", true));
bw.write(player.getName()+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
if(AcceptedPlayers.contains(player.getName()))
{
player.setDisplayName(player.getDisplayName()+flair);
try {
BufferedWriter bw=new BufferedWriter(new FileWriter("flairsaccepted.txt", true));
bw.write(player.getName()+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
else
player.sendMessage("§9Are you Reddit user "+username+"?§r §6Type /u accept or /u ignore§r");

View file

@ -2,6 +2,7 @@ package tk.sznp.thebuttonautoflair;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
@ -42,22 +43,28 @@ public class PluginMain extends JavaPlugin
this.getCommand("u").setExecutor(new Commands());
this.getCommand("u").setUsage(this.getCommand("u").getUsage().replace('&', '§'));
try {
BufferedReader br=new BufferedReader(new FileReader("flairsaccepted.txt"));
String line;
while ((line = br.readLine()) != null)
{
AcceptedPlayers.add(line.replace("\n", ""));
File file=new File("flairsaccepted.txt");
if(file.exists())
{
BufferedReader br=new BufferedReader(new FileReader("flairsaccepted.txt"));
String line;
while ((line = br.readLine()) != null)
{
AcceptedPlayers.add(line.replace("\n", ""));
}
br.close();
}
br.close();
BufferedReader br=new BufferedReader(new FileReader("flairsignored.txt"));
while ((line = br.readLine()) != null)
{
IgnoredPlayers.add(line.replace("\n", ""));
}
br.close();
FileWriter fw;
fw = new FileWriter("flairsaccepted.txt");
fw.close();
file=new File("flairsignored.txt");
if(file.exists())
{
BufferedReader br=new BufferedReader(new FileReader("flairsignored.txt"));
String line;
while ((line = br.readLine()) != null)
{
IgnoredPlayers.add(line.replace("\n", ""));
}
br.close();
}
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
@ -71,6 +78,40 @@ public class PluginMain extends JavaPlugin
@Override
public void onDisable()
{
try
{
FileWriter fw;
fw = new FileWriter("flairsaccepted.txt");
fw.close();
fw = new FileWriter("flairsignored.txt");
fw.close();
}
catch(Exception e)
{
System.out.println("Error!\n"+e);
}
for(String player : AcceptedPlayers)
{
File file=new File("flairsaccepted.txt");
try {
BufferedWriter bw=new BufferedWriter(new FileWriter(file, true));
bw.write(player+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
for(String player : IgnoredPlayers)
{
File file=new File("flairsignored.txt");
try {
BufferedWriter bw = new BufferedWriter(new FileWriter(file, true));
bw.write(player+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
stop=true;
}
@ -98,7 +139,7 @@ public class PluginMain extends JavaPlugin
ign = ign.trim();
if(HasIGFlair(ign))
continue;
//System.out.println("Author: "+author);
System.out.println("Author: "+author);
try {
Thread.sleep(10);
} catch(InterruptedException ex) {
@ -115,6 +156,7 @@ public class PluginMain extends JavaPlugin
else
flair = "non-presser";
String flairclass;
System.out.println("flairdata.length:"+flairdata.length);
if(flairdata.length>1)
flairclass = flairdata[2];
else
@ -237,16 +279,7 @@ public class PluginMain extends JavaPlugin
if(IgnoredPlayers.contains(player.getName()))
return;
if(AcceptedPlayers.contains(player.getName()))
{
player.setDisplayName(player.getDisplayName()+flair);
try {
BufferedWriter bw=new BufferedWriter(new FileWriter("flairsaccepted.txt", true));
bw.write(player.getName()+"\n");
bw.close();
} catch (IOException e) {
System.out.println("Error!\n"+e);
}
}
else
player.sendMessage("§9Are you Reddit user "+username+"?§r §6Type /u accept or /u ignore§r");

View file

@ -1,2 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1436966813483">\r\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="1436966813483" name\="jre1.8.0_45" path\="C\:\\Program Files\\Java\\jre1.8.0_45"/>\r\n</vmType>\r\n</vmSettings>\r\n
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1436966813483" defaultVMConnector\="">\r\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="1436966813483" name\="jre1.8.0_45" path\="C\:\\Program Files\\Java\\jre1.8.0_45"/>\r\n</vmType>\r\n</vmSettings>\r\n

View file

@ -1,3 +1,4 @@
activeuserprofiles=NORBI-PC;Team
eclipse.preferences.version=1
org.eclipse.rse.systemtype.local.systemType.defaultUserId=Norbi
useridperkey=NORBI-PC.Local\=Norbi;

View file

@ -240,7 +240,7 @@
<tags>org.eclipse.e4.primaryDataStack</tags>
<tags>EditorStack</tags>
<children xsi:type="basic:Part" xmi:id="_GHx4QCr2EeWsptewEJl0pA" 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;2777&quot; selectionTopPixel=&quot;1113&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;5326&quot; selectionTopPixel=&quot;2085&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
<tags>removeOnHide</tags>
@ -312,7 +312,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;Errors&quot;/>&#xD;&#xA;&lt;category IMemento.internal.id=&quot;Warnings (1 item)&quot;/>&#xD;&#xA;&lt;category IMemento.internal.id=&quot;Warnings&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">
@ -407,18 +407,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="_6MEwsCr0EeWsptewEJl0pA" elementId="new.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MFXwCr0EeWsptewEJl0pA" elementId="newWizardDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MFXwSr0EeWsptewEJl0pA" elementId="new.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MFXwir0EeWsptewEJl0pA" elementId="save.group" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MFXwyr0EeWsptewEJl0pA" elementId="save"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MF-0Cr0EeWsptewEJl0pA" elementId="saveAll"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MF-0Sr0EeWsptewEJl0pA" elementId="save.ext" visible="false"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_6MGl4Cr0EeWsptewEJl0pA" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_3_hZmSr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MKQQCr0EeWsptewEJl0pA" elementId="print.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MK3UCr0EeWsptewEJl0pA" elementId="build.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MK3USr0EeWsptewEJl0pA" elementId="build.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MK3Uir0EeWsptewEJl0pA" elementId="additions"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqOJwC3kEeWvSKv3oe_gqg" elementId="new.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqOw0C3kEeWvSKv3oe_gqg" elementId="newWizardDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqOw0S3kEeWvSKv3oe_gqg" elementId="new.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqOw0i3kEeWvSKv3oe_gqg" elementId="save.group" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqOw0y3kEeWvSKv3oe_gqg" elementId="save"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqPX4C3kEeWvSKv3oe_gqg" elementId="saveAll"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqPX4S3kEeWvSKv3oe_gqg" elementId="save.ext" visible="false"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_MqP-8C3kEeWvSKv3oe_gqg" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_3_hZmSr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqUQYC3kEeWvSKv3oe_gqg" elementId="print.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqU3cC3kEeWvSKv3oe_gqg" elementId="build.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqU3cS3kEeWvSKv3oe_gqg" elementId="build.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqU3ci3kEeWvSKv3oe_gqg" elementId="additions"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6K2osSr0EeWsptewEJl0pA" elementId="additions" toBeRendered="false">
<tags>toolbarSeparator</tags>
@ -426,33 +426,38 @@
</children>
<children xsi:type="menu:ToolBar" xmi:id="_dIOxkCr1EeWsptewEJl0pA" elementId="adt.actionSet.avdManager">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_dKNukCr1EeWsptewEJl0pA" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_dKOVoCr1EeWsptewEJl0pA" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_dKO8sCr1EeWsptewEJl0pA" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwctkC3kEeWvSKv3oe_gqg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwdUoC3kEeWvSKv3oe_gqg" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwd7sC3kEeWvSKv3oe_gqg" 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="_Mwd7sS3kEeWvSKv3oe_gqg" elementId="breakpointGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwd7si3kEeWvSKv3oe_gqg" 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="_dKPjwCr1EeWsptewEJl0pA" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_dKPjwSr1EeWsptewEJl0pA" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwd7sy3kEeWvSKv3oe_gqg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MweiwC3kEeWvSKv3oe_gqg" 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="_dKQK0Cr1EeWsptewEJl0pA" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_dKQK0Sr1EeWsptewEJl0pA" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MweiwS3kEeWvSKv3oe_gqg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwfJ0C3kEeWvSKv3oe_gqg" 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="_8z1dICr0EeWsptewEJl0pA" elementId="debug"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_8z2EMCr0EeWsptewEJl0pA" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_8z2rQCr0EeWsptewEJl0pA" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_8z3SUCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwfJ0S3kEeWvSKv3oe_gqg" elementId="debug"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwfJ0i3kEeWvSKv3oe_gqg" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwfJ0y3kEeWvSKv3oe_gqg" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwfJ1C3kEeWvSKv3oe_gqg" 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="_dKQx4Cr1EeWsptewEJl0pA" elementId="JavaWizards"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_dKRY8Cr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_dKSAACr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_dKSnECr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwfw4C3kEeWvSKv3oe_gqg" elementId="JavaWizards"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwfw4S3kEeWvSKv3oe_gqg" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwfw4i3kEeWvSKv3oe_gqg" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwfw4y3kEeWvSKv3oe_gqg" 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>
@ -462,10 +467,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="_8z_1MSr0EeWsptewEJl0pA" elementId="Search"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_80AcQCr0EeWsptewEJl0pA" elementId="openType"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_80BDUCr0EeWsptewEJl0pA" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_80FUwCr0EeWsptewEJl0pA" elementId="org.eclipse.search.OpenSearchDialogPage"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwfw5C3kEeWvSKv3oe_gqg" elementId="Search"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwfw5S3kEeWvSKv3oe_gqg" elementId="openType"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwfw5i3kEeWvSKv3oe_gqg" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwgX8C3kEeWvSKv3oe_gqg" 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="_Sl428C3kEeWvSKv3oe_gqg" elementId="Presentation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Sl5eAC3kEeWvSKv3oe_gqg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Sl5eAS3kEeWvSKv3oe_gqg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Sl5eAi3kEeWvSKv3oe_gqg" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Sl6sIC3kEeWvSKv3oe_gqg" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Sl7TMC3kEeWvSKv3oe_gqg" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Sl7TMS3kEeWvSKv3oe_gqg" 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>
@ -483,15 +498,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="_6MK3Uyr0EeWsptewEJl0pA" elementId="history.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MK3VCr0EeWsptewEJl0pA" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MK3VSr0EeWsptewEJl0pA" elementId="backardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MLeYCr0EeWsptewEJl0pA" elementId="forwardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MLeYSr0EeWsptewEJl0pA" elementId="pin.group"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_6MLeYir0EeWsptewEJl0pA" 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="_80IYECr0EeWsptewEJl0pA" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_80I_ICr0EeWsptewEJl0pA" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_80JmMCr0EeWsptewEJl0pA" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqVegC3kEeWvSKv3oe_gqg" elementId="history.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqVegS3kEeWvSKv3oe_gqg" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqVegi3kEeWvSKv3oe_gqg" elementId="backardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqVegy3kEeWvSKv3oe_gqg" elementId="forwardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqWFkC3kEeWvSKv3oe_gqg" elementId="pin.group"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_MqWFkS3kEeWvSKv3oe_gqg" 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="_MwgX8S3kEeWvSKv3oe_gqg" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_Mwg_AC3kEeWvSKv3oe_gqg" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MwhmEC3kEeWvSKv3oe_gqg" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6LTUoSr0EeWsptewEJl0pA" elementId="group.editor" toBeRendered="false">
<tags>toolbarSeparator</tags>
@ -503,8 +518,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="_6MMFcCr0EeWsptewEJl0pA" elementId="group.help"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6MMFcSr0EeWsptewEJl0pA" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqWsoC3kEeWvSKv3oe_gqg" elementId="group.help"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_MqWsoS3kEeWvSKv3oe_gqg" 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

@ -1,21 +1,23 @@
INDEX VERSION 1.126+D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spigot plugin\.metadata\.plugins\org.eclipse.jdt.core
605290374.index
1045485630.index
3604769962.index
355369697.index
4187470955.index
1337478678.index
994834796.index
533208796.index
3716007315.index
3954291735.index
115418958.index
2674037006.index
1508644233.index
3045053200.index
1737447423.index
1017853417.index
3656756579.index
2674037006.index
323251068.index
355369697.index
3716007315.index
1045485630.index
605290374.index
533208796.index
1337478678.index
1467104569.index
1737447423.index
1528680760.index
4187470955.index
2535676096.index
1787405673.index
1017853417.index
115418958.index
3604769962.index
994834796.index
3954291735.index
3045053200.index
1508644233.index

View file

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<workingSetManager>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1436966941058_0" label="Window Working Set" name="Aggregate for window 1436966941057"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1437289418918_1" label="Window Working Set" name="Aggregate for window 1437289418918"/>
</workingSetManager>

Binary file not shown.

View file

@ -156,7 +156,8 @@ public class PluginMain extends JavaPlugin
else
flair = "non-presser";
String flairclass;
if(flairdata.length>1)
//System.out.println("flairdata.length:"+flairdata.length);
if(flairdata.length>2)
flairclass = flairdata[2];
else
flairclass="unknown";