Name mentioning + Some fixes about message coloring

- Added console color support for messages
- Added gold color for name mentioning
- Changed some colors
- Added sound when mentioning names
This commit is contained in:
Norbi Peti 2015-08-12 13:52:27 +02:00
parent ede84612d4
commit 3ed0d39c06
17 changed files with 110 additions and 82 deletions

View file

@ -858,3 +858,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-08-12 12:32:27.604 -----------------------------------------------
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-08-12 12:38:42.082
!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-08-12 12:38:42.125
!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

@ -163,7 +163,7 @@
<tags>persp.viewSC:org.eclipse.mylyn.tasks.ui.views.tasks</tags>
<tags>persp.newWizSC:org.eclipse.mylyn.tasks.ui.wizards.new.repository.task</tags>
<tags>persp.perspSC:org.eclipse.wst.jsdt.ui.JavaPerspective</tags>
<children xsi:type="basic:PartSashContainer" xmi:id="_c1_yESr1EeWsptewEJl0pA" selectedElement="_c2AZJCr1EeWsptewEJl0pA" horizontal="true">
<children xsi:type="basic:PartSashContainer" xmi:id="_c1_yESr1EeWsptewEJl0pA" selectedElement="_c1_yEir1EeWsptewEJl0pA" horizontal="true">
<children xsi:type="basic:PartSashContainer" xmi:id="_c1_yEir1EeWsptewEJl0pA" containerData="2500" selectedElement="_c1_yEyr1EeWsptewEJl0pA">
<children xsi:type="basic:PartStack" xmi:id="_c1_yEyr1EeWsptewEJl0pA" elementId="left" containerData="6000" selectedElement="_c1_yFCr1EeWsptewEJl0pA">
<tags>newtablook</tags>
@ -323,10 +323,9 @@
<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, 2 warnings, 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 (2 items)&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>
<tags>activeOnClose</tags>
<menus xmi:id="_dGEOYCr1EeWsptewEJl0pA" elementId="org.eclipse.ui.views.ProblemView">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
@ -383,6 +382,7 @@
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view group_libraries=&quot;1&quot; layout=&quot;2&quot; linkWithEditor=&quot;0&quot; rootMode=&quot;1&quot; workingSetName=&quot;&quot;>&#xD;&#xA;&lt;customFilters userDefinedPatternsEnabled=&quot;false&quot;>&#xD;&#xA;&lt;xmlDefinedFilters>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.StaticsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsTempFiles&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsConnections&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.mylyn.java.ui.MembersFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.LibraryFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.pde.ui.BinaryProjectFilter1&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.pde.ui.ExternalPluginLibrariesFilter1&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.FieldsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;/xmlDefinedFilters>&#xD;&#xA;&lt;/customFilters>&#xD;&#xA;&lt;/view>"/>
<tags>View</tags>
<tags>categoryTag:Java</tags>
<tags>activeOnClose</tags>
<menus xmi:id="_c3XEACr1EeWsptewEJl0pA" elementId="org.eclipse.jdt.ui.PackageExplorer">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
@ -426,18 +426,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="_9Iy2QD-JEeWprK50eVwiGQ" elementId="new.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9IzdUD-JEeWprK50eVwiGQ" elementId="newWizardDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9IzdUT-JEeWprK50eVwiGQ" elementId="new.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9IzdUj-JEeWprK50eVwiGQ" elementId="save.group" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I0EYD-JEeWprK50eVwiGQ" elementId="save"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I0EYT-JEeWprK50eVwiGQ" elementId="saveAll"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I0EYj-JEeWprK50eVwiGQ" elementId="save.ext" visible="false"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_9I0rcD-JEeWprK50eVwiGQ" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" enabled="false" command="_3_hZmSr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I5j8D-JEeWprK50eVwiGQ" elementId="print.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I91YD-JEeWprK50eVwiGQ" elementId="build.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I-ccD-JEeWprK50eVwiGQ" elementId="build.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I-ccT-JEeWprK50eVwiGQ" elementId="additions"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OFi4D-hEeWQmPenPG3GHg" elementId="new.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OGxAD-hEeWQmPenPG3GHg" elementId="newWizardDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OGxAT-hEeWQmPenPG3GHg" elementId="new.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OGxAj-hEeWQmPenPG3GHg" elementId="save.group" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OHYED-hEeWQmPenPG3GHg" elementId="save"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OHYET-hEeWQmPenPG3GHg" elementId="saveAll"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OHYEj-hEeWQmPenPG3GHg" elementId="save.ext" visible="false"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_4OH_ID-hEeWQmPenPG3GHg" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" enabled="false" command="_3_hZmSr0EeWsptewEJl0pA"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OMQkD-hEeWQmPenPG3GHg" elementId="print.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OM3oD-hEeWQmPenPG3GHg" elementId="build.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OM3oT-hEeWQmPenPG3GHg" elementId="build.ext" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OM3oj-hEeWQmPenPG3GHg" elementId="additions"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6K2osSr0EeWsptewEJl0pA" elementId="additions" toBeRendered="false">
<tags>toolbarSeparator</tags>
@ -445,38 +445,38 @@
</children>
<children xsi:type="menu:ToolBar" xmi:id="_dIOxkCr1EeWsptewEJl0pA" elementId="adt.actionSet.avdManager">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9Td1MD-JEeWprK50eVwiGQ" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TecQD-JEeWprK50eVwiGQ" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TecQT-JEeWprK50eVwiGQ" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XIKID-hEeWQmPenPG3GHg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XIxMD-hEeWQmPenPG3GHg" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XIxMT-hEeWQmPenPG3GHg" 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="_9TecQj-JEeWprK50eVwiGQ" elementId="breakpointGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TecQz-JEeWprK50eVwiGQ" elementId="org.eclipse.debug.ui.actions.SkipAllBreakpoints"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XIxMj-hEeWQmPenPG3GHg" elementId="breakpointGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XIxMz-hEeWQmPenPG3GHg" 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="_9TecRD-JEeWprK50eVwiGQ" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfDUD-JEeWprK50eVwiGQ" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJYQD-hEeWQmPenPG3GHg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJYQT-hEeWQmPenPG3GHg" 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="_9TfDUT-JEeWprK50eVwiGQ" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfDUj-JEeWprK50eVwiGQ" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJYQj-hEeWQmPenPG3GHg" elementId="android_project"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJYQz-hEeWQmPenPG3GHg" 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="_9TfDUz-JEeWprK50eVwiGQ" elementId="debug"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfDVD-JEeWprK50eVwiGQ" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfDVT-JEeWprK50eVwiGQ" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfqYD-JEeWprK50eVwiGQ" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJYRD-hEeWQmPenPG3GHg" elementId="debug"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJYRT-hEeWQmPenPG3GHg" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJYRj-hEeWQmPenPG3GHg" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJ_UD-hEeWQmPenPG3GHg" 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="_9TfqYT-JEeWprK50eVwiGQ" elementId="JavaWizards"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfqYj-JEeWprK50eVwiGQ" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfqYz-JEeWprK50eVwiGQ" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfqZD-JEeWprK50eVwiGQ" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJ_UT-hEeWQmPenPG3GHg" elementId="JavaWizards"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJ_Uj-hEeWQmPenPG3GHg" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJ_Uz-hEeWQmPenPG3GHg" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJ_VD-hEeWQmPenPG3GHg" 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>
@ -486,20 +486,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="_9TfqZT-JEeWprK50eVwiGQ" elementId="Search"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfqZj-JEeWprK50eVwiGQ" elementId="openType"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TfqZz-JEeWprK50eVwiGQ" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TgRcD-JEeWprK50eVwiGQ" elementId="org.eclipse.search.OpenSearchDialogPage"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XJ_VT-hEeWQmPenPG3GHg" elementId="Search"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XKmYD-hEeWQmPenPG3GHg" elementId="openType"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XKmYT-hEeWQmPenPG3GHg" elementId="org.eclipse.mylyn.tasks.ui.openTask"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XKmYj-hEeWQmPenPG3GHg" 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="__xtZQD-JEeWprK50eVwiGQ" elementId="Presentation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="__xuAUD-JEeWprK50eVwiGQ" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="__xuAUT-JEeWprK50eVwiGQ" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="__xuAUj-JEeWprK50eVwiGQ" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="__xuAUz-JEeWprK50eVwiGQ" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="__xuAVD-JEeWprK50eVwiGQ" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="__xunYD-JEeWprK50eVwiGQ" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6z5ukD-hEeWQmPenPG3GHg" elementId="Presentation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6z6VoD-hEeWQmPenPG3GHg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6z6VoT-hEeWQmPenPG3GHg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6z6Voj-hEeWQmPenPG3GHg" elementId="org.eclipse.mylyn.java.ui.editor.folding.auto"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6z6Voz-hEeWQmPenPG3GHg" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6z68sD-hEeWQmPenPG3GHg" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_6z68sT-hEeWQmPenPG3GHg" 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>
@ -517,15 +517,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="_9I-ccj-JEeWprK50eVwiGQ" elementId="history.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I-ccz-JEeWprK50eVwiGQ" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I_DgD-JEeWprK50eVwiGQ" elementId="backardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I_DgT-JEeWprK50eVwiGQ" elementId="forwardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9I_Dgj-JEeWprK50eVwiGQ" elementId="pin.group"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_9JARoD-JEeWprK50eVwiGQ" 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="_9TgRcT-JEeWprK50eVwiGQ" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TgRcj-JEeWprK50eVwiGQ" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9TgRcz-JEeWprK50eVwiGQ" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OM3oz-hEeWQmPenPG3GHg" elementId="history.group"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OM3pD-hEeWQmPenPG3GHg" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OM3pT-hEeWQmPenPG3GHg" elementId="backardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4ONesD-hEeWQmPenPG3GHg" elementId="forwardHistory"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4ONesT-hEeWQmPenPG3GHg" elementId="pin.group"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_4ONesj-hEeWQmPenPG3GHg" 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="_4XKmYz-hEeWQmPenPG3GHg" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XKmZD-hEeWQmPenPG3GHg" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4XLNcD-hEeWQmPenPG3GHg" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6LTUoSr0EeWsptewEJl0pA" elementId="group.editor" toBeRendered="false">
<tags>toolbarSeparator</tags>
@ -537,8 +537,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="_9JARoT-JEeWprK50eVwiGQ" elementId="group.help"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_9JA4sD-JEeWprK50eVwiGQ" elementId="group.application" visible="false"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OOFwD-hEeWQmPenPG3GHg" elementId="group.help"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_4OOFwT-hEeWQmPenPG3GHg" 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,18 +1,18 @@
INDEX VERSION 1.126+D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spigot plugin\.metadata\.plugins\org.eclipse.jdt.core
3045053200.index
3656756579.index
3089967703.index
2674037006.index
323251068.index
355369697.index
3716007315.index
1934142626.index
3716007315.index
1045485630.index
605290374.index
533208796.index
1337478678.index
1528680760.index
1737447423.index
1467104569.index
1737447423.index
4187470955.index
2535676096.index
1787405673.index
@ -22,5 +22,5 @@ INDEX VERSION 1.126+D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spi
3954291735.index
994834796.index
3604769962.index
3045053200.index
1508644233.index
3656756579.index

View file

@ -13,4 +13,5 @@
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1439184130737_10" label="Window Working Set" name="Aggregate for window 1439184130737"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1439229760994_11" label="Window Working Set" name="Aggregate for window 1439229760993"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1439240033242_12" label="Window Working Set" name="Aggregate for window 1439240033242"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1439375909808_13" label="Window Working Set" name="Aggregate for window 1439375909807"/>
</workingSetManager>

View file

@ -45,7 +45,7 @@ public class Commands implements CommandExecutor {
//PluginMain.AppendPlayerDisplayFlairFinal(player, flair); //2015.07.20.
p.AcceptedFlair=true; //2015.08.08.
PluginMain.AppendPlayerDisplayFlair(p, player);
player.sendMessage("§6Your flair has been set:§r "+flair);
player.sendMessage("§bYour flair has been set:§r "+flair);
}
else
player.sendMessage("§cYou already have this user's flair.§r");
@ -60,7 +60,7 @@ public class Commands implements CommandExecutor {
p.IgnoredFlair=true;
//String flair=p.Flair; //2015.08.08.
//PluginMain.RemovePlayerDisplayFlairFinal(player, flair); //2015.07.20.
player.sendMessage("§6You have ignored this request. You can still use /u accept though.§r");
player.sendMessage("§bYou have ignored this request. You can still use /u accept though.§r");
}
else
player.sendMessage("§cYou already ignored this request.§r");
@ -121,22 +121,20 @@ public class Commands implements CommandExecutor {
//{
try
{
File file=new File("autoflairconfig.txt");
if(file.exists())
{
PluginMain.LoadFiles(true); //2015.08.09.
for(Player p : PluginMain.GetPlayers())
PluginMain.Console.sendMessage("§6-- Reloading Auto-flair plugin...§r");
PluginMain.LoadFiles(true); //2015.08.09.
for(Player p : PluginMain.GetPlayers())
{
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AddPlayerIfNeeded(p.getName());
//if(mp.Flair!=null)
if(mp.CommentedOnReddit)
{
MaybeOfflinePlayer mp = MaybeOfflinePlayer.AddPlayerIfNeeded(p.getName());
//if(mp.Flair!=null)
if(mp.CommentedOnReddit)
{
PluginMain.AppendPlayerDisplayFlair(mp, p); //2015.08.09.
}
String msg="§6Note: The auto-flair plugin has been reloaded. You might need to wait 10s to have your flair.§r"; //2015.08.09.
p.sendMessage(msg); //2015.08.09.
PluginMain.AppendPlayerDisplayFlair(mp, p); //2015.08.09.
}
}
String msg="§bNote: The auto-flair plugin has been reloaded. You might need to wait 10s to have your flair.§r"; //2015.08.09.
p.sendMessage(msg); //2015.08.09.
}
PluginMain.Console.sendMessage("§6-- Reloading done!§r");
}
catch(Exception e)
{
@ -166,7 +164,7 @@ public class Commands implements CommandExecutor {
{
case "reload":
ReloadPlayer=player; //2015.08.09.
SendMessage(player, "§6Make sure to save the current settings before you modify and reload them! Type /u admin confirm when done.§r");
SendMessage(player, "§bMake sure to save the current settings before you modify and reload them! Type /u admin confirm when done.§r");
break;
case "playerinfo":
DoPlayerInfo(player, args);
@ -182,7 +180,7 @@ public class Commands implements CommandExecutor {
break;
case "save":
PluginMain.SaveFiles(); //2015.08.09.
SendMessage(player, "§6Saved files. Now you can edit them and reload if you want.§r");
SendMessage(player, "§bSaved files. Now you can edit them and reload if you want.§r");
break;
case "setflair":
DoSetFlair(player, args);
@ -227,7 +225,8 @@ public class Commands implements CommandExecutor {
private static void SendMessage(Player player, String message)
{ //2015.08.09.
if(player==null)
System.out.println(message);
//System.out.println(message);
PluginMain.Console.sendMessage(message); //2015.08.12.
else
player.sendMessage(message);
}
@ -263,7 +262,7 @@ public class Commands implements CommandExecutor {
System.out.println("Error!\n"+e);
PluginMain.LastException=e; //2015.08.09.
}
SendMessage(player, "§6The flair has been set. Player: "+targetplayer.PlayerName+" Flair: "+flair+"§r");
SendMessage(player, "§bThe flair has been set. Player: "+targetplayer.PlayerName+" Flair: "+flair+"§r");
}
private static void DoSetFlair(Player player, String[] args)
{

View file

@ -1,5 +1,6 @@
package tk.sznp.thebuttonautoflair;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@ -39,10 +40,12 @@ public class PlayerListener implements Listener
if(player.IgnoredFlair)
flair="";
String message=event.getMessage(); //2015.08.08.
/*for(Player p : PluginMain.GetPlayers())
{ //2015.08.08.
message.replaceAll(p.getName(), )
}*/
for(Player p : PluginMain.GetPlayers())
{ //2015.08.12.
if(message.contains(p.getName()))
p.playSound(p.getLocation(), Sound.ORB_PICKUP, 1.0f, 0.5f); //2015.08.12.
message = message.replaceAll(p.getName(), "§6"+p.getName()+"§r");
}
event.setFormat(event.getFormat().substring(0, event.getFormat().indexOf(">"))+flair+"> "+message); //2015.08.08.
}

View file

@ -16,6 +16,7 @@ import java.util.HashMap;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.json.JSONArray;
@ -29,6 +30,7 @@ public class PluginMain extends JavaPlugin
//A user, which flair isn't obtainable:
//https://www.reddit.com/r/thebutton/comments/31c32v/i_pressed_the_button_without_really_thinking/
private static PluginMain Instance;
public static ConsoleCommandSender Console; //2015.08.12.
// Fired when plugin is first enabled
@Override
public void onEnable()
@ -38,6 +40,7 @@ public class PluginMain extends JavaPlugin
this.getCommand("u").setExecutor(new Commands());
this.getCommand("u").setUsage(this.getCommand("u").getUsage().replace('&', '§'));
Instance=this; //2015.08.08.
Console=this.getServer().getConsoleSender(); //2015.08.12.
LoadFiles(false); //2015.08.09.
Runnable r=new Runnable(){public void run(){ThreadMethod();}};
Thread t=new Thread(r);