forked from kiritsuku/IndentGuide
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gbr
committed
Mar 2, 2023
1 parent
ca98961
commit 80492fa
Showing
32 changed files
with
1,249 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extensions> | ||
<extension> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-build</artifactId> | ||
<version>3.0.1</version> | ||
</extension> | ||
</extensions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
source.. = src/ | ||
source.. = src/main/java | ||
output.. = target/classes/ | ||
bin.includes = plugin.xml,\ | ||
.,\ | ||
META-INF/,\ | ||
OSGI-INF/,\ | ||
icons/ | ||
src.excludes = src/test/java/,\ | ||
src/test/resources/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...certiv.tools.indentguide.plugin/src/main/java/net/certiv/tools/indentguide/Activator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/****************************************************************************** | ||
* Copyright (c) 2006-2023 The IndentGuide Authors. | ||
* All rights reserved. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the MIT License. A copy of the MIT License is included this | ||
* distribution and is available at https://opensource.org/licenses/MIT. | ||
*****************************************************************************/ | ||
package net.certiv.tools.indentguide; | ||
|
||
import org.eclipse.core.runtime.IStatus; | ||
import org.eclipse.core.runtime.Status; | ||
import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
import org.osgi.framework.BundleContext; | ||
|
||
import net.certiv.tools.indentguide.util.MsgBuilder; | ||
|
||
public class Activator extends AbstractUIPlugin { | ||
|
||
public static final String PLUGIN_ID = "net.certiv.tools.indentguide"; //$NON-NLS-1$ | ||
private static final String PREFIX = "Indent Guide: "; //$NON-NLS-1$ | ||
|
||
private static Activator plugin; | ||
|
||
public Activator() { | ||
super(); | ||
} | ||
|
||
/** Returns the shared instance */ | ||
public static Activator getDefault() { | ||
return plugin; | ||
} | ||
|
||
@Override | ||
public void start(BundleContext context) throws Exception { | ||
super.start(context); | ||
plugin = this; | ||
log("Startup"); | ||
} | ||
|
||
@Override | ||
public void stop(BundleContext context) throws Exception { | ||
plugin = null; | ||
super.stop(context); | ||
} | ||
|
||
public static void log(String fmt, Object... args) { | ||
plugin.getLog().log(new Status(IStatus.INFO, PLUGIN_ID, PREFIX + String.format(fmt, args))); | ||
} | ||
|
||
public static void log(MsgBuilder mb) { | ||
plugin.getLog().log(new Status(IStatus.INFO, PLUGIN_ID, PREFIX + mb.toString())); | ||
} | ||
|
||
public static void log(Throwable e) { | ||
plugin.getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, e.getMessage())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.