import java.util.ArrayList;
-import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
public static final int LINUX = 0;
public static final int WINDOWS = 1;
- public static Job ideCheckJob;
-
/**
* Implements for FileEntry changed status.
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
- if(ideCheckJob.sleep())
- {
- ideCheckJob.cancel();
- Logger.info("IDE Check Job is cancelled");
- }
-
int deviceCnt = SmartDevelopmentBridge.getBridge().getDevices().length;
if (deviceCnt==0)
{
}
}
}
-
- public static void setIDECheckJob(Job job)
- {
- ideCheckJob = job;
- }
/**
* Returns an image descriptor for the image file at the given
import org.tizen.common.TizenHelpContextIds;
import org.tizen.common.connection.ConnectionPlugin;
import org.tizen.common.connection.explorer.ConnectionExplorerPanel;
+import org.tizen.common.connection.log.LogUIMessages;
import org.tizen.common.connection.preference.TizenConnectionExplorerPreferencePage;
import org.tizen.common.core.application.InstallPathConfig;
import org.tizen.common.util.HostUtil;
+import org.tizen.common.util.NotificationType;
+import org.tizen.common.util.NotifierDialog;
import org.tizen.common.util.SWTUtil;
import org.tizen.common.util.log.Logger;
import org.tizen.sdblib.FileListingService.FileEntry;
public void partClosed(IWorkbenchPartReference partRef) {
if (ConnectionPlugin.ID_CONNECTION_VIEW.equals(partRef.getId())) {
ConnectionPlugin.getDefault().setCurrentDevice(null);
-
- Job job = new Job("Check IDE close"){
+ SWTUtil.syncExec(new Runnable()
+ {
@Override
- protected IStatus run(IProgressMonitor monitor) {
- SWTUtil.syncExec(new Runnable()
- {
- @Override
- public void run() {
- MessageDialog.openWarning(new Shell(), ConnectionUIMessages.Explorer_Closed_Title, ConnectionUIMessages.Explorer_Closed_Message);
- }
- });
- return Status.OK_STATUS;
+ public void run() {
+ NotifierDialog.notify(ConnectionUIMessages.Explorer_Closed_Title, ConnectionUIMessages.Explorer_Closed_Message, NotificationType.WARN);
}
- };
- ConnectionPlugin.getDefault().setIDECheckJob(job);
- job.schedule(1000);
+ });
}
}