import org.eclipse.cdt.managedbuilder.core.IConfiguration;
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.console.MessageConsoleStream;
+import org.osgi.framework.Bundle;
import org.tizen.common.connection.ConnectionPlugin;
import org.tizen.common.console.ConsoleManager;
this.tabIndex = tabIndex;
}
+ private void setImage(Shell parentShell) {
+ try {
+ Bundle bundle = Platform.getBundle(Activator.PLUGIN_ID);
+ parentShell.setImage(new Image(Display.getCurrent(), FileLocator.toFileURL(bundle.getEntry("icons/package_installer.gif")).getPath()));
+ } catch (Exception e) {
+ }
+ }
+
protected void setShellStyle(int newShellStyle) {
int newStyle = newShellStyle & ~SWT.APPLICATION_MODAL;
newStyle |= SWT.MODELESS;
newShell.setText("Package Manager");
newShell.setLocation(100, 100);
newShell.setSize(960, 600);
+ setImage(newShell);
}
@Override