Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug395283 - Initial implementation without persistence
- Loading branch information
Showing
6 changed files
with
93 additions
and
5 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
58 changes: 58 additions & 0 deletions
58
...rg.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/ToolsEmfUiPlugin.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) 2012 MEDEVIT and FHV and others. | ||
| * All rights reserved. This program and the accompanying materials | ||
| * are made available under the terms of the Eclipse Public License v1.0 | ||
| * which accompanies this distribution, and is available at | ||
| * http://www.eclipse.org/legal/epl-v10.html | ||
| * | ||
| * Contributors: | ||
| * Marco Descher <marco@descher.at> - initial API and implementation | ||
| ******************************************************************************/ | ||
| package org.eclipse.e4.tools.emf.ui.internal; | ||
|
|
||
| import org.eclipse.jface.dialogs.DialogSettings; | ||
| import org.eclipse.jface.dialogs.IDialogSettings; | ||
| import org.osgi.framework.BundleActivator; | ||
| import org.osgi.framework.BundleContext; | ||
|
|
||
| public class ToolsEmfUiPlugin implements BundleActivator { | ||
| // The plug-in ID | ||
| public static final String PLUGIN_ID = "org.eclipse.e4.tools.emf.ui"; //$NON-NLS-1$ | ||
|
|
||
| private static ToolsEmfUiPlugin plugin; | ||
|
|
||
| public static DialogSettings dialogSettings; | ||
|
|
||
| public void start(BundleContext context) throws Exception { | ||
| plugin = this; | ||
| } | ||
|
|
||
| public void stop(BundleContext context) throws Exception { | ||
| plugin = null; | ||
| } | ||
|
|
||
| /** | ||
| * Returns the shared instance | ||
| * | ||
| * @return the shared instance | ||
| */ | ||
| public static ToolsEmfUiPlugin getDefault() { | ||
| return plugin; | ||
| } | ||
|
|
||
| /** | ||
| * @see AbstractUiPlugin#getDialogSettings() | ||
| * @return the dialog settings | ||
| */ | ||
| public IDialogSettings getDialogSettings() { | ||
| if (dialogSettings == null) | ||
| loadDialogSettings(); | ||
| return dialogSettings; | ||
| } | ||
|
|
||
| private void loadDialogSettings() { | ||
| // copy from AbstracUiPlugin | ||
| dialogSettings = new DialogSettings(PLUGIN_ID); | ||
| } | ||
|
|
||
| } |
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